From 8b7186bc3b885db569faacd0e767c7dcaacbb9eb Mon Sep 17 00:00:00 2001 From: Jason Nash <47706293+Nashy1232@users.noreply.github.com> Date: Thu, 25 Sep 2025 17:48:34 +0100 Subject: [PATCH] rebalance sns hiking boots (#1894) * rebalance sns hiking boots * fix accidental nerf * Revert "fix accidental nerf" This reverts commit 2c970ef1ac04e93e4c5b76dac35d8a4069bcab69. * commit wrong file... --- defaultconfigs/sns-server.toml | 4 ++-- kubejs/startup_scripts/main_startup_script.js | 1 + .../sacksnsuch/modifications.js | 23 +++++++++++++++++++ 3 files changed, 26 insertions(+), 2 deletions(-) create mode 100644 kubejs/startup_scripts/sacksnsuch/modifications.js diff --git a/defaultconfigs/sns-server.toml b/defaultconfigs/sns-server.toml index 8030a9a05..e81e48da5 100644 --- a/defaultconfigs/sns-server.toml +++ b/defaultconfigs/sns-server.toml @@ -187,7 +187,7 @@ ["Boot config"."Blue Steel Toe Boots"] #The movement speed bonus these boots provide #Range: 0.0 ~ 1024.0 - movementSpeed = 0.2 + movementSpeed = 0.25 #The step height bonus these boots provide #Range: 0.0 ~ 512.0 stepHeight = 0.5 @@ -197,7 +197,7 @@ #The amount of 'steps' taken before one point of durability is lost #Steps are defined as being any change in position while grounded between ticks (IE over 1 second 20 'steps' occur) #Range: > 0 - stepsPerDamage = 4000 + stepsPerDamage = 3000 ["Boot config"."Red Steel Toe Boots"] #The movement speed bonus these boots provide diff --git a/kubejs/startup_scripts/main_startup_script.js b/kubejs/startup_scripts/main_startup_script.js index 1b7825395..8026e428b 100644 --- a/kubejs/startup_scripts/main_startup_script.js +++ b/kubejs/startup_scripts/main_startup_script.js @@ -27,6 +27,7 @@ ItemEvents.modification(event => { registerFirmalifeItemModifications(event) registerGTCEuItemModifications(event) registerMinecraftItemModifications(event) + registerSNSItemModifications(event) }) StartupEvents.registry('fluid', event => { diff --git a/kubejs/startup_scripts/sacksnsuch/modifications.js b/kubejs/startup_scripts/sacksnsuch/modifications.js new file mode 100644 index 000000000..898488c61 --- /dev/null +++ b/kubejs/startup_scripts/sacksnsuch/modifications.js @@ -0,0 +1,23 @@ +"use strict"; + +function registerSNSItemModifications(event) { + const bootPairs = [ + // [hiking_boot, non-hiking_equivalent] + ['sns:hiking_boots', 'minecraft:leather_boots'], + ['sns:steel_toe_hiking_boots', 'tfc:metal/boots/steel'], + ['sns:black_steel_toe_hiking_boots', 'tfc:metal/boots/black_steel'], + ['sns:blue_steel_toe_hiking_boots', 'tfc:metal/boots/blue_steel'], + ['sns:red_steel_toe_hiking_boots', 'tfc:metal/boots/red_steel'] + ] + + // for each pair, set the max damage of the hiking boot to 10% more than the normal boot + bootPairs.forEach(pair => { + const hikingBoot = pair[0] + const normalBoot = pair[1] + + event.modify(hikingBoot, item => { + item.maxDamage = Item.of(normalBoot).maxDamage * 1.1 + }) + }) +} +