Topic category: User side tutorials
First of all go to the Variables Section of Your Project on the left side. Then Create a Global Session Variable of type String
Add a text in your GUI and on the drop list select the Global Variable you have just created, they are at the bottom of the list.
Now, create a Procedure for the Entity "On initial entity spawn" Trigger and in the Procedure Set a NBT tag variable whit an original name, use tag at the beginning, your mod name and a name that indicates the content of the variable. Then at the right set the value you want for your variable, in this case the custom name.
At last create a procedure that sets the Global Session Variable whit the value of the NBT tag and opens the GUI on the Entity Trigger "When right-clicked on entity". On the first block drop list chose the Global Variable you made at the beginning, on the second the name you set for the NBT tag. On the second code block on the drop list chose the GUI where you set the label whit the Variable.
This is a way of doing it, the NBT tag value can the changed whit other procedures, it may have other uses
you and your tutorial solved my problems!!!!
thank you!!!!!!!!!!!!
this is good to know, you're welcome
you can use the same gui for multiple entity whit this metod.