Jump to content

[1.7.10]A projectile entity that spawns another entity on impact


Recommended Posts

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:




entity i want to spawn code:




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

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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.

Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...

Important Information

By using this site, you agree to our Terms of Use.