Posted August 11, 201312 yr Okay so I'm making a mod MobDrops(http://www.planetminecraft.com/mod/125-mobdrops/), I have an issue with the drops. The drops won't drop. Does anyone have the code for 1.6.2? I don't have an code except my old one... but that edits the base code, and I wouldn't like that. It would be better to have a different class file that extends it. MobDrops http://www.planetminecraft.com/mod/125-mobdrops/
August 11, 201312 yr Author Duplicate with http://www.minecraftforge.net/forum/index.php/topic,6254.0.html tried it.. that is only for 1.5.2... was hoping for a 1.6.2 answer MobDrops http://www.planetminecraft.com/mod/125-mobdrops/
August 12, 201312 yr I wouldn't do that. I (I am probably going to be told a better way) would use Forge events. For this specific thing I would use LivingDeathEvent. Then, checking if the entity that died was a mob I wanted to add a drop too, I would spawn a new EntityItem with the drop I wanted at the location the entity died in. Not sure how efficient it is (like I said, I will probably be told a better way), but it will work. I am Mew. The Legendary Psychic. I behave oddly and am always playing practical jokes. I have also found that I really love making extremely long and extremely but sometimes not so descriptive variables. Sort of like what I just did there
August 12, 201312 yr Author I wouldn't do that. I (I am probably going to be told a better way) would use Forge events. For this specific thing I would use LivingDeathEvent. Then, checking if the entity that died was a mob I wanted to add a drop too, I would spawn a new EntityItem with the drop I wanted at the location the entity died in. Not sure how efficient it is (like I said, I will probably be told a better way), but it will work. Can you give me the code? I'm kinda noobish with coding still... Look at the vanilla coding (if you are using BASE classes) I was hoping for not putting the code in the base class. Also I tried it. doesn't work. MobDrops http://www.planetminecraft.com/mod/125-mobdrops/
August 12, 201312 yr I suggest you go look at pahimars github repository, it has a EntityLicingHandler class that has the LivingDeathEvent event. If you look around in his repository, you'll find all the things you need for your mod. Don't PM me with questions. They will be ignored! Make a thread on the appropriate board for support. 1.12 -> 1.13 primer by williewillus. 1.7.10 and older versions of Minecraft are no longer supported due to it's age! Update to the latest version for support. http://www.howoldisminecraft1710.today/
August 15, 201312 yr Author I suggest you go look at pahimars github repository, it has a EntityLicingHandler class that has the LivingDeathEvent event. If you look around in his repository, you'll find all the things you need for your mod. okay i'll take a look EDIT: I took a look and didn't work... MobDrops http://www.planetminecraft.com/mod/125-mobdrops/
August 16, 201312 yr Author bump.... please help! MobDrops http://www.planetminecraft.com/mod/125-mobdrops/
August 16, 201312 yr ok 1 make a class that will handle LivingDropEvent look up at tutorials if you dont know how 2 add your drops inside the handler how to debug 101:http://www.minecraftforge.net/wiki/Debug_101 -hydroflame, author of the forge revolution-
August 16, 201312 yr Author okay... put the code into the base class is a choose BUT... I tried my old code and it doesn't work. MobDrops http://www.planetminecraft.com/mod/125-mobdrops/
August 16, 201312 yr what ? how to debug 101:http://www.minecraftforge.net/wiki/Debug_101 -hydroflame, author of the forge revolution-
August 16, 201312 yr Author what ? What i meant was, "okay... putting the code into the base class is a choose BUT... I tried my old code and it doesn't work MobDrops http://www.planetminecraft.com/mod/125-mobdrops/
August 16, 201312 yr Author Its Solved... Got it to work! MobDrops http://www.planetminecraft.com/mod/125-mobdrops/
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.