Hello,
I've set my mod block harvest tool to pickaxe and level to 1, which should cause it to drop nothing when mined with a wooden pickaxe. However this not only does not take place, but I'm even able to harvest the block by mining it with a bare hand.
Code details
Block registration:
public static final RegistryObject<Block> COPPER_ORE = BLOCKS.register("copper_ore", MetalOreBlock::new);
MetalOreBlock class:
package ...
import ...
public class MetalOreBlock extends Block {
public MetalOreBlock() {
super(Block.Properties
.create(Material.ROCK)
.sound(SoundType.STONE)
.hardnessAndResistance(3.0f, 3.0f)
.harvestLevel(1)
.harvestTool(ToolType.PICKAXE)
);
}
}
How to fix it?
Thanks in advance!