MrPlantPots Posted May 25, 2016 Posted May 25, 2016 I am trying to add a potion effect to an entity when I hit it. No methods I could find return an Entity every click besides "hitEntity", however that isn't working for me. If anybody knows how to fix this, or a different solution, any help would be great ! Code:[embed=425,349] @Override public boolean hitEntity(ItemStack par1ItemStack, EntityLivingBase par2EntityLivingBase, EntityLivingBase par3EntityLivingBase) { System.out.println("Testing"); return true; }[/embed] Quote
MrPlantPots Posted May 25, 2016 Author Posted May 25, 2016 I am trying to add a potion effect to an entity when I hit it. No methods I could find return an Entity every click besides "hitEntity", however that isn't working for me. If anybody knows how to fix this, or a different solution, any help would be great ! Code:[embed=425,349] @Override public boolean hitEntity(ItemStack par1ItemStack, EntityLivingBase par2EntityLivingBase, EntityLivingBase par3EntityLivingBase) { System.out.println("Testing"); return true; }[/embed] Quote
Draco18s Posted May 25, 2016 Posted May 25, 2016 On 5/25/2016 at 5:18 PM, MrPlantPots said: I am trying to add a potion effect to an entity when I hit it. You need an event. Quote 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.
Draco18s Posted May 25, 2016 Posted May 25, 2016 On 5/25/2016 at 5:18 PM, MrPlantPots said: I am trying to add a potion effect to an entity when I hit it. You need an event. Quote 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.
MrPlantPots Posted May 25, 2016 Author Posted May 25, 2016 I am new to modding, and I can't find anywhere how to use this, could you possible explain how I would go about doing this? Or what I should I search for? Quote
MrPlantPots Posted May 25, 2016 Author Posted May 25, 2016 I am new to modding, and I can't find anywhere how to use this, could you possible explain how I would go about doing this? Or what I should I search for? Quote
SuperGeniusZeb Posted May 25, 2016 Posted May 25, 2016 On 5/25/2016 at 5:23 PM, MrPlantPots said: I am new to modding, and I can't find anywhere how to use this, could you possible explain how I would go about doing this? Or what I should I search for? Here's a helpful article on Forge events, though some info might be out-of-date as it was written back in the days of 1.7.10.) http://greyminecraftcoder.blogspot.com/2013/12/forge-techniques-events.html Quote Colore - The mod that adds monochrome blocks in every color of the rainbow! http://www.minecraftforge.net/forum/index.php?topic=35149 If you're looking to learn how to make mods for 1.9.4, I wrote a helpful article with links to a lot of useful resources for learning Minecraft 1.9.4 modding! http://supergeniuszeb.com/mods/a-helpful-list-of-minecraft-1-9-4-modding-resources/
SuperGeniusZeb Posted May 25, 2016 Posted May 25, 2016 On 5/25/2016 at 5:23 PM, MrPlantPots said: I am new to modding, and I can't find anywhere how to use this, could you possible explain how I would go about doing this? Or what I should I search for? Here's a helpful article on Forge events, though some info might be out-of-date as it was written back in the days of 1.7.10.) http://greyminecraftcoder.blogspot.com/2013/12/forge-techniques-events.html Quote Colore - The mod that adds monochrome blocks in every color of the rainbow! http://www.minecraftforge.net/forum/index.php?topic=35149 If you're looking to learn how to make mods for 1.9.4, I wrote a helpful article with links to a lot of useful resources for learning Minecraft 1.9.4 modding! http://supergeniuszeb.com/mods/a-helpful-list-of-minecraft-1-9-4-modding-resources/
Draco18s Posted May 25, 2016 Posted May 25, 2016 Largely speaking, everything is still correct. There's been a reduction in buses for 1.9 (there's only one now, the split wasn't very meaningful) and some event names/properties have changed, but it should still be sufficient to get started. Quote 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.
Draco18s Posted May 25, 2016 Posted May 25, 2016 Largely speaking, everything is still correct. There's been a reduction in buses for 1.9 (there's only one now, the split wasn't very meaningful) and some event names/properties have changed, but it should still be sufficient to get started. Quote 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.
Recommended Posts
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.