Posted January 5, 201510 yr Hi so i made a working projectile like a snowball and when it lands on the ground i want to to spawn another custom entity i have made but for some reason the entity doesn't spawn. I know that the entity i want to spawn is in the game because i can use its mob egg and it spawns in. entity projectile code: http://pastebin.com/iUDEtYxr entity i want to spawn code: http://pastebin.com/zM7TzuP7 In my brain this should work and I cant see why it isn't but I'm but its something simple i just overlooked that i cant see. BioWarfare Mod: http://goo.gl/BYWQty
January 5, 201510 yr Before you spawn the entity, use setLocationAndAngles to set its position. Check out my mod, Realms of Chaos, here. If I helped you, be sure to press the "Thank You" button!
January 6, 201510 yr 1. Why do you have the grenade effect in a separate class? There is no reason to do this, just spawn the particle effects in the onImpact method of EntityGrenade. 2. Like Eternaldoom said, you need to set the position of the grenade effect entity (this doesn't matter if you've just removed EntityGrenadeEffect altogether) Don't make mods if you don't know Java. Check out my website: http://shadowfacts.net Developer of many mods
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.