Jump to content

Simple "Respawn" Item - How would you do this?


Ghost20000

Recommended Posts

Hi,

I'm trying to make a simple item that, when you hold it in your main hand and right click on a living entity, will kill the entity and spawn an entity of the same type in your location.

So if you right click on a pig, the pig will die and a second, new pig will spawn on you.

It seems to me that making such a simple item would be incredibly complicated with forge. You'd need to raytrace on the client-side to find the mob, tell the server about the mob through networking, kill the mob, then spawn a new one.

Is there something I'm missing? Do you really need to set up networking for such a simple item?

How would you do this?

Thank you!

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.

Guest
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.

Announcements



×
×
  • Create New...

Important Information

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