Jump to content

hisui

Members
  • Posts

    2
  • Joined

  • Last visited

hisui's Achievements

Tree Puncher

Tree Puncher (2/8)

0

Reputation

  1. Thank you. Feel a bit silly since I've read before that you should use a different method than vanilla uses for doing drops like that but I guess that's not entirely true since it does work. Thanks!
  2. 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
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.