BlockBreaking - alcatrazEscapee/no-tree-punching GitHub Wiki

No Tree Punching makes some major changes to how block breaking works. These come together under the basic rule of "You can't break blocks (or receive their drops) without using the correct tool for the job". Below is a shortlist of the changes as they impact players:

  • There is a new tool type: sword. All sword and knife items fall into this category. These tools can break blocks made from plant type materials such as tall grass, leaves, or cactus.
    • Note: Most vanilla plant blocks actually require an axe type tool in order to break properly.
  • Blocks with no possible tool type will always drop.
  • Pickaxes are able to function as low tier shovels and break earth type blocks.
  • If a block does not match the required tool type, it will be impossible to mine.
  • Leaves (for sticks), and Gravel (for flint) are whitelisted by default as blocks that can always be mined and drop items, in addition to most soft surface material blocks (such as sand, dirt, etc.).

Configuration

There are two block tags which influence if blocks can be broken, and if they will drop items if broken with the wrong tool:

  • notreepunching:always_breakable lists all blocks that are always able to be broken regardless of tool.
  • notreepunching:always_drops lists all blocks that will always drop items, regardless of tool.

There are three configuration options that affect these rules (and can be used to effectively disable them):

# Makes blocks take forever to mine if using the wrong tool
noMiningWithoutCorrectTool = true

# Makes blocks not drop anything when broken with the wrong tool
noBlockDropsWithoutCorrectTool = true

# Makes blocks that would otherwise be broken instantly unbreakable if using the wrong tool.
doInstantBreakBlocksRequireTool = false