Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Hello, I need help with this code, I need that when there is a block in front of the player you do not teleport, I am very new to this, sorry.
- on rightclick with shears:
- if player's held item is shears named "{@TpItem}" with lore "{@TpLore}":
- set {_nswaited} to difference between {nshears.%player%.lastused} and now
- if {_nswaited} is less than {@NSCD}:
- message "&c%difference between {@NSCD} and {_nswaited}% before you can use this ability again."
- stop
- set {nshears.%player%.lastused} to now
- set {_target.%player%} to player's target
- if {_target.%player%} is not set:
- send "&cYou are not looking to a entity!"
- set {nshears.%player%.lastused} to 0
- stop
- if {_target.%player%} is set:
- remove 1 of player's tool from player's inventory
- wait 6 seconds
- send "{@TpItem}&7 will teleport you in &a3"
- wait 1 second
- send "{@TpItem}&7 will teleport you in &a2"
- wait 1 second
- send "{@TpItem}&7 will teleport you in &a1"
- wait 1 second
- teleport player to {_target.%player%}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement