Skip to content

Commit

Permalink
tooltips
Browse files Browse the repository at this point in the history
  • Loading branch information
MuteTiefling committed Aug 1, 2024
1 parent 3c95b96 commit 4751f92
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 2 deletions.
26 changes: 26 additions & 0 deletions config/almostunified/unification/materials.json.bak
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
{
"mod_priorities": ["minecraft", "kubejs", "mekanism", "modern_industrialization", "occultism", "bigreactors"],
"stone_strata": ["stone", "andesite", "deepslate", "diorite", "granite", "nether"],
"tags": [
"c:dusts/{material}",
"c:gears/{material}",
"c:gems/{material}",
"c:ingots/{material}",
"c:nuggets/{material}",
"c:ores/{material}",
"c:plates/{material}",
"c:raw_materials/{material}",
"c:rods/{material}",
"c:storage_blocks/raw_{material}",
"c:storage_blocks/{material}",
"c:wires/{material}"
],
"priority_overrides": {},
"ignored_tags": [],
"ignored_items": [],
"ignored_recipe_types": ["cucumber:shaped_tag"],
"ignored_recipes": [],
"ignored_loot_tables": [],
"enable_loot_unification": true,
"recipe_viewer_hiding": false
}
8 changes: 6 additions & 2 deletions kubejs/server_scripts/item_events/tooltips.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,16 @@ ItemEvents.modifyTooltips((event) => {
.white()
.color('#808080') //any hex color
*/
const recipes = [];
const recipes = [
{
items: ['minecraft:reinforced_deepslate', 'modularrouters:blast_upgrade'],
text: [Text.of('Wither Immune').lightPurple()]
}
];

recipes.forEach((recipe) => {
event.add(recipe.items, recipe.text);
});

emi.items.disabled.forEach((item) => {
event.add(item, [Text.of(disabled_item_tooltip).red()]);
});
Expand Down

0 comments on commit 4751f92

Please sign in to comment.