Need some help with the GUI

Started by BrainGrunt_ on

Topic category: Help with modding (Java Edition)

Last seen on 13:32, 5. Nov 2023
Joined Mar 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Need some help with the GUI

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.

Last seen on 11:52, 23. Apr 2024
Joined Apr 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Here's a link to 3…
Thu, 03/18/2021 - 08:28

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.

Last seen on 13:32, 5. Nov 2023
Joined Mar 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
THANK YOU SO MUCH!!!!!!!!!!!
Thu, 03/18/2021 - 11:32

THANK YOU SO MUCH!!!!!!!!!!!

Last seen on 20:54, 24. Jul 2022
Joined Mar 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
what should I change if I…
Fri, 07/23/2021 - 20:23

what should I change if I wanted to do this on a block instead of an item?