I've been searching the internet for hours and tried so many things but I just can't seem to find the solution. Please help me.
Here is the code:
public enum ModItemTier implements IItemTier {
SNG(4, 2031, 9.0F, 4.0F, 15, () -> {
return Ingredient.fromItems(ModItems.SNG_INGOT);
}
);
I looked online and can't find a solution that worked.
Here is the code for the block:
public static final RegistryObject<Block> SNG_ORE = BLOCKS.register("sng_ore", () ->
new Block(AbstractBlock.Properties
.of(Material.METAL)
.strength(5.0f,6.0f)
.sound(SoundType.STONE)
.harvestLevel(2)
.harvestTool(ToolType.PICKAXE)
)
);