Overlay toggle via scoreboard?

Started by DW_0000 on

Topic category: Help with Minecraft modding (Java Edition)

Joined Apr 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Overlay toggle via scoreboard?
Sun, 04/21/2024 - 05:56 (edited)

Edit: Wrong title and incomplete details.

I'm still newbie here and I don't know if I did something wrong (but I still think I really did something wrong.)

Why is my overlay not showing?
Here's my procedure.

https://imgur.com/a/500oQ3s

I have a scoreboard "dboxopen" and tried to use it as switch for the overlay. What I expect to happen is it will show the overlay when the score is 1 and 0 the opposite to the player who runs the command. But to no avail, it didn't worked. (Pic 2) I even tried to put tellraw debugging to see the results, It actually showed that the switch actually works, but again, it didn't showed the overlay. Even if I remove the execute command (which is, just the same as my previous attempt,) it just doesn't work.

I did add the procedure to the display overlay in-game so it's not the problem.

Edited by DW_0000 on Sun, 04/21/2024 - 05:56
Joined Apr 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Alright, I finally got it…
Sun, 04/21/2024 - 06:43

Alright, I finally got it.
https://mcreator.net/forum/72514/tutorialhow-make-togglable-overlay - This gave me the idea to just use a global variable instead.

What I did.
 

Steps


If it doesn't load - https://imgur.com/a/cFsHknM

Sorry If my English is bad, it's not my native language.