Posted October 31, 201311 yr Title I need help, I want to change what iron and gold drops, but i dunno the event that is doing it so I can't hook it. The only way i managed to do it is editing the BlockOre vanilla class, but this may cause mod incompatibility. I also want to remove some vanilla recipes without editing vanilla classes or is it uneccesery? NOTE: I started modding forge 2 days ago, without knowing the java or any other language.
October 31, 201311 yr ASM or Reflections. Apparently I'm a complete and utter jerk and come to this forum just like to make fun of people, be confrontational, and make your personal life miserable. If you think this is the case, JUST REPORT ME. Otherwise you're just going to get reported when you reply to my posts and point it out, because odds are, I was trying to be nice. Exception: If you do not understand Java, I WILL NOT HELP YOU and your thread will get locked. DO NOT PM ME WITH PROBLEMS. No help will be given.
October 31, 201311 yr I'll tell you what I did to change the loot from killing a sheep, I think it is similar to changing the drops of a iron ore block. I removed the spawning of sheep in my main mod file. I added my the spawning of a sheep(my mod sheep). Then I created the class of 'my mod sheep' and extended the vanilla Minecraft Sheep class. I used a @Override command to override the code that defined the drops when sheep gets killed.
October 31, 201311 yr DemoXin just published his "FortuneOres" mod which does exactly that and is open source, so you can check for yourself how he did that - or ask him: http://www.minecraftforum.net/topic/2079807-fortuneores/ ItemBlock is not a Block ItemStack is not an Item Damage value is not metadata Stop confusing them.
October 31, 201311 yr By using a coremod: http://www.minecraftforum.net/topic/1854988-tutorial-162-changing-vanilla-without-editing-base-classes-coremods-and-events-very-advanced/ or http://www.minecraftforge.net/wiki/Using_Access_Transformers or By using reflexion: http://tutorials.jenkov.com/java-reflection/index.html Coremod is the way to do because it's Forge based. But reflexion works too.
October 31, 201311 yr Author Omg, he was 1 day ahead, just about to make the same thing... Anyways thanks guys, good thing my mod has something more...
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.