Started by
tryunt
on
Topic category: Help with Minecraft modding (Java Edition)
Hello, I am looking for help with my superhero mod!
I want to make a shazam set and want it to be when a player hits a keybind (example "k") it will strike them with lighting and give them certain potion effects.
Any help, examples or downloads would be fantastic.
Thank you!
The simplest way is to make a variable, and when keybind is pressed,:
If [variable] = 0 (default)
strike the player with lightning
set variable to 1
Else (if [variable] = 1)
set variable to 0
Then make a procedure on player tick:
When Variable = 1 (means when the keybind was toggled on)
Apply potion effect
Hi, Can you please send a visual of the code if you can!
Thanks!