show a gui when a player has a variable (solved)

Started by ComiCherro on

Topic category: Help with MCreator software

Joined Feb 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
show a gui when a player has a variable (solved)
Sat, 02/04/2023 - 07:26 (edited)

I have an item that gives the player a player persistent variable called "electro" and when the player has this variable i want them to see a special gui i made. im unsure on how to do this or if its even possible

EDIT: I figured it out myself i was just being dumb lmao.

Edited by ComiCherro on Sat, 02/04/2023 - 07:26
Joined May 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
yo have to make a procedure…
Sat, 02/04/2023 - 07:12

yo have to make a procedure and click on the "No Addition triggers" in the first block and then scroll down and select "on player tick update" then after that you place a block called "while do" then after that you get ur custom variable and connect it to "while do" and then after that u put inside of "while do" a block called "open screen for [Entity/target Entity] pass location [x] [y] [z] GUI:  than u select the gui want to open