servername: FORGEEVENTS
grapplename: Grappling hook
cooldowntime: 0
on fishing:
if player's held item is fishing rod named "{@grapplename}":
if difference between now and {cooldown::%player%} is less than {@cooldowntime} seconds:
cancel event
send "&4[&c{@servername}&4] &cYou are currently on cooldown!" to player
else:
if "%fish state%" is "CAUGHT" or "REEL_IN" or "IN_GROUND":
set {nofalldamage.grapplinghook.%player%} to true
repair player's held item
set {_ploc.x} to x coordinate of player
set {_floc.x} to x coordinate of fishing hook
set {_ang} to {_floc.x} - {_ploc.x}
set {_ploc.z} to z coordinate of player
set {_floc.z} to z coordinate of fishing hook
set {_ang.2} to {_floc.z} - {_ploc.z}
set velocity of player to new Vector {_ang}, 1, {_ang.2}
set {cooldown::%player%} to now
command /grapplinghook <player>:
permission: op
permission message: &fUnknown command. Type "/help" for help.
usage: &c/grapplinghook <player>
trigger:
give arg-1 fishing rod named "{@grapplename}"
send "&aYou have &lSUCCESFULLY &aGiven %Arg-1% &aa grappling hook" to player ```
#Grappling hook
1 messages · Page 1 of 1 (latest)
can show us the error