Discord Thread Offhand

  • Welcome to skUnity!

    Welcome to skUnity! This is a forum where members of the Skript community can communicate and interact. Skript Resource Creators can post their Resources for all to see and use.

    If you haven't done so already, feel free to join our official Discord server to expand your level of interaction with the comminuty!

    Now, what are you waiting for? Join the community now!

This thread came from the skUnity Discord. You can't reply to it here but if you join the skUnity Discord, you'll be able to post a reply there. The thread link is part of the thread's message.
Status
Not open for further replies.

skUnity Discord

Site Manager
Aug 5, 2023
12,755
1
0
The skUnity Discord
discord.gg
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
 
Status
Not open for further replies.