Topic category: User side tutorials
Hello All,
Today I will teach you how to make a overlay that displays variables, that only appears on screen when you press and hold a keybinding.
First off, and this goes without saying, you need to have your systems up and running before hand if your using this tutorial to display your system.
Secondly this is applicable to images and any other elements that can be used on an overlay.
Thirdly, I'm open to questions, but please, I am just one person, I don't know everything about everything there is know about overlays or anything else mcreator/modding related. I'm just sharing what I've learned through trial and error process. Anyways on with the tutorial :)
For this tutorial I've made a Timer system, that keeps track of how long you've been playing (In real time) a world.
Here is that Procedure
Okay so now that you have your system, add a new Procedure, call it what you want, inside add this
you can find the Return block under "Flow Control"
This procedure is what you will put on every Text Label, Image, etc.. in your overlay for the "Display Condition"
Make a procedure call it what you want, inside it will look like this
also make a second procedure, make it like this one, except make it false.
Now that, that's done, make a new Key Binding and add the procedure that sets your variable to true in the box "On key pressed"
and in the "On key released" put the false procedure
Here is what my overlay looks like (in Mcreator)
There you go, If you go in-game and press and hold the key you selected it will display the "Other" variables you've setup to display.
Final thoughts: Is this the end all be all to displaying info/images with a keybind? No, probably not, this is just a way I've found that works. Thanks all for viewing and happy modding! <3
Man the post editor awesome, but man I pretty'd up my post and then posted it, looked at it all the text that I wrote below the pictures ended up on the side of them, so i re-edited the entire post and turned them into links instead. :D
This is awesome. TY!
Cruel, you need to make your own variable
You need to go in work space, and then open a variable window, (this window is on the left)