Posted February 12, 201312 yr is it possible to make an ore from the ore dictionary drop a custom item? for example, lead occasionally dropping lead-210.
February 12, 201312 yr Given that I never wrote anything with the ore dictionary, the first way that comes to my mind would be to register an EntityJoinWorldEvent handler, that checks whenever an EntityItem is spawned. Then, if it contains something that is registered in the OreDictionary as oreLead, it replaces the ItemStack with what you need, or spawn a new EntityItem with the occasional sub-drop, or whatever you want, even creating a nuclear blast or a host of creeper if you feel like so. It was completely off the top of my head, so its not guaranteed to work.
February 12, 201312 yr Indeed, haven't thought about that. It may be twisted to work anyway, but that may require a lot of extra infrastructure.
February 14, 201312 yr Author does anyone know what the ore dictionary name for lead is? EDIT: also does anyone know how I'd call the event handler? and would this work for checking if it's lead or not if(OreDictionary.getOreName(enti.func_92014_d().itemID) == "LEAD ORE DICTIONARY NAME")
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.