How do I make it so you can use this item when its in your off hand?
on right click:
player is holding white dye
if name of player's held item is "&f&lWind Fan":
set {_waited} to difference between {windfan.%player%.lastused} and now
if {_waited} is less than 3 seconds:
message "&f&lYou have to wait %difference between 3 seconds and {_waited}% before you can use this ability again!"
stop
set {windfan.%player%.lastused} to now
push the player upwards
push the player forwards
play sound "minecraft:entity.bat.takeoff" at volume 1 to the player
Posted by: yansom from the skUnity Discord. View the thread on skUnity Discord here
on right click:
player is holding white dye
if name of player's held item is "&f&lWind Fan":
set {_waited} to difference between {windfan.%player%.lastused} and now
if {_waited} is less than 3 seconds:
message "&f&lYou have to wait %difference between 3 seconds and {_waited}% before you can use this ability again!"
stop
set {windfan.%player%.lastused} to now
push the player upwards
push the player forwards
play sound "minecraft:entity.bat.takeoff" at volume 1 to the player
Posted by: yansom from the skUnity Discord. View the thread on skUnity Discord here