Open chest GUI upon execution of a certain command

Started by Phantom_Meme on Sun, 05/03/2020 - 17:59

Topic category: Help with modding (Java Edition)

Last seen on 17:34, 14. Nov 2020
Joined May 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
Open chest GUI upon execution of a certain command
Sun, 05/03/2020 - 17:59

Hi, i recently started playing a mod and i need a simple mod that does the following: upon the command /backpack or its alias /bp being executed, a chest GUI named Backpack is opened with 27 slots. I am having difficulties finding out where is a code block that opens a chest with that many slots. I tried the block "Open GUI for the provided player" but im not sure how to specify which GUI to open. Can someone help me by telling me step by step how to do this or are there any tutorials for this? Thanks in advance.

Last seen on 22:23, 24. Jul 2021
Joined Mar 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
You have to create a new…
Mon, 05/04/2020 - 14:17

You have to create a new element with the type GUI and then it will show up.

Last seen on 17:34, 14. Nov 2020
Joined May 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
Thanks for the response, i…
Mon, 05/04/2020 - 17:28

Thanks for the response, i got GUI and i need to see if the code i did was correct. Here is the imgbox link: http://imgbox.com/HxEDQd7a

Shows my code, Event Trigger - triggered by an external call or when (global trigger): Command Executed -> Open GUI for the provided player: BackpackGUI