Copying entity NBTs (and saving it in string)

Started by LeDeave on

Topic category: Help with modding (Java Edition)

Last seen on 11:28, 23. Jul 2024
Joined Jul 2014
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Copying entity NBTs (and saving it in string)

Is this even possible? I was able to find copy NBT data block, but only for items. I would like to make a "mount storing item", that would save NBT data of target entity for small server I'm curating, yet I wasn't able to find such feature in MCreator or any available plugins...

Last seen on 08:55, 21. Jul 2024
Joined May 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
If using fabric, try […
Sun, 07/21/2024 - 08:46

If using fabric, try [(NbtCompound) Entity.writeNbt(NbtCompound nbt)]. If using forge, IDK.