Removing and then summoning using uuid of the entity.

Started by Obzor on

Topic category: Help with Minecraft modding (Java Edition)

Joined Jan 2025
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Removing and then summoning using uuid of the entity.
Sat, 08/09/2025 - 04:32 (edited)

I can save an entity in a local variable and, through some manipulation, summon it again at the time I need. But in fact, a completely new entity is being summoned, not a copy of the old one(The level of health and other things are not preserved). As far as I know, to get an exact copy of an entity, you need to use custom code. But I don't know much about it. As I understand it, you need to get the uuid of the entity, and then use it for summoning. 

Can someone tell me how to implement this in more detail?

It seems that some related functionality appeared in 2025.2, but I'm still using 2024.4 because of the addons.

Edited by Obzor on Sat, 08/09/2025 - 04:32