Jump to content

Recommended Posts

Posted (edited)

I want to take an existing in-game entity and replace it's code (I don't want to change the textures and appearence at all) with mine.

 

Everywhere I look I see only how to register a new entity.

If I cannot simply replace an entity, how do I remove one from the game? If I can do that, I can just mimik the name of the one I want to replace. 

 

I would also like to have information about how to link my replacement to the entity's spawn egg.

 

I can supply code if necessary, but I didn't do much, I am still mostly planning so I don't think much would help.

 

Thanks!

Edited by Nimi142
Added version to title
Posted

I want to change the spawn conditions as well. Will removing the entity entirely and creating a new one that inherits it be better?

If so, how do I remove this entity from the game? I suppose I can stop it from spawning by using "EntityJoinWorldEvent" and removing it everytime it spawns, but I would like to remove it's egg and stuff as well. Is such a thing possible?

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.