save a mob owner in a NBT tag

Started by SpaceChaton on

Topic category: Help with Minecraft modding (Java Edition)

Joined Mar 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
save a mob owner in a NBT tag
Wed, 03/30/2022 - 18:48 (edited)

Hello,
I would like to store the name of the player who has tamed a mob and to be able to make another mob be tamed by the player whose name is stored in the tag nbt. But I can't do it, I tried to get the player's name as text with "create text with:" and "get owner of" but then I can't use the nbt content with "tame by". If you know how I can achieve this, I invite you to share this with me. Thanks in advance for any answer :)
(sorry for my bad English)

Edited by SpaceChaton on Wed, 03/30/2022 - 18:48