BlockBreaker

Breaks the block it looking at. If it does not have enough energy, will the material-blocks-duration be extended. It is possible to configure multiple material-blocks-duration , for different materials.
BlockBreaker can be useful for automating cobblestone generators, in skyblock etc. The example below shows how you can make three different blockbreaker components. This can, for example, be used to allow the player to unlock new blockbreakers during the game that get better and better.
iron-blockbreaker: # The component id.
max-energy-consumption: 30
material-blocks-duration: # List of blocks with duration in ticks.
IRON_ORE: 3000
IRON_BLOCK: 5500
DEEPSLATE_IRON_ORE: 10000
tools:
materials: # The materials that's the machine can break using an item/tool.
- coal_ore
- diamond_ore
- iron_ore
allowed-tools: # The tools that can be used to break blocks.
- iron_pickaxe
take-durability: true
info:
title: "<red> Iron Breaker"
display-energy: true
gold-blockbreaker: # The component id.
max-energy-consumption: 50
material-blocks-duration: # List of blocks with duration in ticks.
GOLD_ORE: 4500
GOLD_BLOCK: 8000
DEEPSLATE_GOLD_ORE: 15000
tools:
materials: # The materials that's the machine can break using an item/tool.
- coal_ore
- diamond_ore
- iron_ore
allowed-tools: # The tools that can be used to break blocks.
- iron_pickaxe
take-durability: true
info:
title: "<red> Gold Breaker"
display-energy: true
diamond-blockbreaker: # The component id.
max-energy-consumption: 80
material-blocks-duration: # List of blocks with duration in ticks.
DIAMOND_ORE: 7000
DIAMOND_BLOCK: 12000
DEEPSLATE_DIAMOND_ORE: 22000
tools:
materials: # The materials that's the machine can break using an item/tool.
- coal_ore
- diamond_ore
- iron_ore
allowed-tools: # The tools that can be used to break blocks.
- iron_pickaxe
take-durability: true
info:
title: "<red> Diamond breaker"
display-energy: trueLast updated