diff --git a/kubejs/startup_scripts/horornot/constants.js b/kubejs/startup_scripts/horornot/constants.js index 8a46a7625..544611c11 100644 --- a/kubejs/startup_scripts/horornot/constants.js +++ b/kubejs/startup_scripts/horornot/constants.js @@ -3,3 +3,30 @@ global.HOT_OR_NOT_DISABLED_ITEMS = [ ]; +// Can't just use the #tfchotornot:insulating tag here because tags don't exist at startup +global.HOT_OR_NOT_ITEMS = [ + 'tfchotornot:mittens', + 'tfchotornot:burlap_potholder', + 'tfchotornot:silk_potholder', + 'tfchotornot:wool_potholder', + 'tfchotornot:tongs/wood', + 'tfchotornot:tongs/bismuth', + 'tfchotornot:tongs/bismuth_bronze', + 'tfchotornot:tongs/black_bronze', + 'tfchotornot:tongs/bronze', + 'tfchotornot:tongs/brass', + 'tfchotornot:tongs/copper', + 'tfchotornot:tongs/gold', + 'tfchotornot:tongs/nickel', + 'tfchotornot:tongs/rose_gold', + 'tfchotornot:tongs/silver', + 'tfchotornot:tongs/tin', + 'tfchotornot:tongs/zinc', + 'tfchotornot:tongs/sterling_silver', + 'tfchotornot:tongs/wrought_iron', + 'tfchotornot:tongs/cast_iron', + 'tfchotornot:tongs/steel', + 'tfchotornot:tongs/black_steel', + 'tfchotornot:tongs/red_steel', + 'tfchotornot:tongs/blue_steel', +]; \ No newline at end of file diff --git a/kubejs/startup_scripts/horornot/modifications.js b/kubejs/startup_scripts/horornot/modifications.js new file mode 100644 index 000000000..e4138548c --- /dev/null +++ b/kubejs/startup_scripts/horornot/modifications.js @@ -0,0 +1,10 @@ +// priority: 0 + +function registerHotOrNotItemModifications(event) { + + global.HOT_OR_NOT_ITEMS.forEach(i => { + event.modify(i, item => { + item.maxDamage = item.maxDamage * 3 + }) + }) +} \ No newline at end of file diff --git a/kubejs/startup_scripts/main_startup_script.js b/kubejs/startup_scripts/main_startup_script.js index cdf916826..c93d56db9 100644 --- a/kubejs/startup_scripts/main_startup_script.js +++ b/kubejs/startup_scripts/main_startup_script.js @@ -27,6 +27,7 @@ BlockEvents.modification(event => { */ ItemEvents.modification(event => { registerBeneathItemModifications(event) + registerHotOrNotItemModifications(event) registerMinecraftItemModifications(event) })