The Vanilla Experience (Mod) (Forge)

The Vanilla Experience (Mod) (Forge)

118k Downloads

Tree Harvester Incompatible With No Tree Punching

wilsoffer opened this issue · 2 comments

commented

Tree Harvester Incompatible With No Tree Punching

Minecraft version: 1.21.5
Fabric loader version: 0.16.14
Singleplayer

Mod name: Tree Harvester
Mod version: 9.1

Description

I have tried a datapack version of no tree punching and the modded version and I have noticed that when I cut down trees using the traditional cutting method with tis mod, the tree will break but no logs will fall, but when I crouch, I am able to grab the log that fell. This is a little bothersome since it defeats the purpose of using Tree Harvester. Perhaps I could change the datapack code to. The code is:

minecraft\saves\WORLD NAME\datapacks\DATAPACK\data\minecraft\loot_table\blocks\acacia_log.json
"
{
"type": "minecraft:block",
"pools": [
{
"rolls": 1,
"entries": [
{
"type": "minecraft:item",
"name": "minecraft:acacia_log"
}
],
"conditions": [
{
"condition": "minecraft:match_tool",
"predicate": {
"items": [
"minecraft:wooden_axe",
"minecraft:stone_axe",
"minecraft:iron_axe",
"minecraft:golden_axe",
"minecraft:diamond_axe",
"minecraft:netherite_axe"
]
}
}
]
}
]
}

"

commented

From my understanding, The Tree Harvester mod does not use Minecraft's loot table system for all log breaks. It only applies the tool logic (like your axe check) to the first block broken — the one the player directly interacts with. All the other logs above it are broken programmatically by the mod, not by the player’s tool, which means loot tables that depend on match_tool do not run on those blocks.

commented

With how the mod is coded, it is impossible to fix it via datapacks.
Solution found: https://www.curseforge.com/minecraft/mc-mods/falling-tree

  • Keep No Tree Punching
  • Config:
  • {
    "trees": {
    "allowedLogs": [],
    "deniedLogs": [],
    "allowedLeaves": [],
    "allowedNonDecayLeaves": [],
    "deniedLeaves": [],
    "breakMode": "FALL_ALL_BLOCK",
    "detectionMode": "WHOLE_TREE",
    "maxScanSize": 500,
    "minSize": 0,
    "maxSize": 100,
    "maxLeafDistanceFromLog": 15,
    "maxSizeAction": "ABORT",
    "breakOrder": "FURTHEST_FIRST",
    "minimumLeavesAroundRequired": 1,
    "includePersistentLeavesInRequiredCount": true,
    "treeBreaking": true,
    "leavesBreaking": false,
    "leavesBreakingForceRadius": 0,
    "allowMixedLogs": false,
    "breakNetherTreeWarts": true,
    "breakMangroveRoots": true,
    "searchAreaRadius": -1,
    "allowedAdjacentBlocks": [],
    "adjacentStopMode": "STOP_ALL",
    "spawnItemsAtBreakPoint": false
    },
    "tools": {
    "allowed": [
    "minecraft:wooden_axe",
    "minecraft:stone_axe",
    "minecraft:iron_axe",
    "minecraft:golden_axe",
    "minecraft:diamond_axe",
    "minecraft:netherite_axe"
    ],
    "denied": [],
    "durabilityMode": "NORMAL",
    "ignoreTools": false,
    "damageMultiplicand": 1.0,
    "damageRounding": "ROUND_DOWN",
    "speedMultiplicand": 0.0,
    "forceToolUsage": true
    },
    "player": {
    "allowedTags": []
    },
    "enchantment": {
    "requireEnchantment": false
    },
    "sneakMode": "SNEAK_DISABLE",
    "breakInCreative": true,
    "lootInCreative": true,
    "notificationMode": "ACTION_BAR"
    }