Hey, new modder here. I've been searching for a tutorial on how to make a block (an ore, in my case) drop something other than itself (like redstone ore does), but tutorials I've found have either been outdated or not good for my context (designed for having ore variants, etc)
So, that said, could someone please explain how to make my ore drop a random amount (from x to y) of an item other than itself?
Here's the code for the block itself:
public class OreUranium extends Block implements IHasModel
{
public OreUranium(String name, Material material)
{
super(material);
setUnlocalizedName(name);
setRegistryName(name);
setCreativeTab(Main.uraniumtab);
setHarvestLevel("pickaxe", 2);
setHardness(3.0F);
BlockInit.BLOCKS.add(this);
ItemInit.ITEMS.add(new ItemBlock(this).setRegistryName(this.getRegistryName()));
}
@Override
public void registerModels()
{
Main.proxy.registerItemRenderer(Item.getItemFromBlock(this), 0, "inventory");
}
}
Any help would be appreciated