Skip to content

Commit

Permalink
description and tooltip to "fix" #1150
Browse files Browse the repository at this point in the history
  • Loading branch information
NielsPilgaard committed Feb 15, 2021
1 parent b078d8c commit 2170a39
Show file tree
Hide file tree
Showing 4 changed files with 27 additions and 5 deletions.
1 change: 1 addition & 0 deletions kubejs/client_scripts/constants.js
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,7 @@ var itemsToHide = [
'bloodmagic:coalsand',
'bloodmagic:saltpeter',
'bloodmagic:sulfur',
// 'bountifulbaubles:potion_wormhole',
'create:powdered_obsidian',
'create:honey_bucket',
'eidolon:tallow',
Expand Down
6 changes: 5 additions & 1 deletion kubejs/client_scripts/item_modifiers/jei_descriptions.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,12 @@ events.listen('jei.information', (event) => {
},
{
item: 'buildinggadgets:construction_paste',
description: ['Obtained by breaking a Dense Construction Block with a Pickaxe.']
},
{
item: 'bountifulbaubles:potion_wormhole',
description: [
'Obtained by breaking a Dense Construction Block with a Pickaxe.'
'Do not use, you will crash immediately if in multiplayer. We have notified the mod author about the issue.'
]
}
]
Expand Down
23 changes: 19 additions & 4 deletions kubejs/client_scripts/item_modifiers/tooltips.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,22 @@
onEvent('client.item_tooltip', (event) => {
refinedStorageItems.forEach((item) => {
if (event.item.id == 'refinedstorage:' + item) {
event.add('Can be dyed through crafting or by right clicking it with dye in-world.');
onEvent('item.tooltip', (event) => {
const recipes = [
{
item: 'bountifulbaubles:potion_wormhole',
text: [
Text.of(
'Do not use, you will crash immediately if in multiplayer. We have notified the mod author about the issue.'
).red()
]
}
];

refinedStorageItems.forEach((item) => {
recipes.push('refinedstorage:' + item, [
'Can be dyed through crafting or by right clicking it with dye in-world.'
]);
});

recipes.forEach((recipe) => {
event.add(recipe.item, recipe.text);
});
});
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ const disabledItems = [
'bloodmagic:gravel_netherite_scrap',
'bloodmagic:fragment_netherite_scrap',

// 'bountifulbaubles:potion_wormhole',

'byg:ametrine_block',
'byg:ametrine_boots',
'byg:ametrine_chestplate',
Expand Down

0 comments on commit 2170a39

Please sign in to comment.