Set an entities nbt value after spawning

Started by SpyCoder77 on

Topic category: Help with Minecraft modding (Java Edition)

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
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

Joined Jun 2023
Points:

User statistics:

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

Thank you!