how to add player name to text?

Started by doggydoply45 on

Topic category: Help with modding (Java Edition)

Last seen on 05:45, 20. Apr 2024
Joined Dec 2014
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
how to add player name to text?

i just want to have a taming procedure finish with naming the entity "[player]'s pet" kinda thing ,how do i get the player's name as text and then use it?

Last seen on 05:45, 20. Apr 2024
Joined Dec 2014
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
solution: these blocks [Set…
Thu, 02/10/2022 - 10:17

solution: these blocks

[Set display name of [event/target entity] to] - [create text with] [get (display) name of (source entity)]]

..................................................................................................  [" 's entity]

forgive the weird formatting i hope it makes it easier to understand the block layout