Advertisement
Guest User

Untitled

a guest
Apr 1st, 2020
131
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.96 KB | None | 0 0
  1. 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.
  2.  
  3.  
  4.  
  5. on rightclick with shears:
  6. if player's held item is shears named "{@TpItem}" with lore "{@TpLore}":
  7. set {_nswaited} to difference between {nshears.%player%.lastused} and now
  8. if {_nswaited} is less than {@NSCD}:
  9. message "&c%difference between {@NSCD} and {_nswaited}% before you can use this ability again."
  10. stop
  11. set {nshears.%player%.lastused} to now
  12. set {_target.%player%} to player's target
  13. if {_target.%player%} is not set:
  14. send "&cYou are not looking to a entity!"
  15. set {nshears.%player%.lastused} to 0
  16. stop
  17. if {_target.%player%} is set:
  18. remove 1 of player's tool from player's inventory
  19. wait 6 seconds
  20. send "{@TpItem}&7 will teleport you in &a3"
  21. wait 1 second
  22. send "{@TpItem}&7 will teleport you in &a2"
  23. wait 1 second
  24. send "{@TpItem}&7 will teleport you in &a1"
  25. wait 1 second
  26. teleport player to {_target.%player%}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement