diff --git a/config/treeharvester.json5 b/config/treeharvester.json5 new file mode 100644 index 0000000..2a4a44f --- /dev/null +++ b/config/treeharvester.json5 @@ -0,0 +1,38 @@ +{ + // If enabled, tree harvesting only works when a player is holding an axe in the main hand. + "mustHoldAxeForTreeHarvest": true, + // If enabled, tree harvesting works when not holding the sneak button. If disabled it's reversed, and only works when sneaking. + "treeHarvestWithoutSneak": true, + // Whether the mod should attempt to find the actual bottom log of the tree and start there. This means you can break a tree in the middle and it will still completely be felled. + "automaticallyFindBottomBlock": true, + // If enabled, the leaves around a broken tree will quickly disappear. Only works with 'instantBreakLeavesAround' disabled. + "enableFastLeafDecay": true, + // If enabled, the warped stem/crimson trees in the nether will also be chopped down quickly. + "enableNetherTrees": true, + // If enabled, giant/huge mushrooms will also be chopped down quickly. + "enableHugeMushrooms": true, + // If enabled, trees with leaves placed by players won't be destroyed. + "ignorePlayerMadeTrees": true, + // If enabled, automatically replaces the sapling from the drops when a tree is harvested. + "replaceSaplingOnTreeHarvest": false, + // If enabled, automatically replaces the sapling from the drops when a huge mushroom is harvested and 'enableHugeMushrooms' is enabled. + "replaceMushroomOnMushroomHarvest": false, + // If enabled, for every log harvested, the axe held loses durability. + "loseDurabilityPerHarvestedLog": true, + // Here you can set how much durability chopping down a tree should take from the axe. For example if set to 0.1, this means that every 10 logs take 1 durability. + // min: 0.001, max: 1.0 + "loseDurabilityModifier": 1.0, + // If enabled, players' exhaustion level increases 0.005 per harvested log (Minecraft's default per broken block) * increaseExhaustionModifier. + "increaseExhaustionPerHarvestedLog": true, + // This determines how much exhaustion should be added to the player per harvested log. By default 0.005 * 1.0. + // min: 0.001, max: 1.0 + "increaseExhaustionModifier": 1.0, + // If enabled, harvesting time will increase per existing log in the tree. The amount is determined by 'increasedHarvestingTimePerLogModifier'. + "increaseHarvestingTimePerLog": true, + // How much longer it takes to harvest a tree with 'increaseHarvestingTimePerLog' enabled. The actual speed is: newSpeed = originalSpeed / (1 + (logCount * increasedHarvestingTimePerLogModifier)). + // min: 0.01, max: 10.0 + "increasedHarvestingTimePerLogModifier": 0.2, + // How many leaves should be broken per tick after a tree has been harvested. Increasing this will speed up the fast leaf decay, but costs more processing power per tick. + // min: 1, max: 16 + "amountOfLeavesBrokenPerTick": 5 +} diff --git a/index.toml b/index.toml index 4f5a7d3..aa902e6 100644 --- a/index.toml +++ b/index.toml @@ -80,6 +80,10 @@ hash = "fdb4627cf39e0bab0e84567909662a6db2ecf2850535270372acb6aba53066ed" file = "config/torchmaster.toml" hash = "daa926a3590b1b913d3feaa8eba7754f370eb1437f3d2ae2396ca7808827ce46" +[[files]] +file = "config/treeharvester.json5" +hash = "8c6265d8987a7c81e57c576e5ce30c072b1ce73c8a3aed8a2d620a3d578759df" + [[files]] file = "config/watut-common.toml" hash = "4dbfe6f9ff1e7d8031283a75f9c953c476bdc4b1b8840afd66cd82818eeef1ca" diff --git a/pack.toml b/pack.toml index 603038b..712797c 100644 --- a/pack.toml +++ b/pack.toml @@ -6,7 +6,7 @@ pack-format = "packwiz:1.1.0" [index] file = "index.toml" hash-format = "sha256" -hash = "78e8b208cf884397a844e68a896db4f7543385e22e3197d7dcdf4c2a91e242c7" +hash = "3ea18d0e31b3731b9c41648a6cd79d3d36340a54f49d91464527e945ee629d15" [versions] minecraft = "1.21.1"