mass0070

Skript On Click Check

Jun 25th, 2019 (edited)
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.81 KB | None | 0 0
  1. on click:
  2. if {coords.%player%} is true:
  3. send "%location of event-block%" to player
  4. if "%location of event-block%" is "x: -100.5, y: 100.5, z: -100.5":
  5. send "You clicked on the block!" to player
  6. set block at location at -101, 99, -100 in world "world" to air
  7. cancel event
  8. if "%location of event-block%" is "x: -100.5, y: 100.5, z: -98.5":
  9. send "You clicked on the block!" to player
  10. set block at location at -101, 100, -100 in world "world" to air
  11. cancel event
  12.  
  13. command /coords:
  14. trigger:
  15. if {coords.%player%} isn't set:
  16. set {coords.%player%} to true
  17. stop
  18. if {coords.%player%} is false:
  19. set {coords.%player%} to true
  20. send "Coords slået til" to player
  21. stop
  22. if {coords.%player%} is true:
  23. set {coords.%player%} to false
  24. send "Coords slået fra" to player
  25. stop
Add Comment
Please, Sign In to add comment