Started by
BrainGrunt_
on
Topic category: Help with Minecraft modding (Java Edition)
How do i make a label in a GUI be the same as the name of the item its on?
By renaming a backpack i made ,(an item with a gui connected to it) in an anvil, i want the label ive put inside the gui to change to to whatever the item name changed to.
Here's a link to 3 screenshots (right click image, click view image to see a larger view)
#1 Create a Global variable of type 'String' and for multiplayer support make it player persistent.
#2 In the GUI add a text field and use the drop down menu and scroll to the bottom to find your new variable, select it.
#3 Make a procedure like the one in the third screenshot.
Oops sorry forgot the link - https://imgur.com/a/3WzyCMw
THANK YOU SO MUCH!!!!!!!!!!!
what should I change if I wanted to do this on a block instead of an item?