How to replace an entity with another and keep it's data

Started by Paleonerd on

Topic category: Help with Minecraft modding (Java Edition)

Joined Jan 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
How to replace an entity with another and keep it's data
Sun, 10/27/2024 - 18:49 (edited)

So i've been wondering how to replace an entity with another and transfer the display name, health, and to whoever it's tamed to to the other entity since there are many cases where i need this. Is there a way to achieve this? I will accept custom code if this isn't possible with procedures.

Edited by Paleonerd on Sun, 10/27/2024 - 18:49
Joined May 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I want to say you could copy…
Tue, 12/03/2024 - 00:16

I want to say you could copy and paste the nbt and attributes via procedure blocks for the transfer.

Joined Dec 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Idk if it's doable with…
Wed, 12/04/2024 - 01:52

Idk if it's doable with procedures, but if you tell me your mc version/modloader I could probably show you how with code

Joined Dec 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Does this work? Replace the…
Wed, 12/04/2024 - 03:04

Does this work? Replace the target entities with the correct ones and that should work.

Joined Dec 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Though I don't know, since I…
Wed, 12/04/2024 - 03:07

Though I don't know, since I haven't tested it.