Version: 1.16.3
I have already added an block to my mod: the ruby block the code is following:
package com.jann.moreitemsmod.blocks;
import net.minecraft.block.Block;
import net.minecraft.block.SoundType;
import net.minecraft.block.material.Material;
import net.minecraftforge.common.ToolType;
public class RubyBlock extends Block {
public RubyBlock() {
super(Block.Properties.create(Material.IRON)
.hardnessAndResistance(5.0f, 6.0f)
.sound(SoundType.METAL)
.harvestLevel(3)
.harvestTool(ToolType.PICKAXE)
);
}
}
I have loaded my mod, and I can break the ruby block with each item, but I want, that everybody can break the ruby block with iron pickaxe, diamond pickaxe and netherite pickaxe.