Started by
RedCorr
on
Topic category: Help with Minecraft modding (Java Edition)
Ok so, I was thinking about making a mod where when you press a certain key you enable "Blade mode" - your XP bar is decreasing and you gain speed effect, I already made this.
But now I'm curious if I can make that binded key on this mode activateable and deactivateable, like it switches from "On" to "Off" in a single key, and if can then how can I do that?
If I can't bind "Activate" and "Deactivate" on one button, then how do I make a timer?
(Also making a mod for 1.12.2 forge ofc)
In your keybind's procedure set a logic nbt value and have an if else statement detecting if it is true or not and switch the value. Then use that value to determine whether "Blade Mode" is activated or not.
Ok nice thanks!
Also one more question - can I make custom overlay appear when "Blade Mode" is activated? I looked at every catregory in either overlay and procedure but I didn't see anything related to Overlay.
yeah I'm having some difficulties with things sorry xd
Oh ok, I made this Toggling without any NBT tags.
Surprisingly.
If you want a condition for overlay, you have to go to the overlay element, then on the right, link a procedure that returns("return" procedure block in flow control tab) logic type data(true or false).
sure but, what about overlay that will appear only if certain particles is spawned?
or i can make it look like that with invisible hitbox?