[tutorial] how to make a block breakable with hand but speeds up when using a tool!

Started by skytubbie on

Topic category: Help with MCreator software

Last seen on 00:42, 16. Jul 2023
Joined May 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
[tutorial] how to make a block breakable with hand but speeds up when using a tool!

as we both know, its not possible to make this normally in alot of versions, but with the help of the code editor, it's EASILY possible

 

open the code editor, and open your block of choice

-Search for .setRequiresTool() in the code of your block

    public static class CustomBlock extends Block {

public CustomBlock() {
super(Block.Properties.create(Material.ROCK).sound(SoundType.STONE).hardnessAndResistance(2f, 10f).setLightLevel(s -> 0).harvestLevel(0)
.harvestTool(ToolType.PICKAXE).setRequiresTool());
setRegistryName("CustomBlock");
}

after you find it, just delete it! it should look like this after:

    public static class CustomBlock extends Block {

public CustomBlock() {
super(Block.Properties.create(Material.ROCK).sound(SoundType.STONE).hardnessAndResistance(2f, 10f).setLightLevel(s -> 0).harvestLevel(0)
.harvestTool(ToolType.PICKAXE));
setRegistryName("CustomBlock");
}

pretty easy, but I wish it wasn't this hard to figure out. anyways enjoy!