How to trigger an overlay with a keybind?

Started by ThatBlueMango on

Topic category: Help with modding (Java Edition)

Last seen on 16:38, 13. Aug 2023
Joined Dec 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
How to trigger an overlay with a keybind?

Ive search the corners of the internet and have found no solution. This is my last attempt before I admit defeat. Is there any way to trigger an overlay with a keybind? MCreator 2022.3 1.18.2 Forge 40.1.0

Last seen on 04:12, 18. Apr 2024
Joined Mar 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Create a Player_Persistant…
Wed, 12/21/2022 - 21:33

Create a Player_Persistant Logic Variable and give it the name you want (Make sure the initial Value is False): 1

Then, Create a keybind, and create a: On key pressed Procedure, do this:
2

then, create another procedure(i called it ReturnShow):
3

finally: go on your overlay, and set this as your Return Procedure as your display condition:
4

Last seen on 16:38, 13. Aug 2023
Joined Dec 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I cant seem to find the Get…
Wed, 12/21/2022 - 21:51

I cant seem to find the Get or Set Global ShowOverlay becauseIm dumb, in what section is it?

Last seen on 16:38, 13. Aug 2023
Joined Dec 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
It appears I had just…
Wed, 12/21/2022 - 22:09

It appears I had just forgotten to close and reopen the procedure thank you for all the help

Last seen on 04:12, 18. Apr 2024
Joined Mar 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
No problem
Thu, 12/22/2022 - 00:30

No problem

Last seen on 15:55, 17. May 2023
Joined May 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
it doesn't work for me,…
Mon, 05/15/2023 - 09:46

it doesn't work for me, where should i put the second procedure? i created the mod in 2023.1 and i folowed step by step your tutorial

Last seen on 04:44, 31. Mar 2024
Joined Sep 2015
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
What did not work for you?…
Wed, 06/21/2023 - 14:12

What did not work for you? Just_Call_Me_Tonx