Need some help with the GUI

Started by BrainGrunt_ on

Topic category: Help with Minecraft modding (Java Edition)

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.

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.

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

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?