Set an entities nbt value after spawning

Started by SpyCoder77 on

Topic category: Help with modding (Java Edition)

Last seen on 19:33, 18. Feb 2024
Joined Jun 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Set an entities nbt value after spawning

I am making a mod that makes it easier to make different types of displays. I have a GUI where I can enter the text that I want displayed on the text display, and I also have a complete button. When you press the button, I want it to summon the text display with the text nbt value to be whatever I put into the textbox. I have embedded an image of my code. 

 

My code
My Code
Last seen on 03:15, 26. Apr 2024
Joined Aug 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
id make a separate procedure…
Sun, 02/18/2024 - 00:45

id make a separate procedure and set it to "when entity spawns" then check what the entity is, and if its what you want, us the set entity nbt block

Last seen on 19:33, 18. Feb 2024
Joined Jun 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Thank you!
Sun, 02/18/2024 - 18:24

Thank you!