NARUMC

Untitled

Oct 14th, 2017
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.85 KB | None | 0 0
  1. on place:
  2. set {_location} to x-coordinate of event-block
  3. set {_location} to "%{_location}%%y-coordinate of event-block%"
  4. set {_location} to "%{_location}%%z-coordinate of event-block%"
  5. add "%{_location}%" to {broken-block::*}
  6. give a %{_location}%
  7.  
  8. on break:
  9. set {_location} to x-coordinate of event-block
  10. set {_location} to "%{_location}%%y-coordinate of event-block%"
  11. set {_location} to "%{_location}%%z-coordinate of event-block%"
  12. loop {broken-block::*}:
  13. if "%{_location}%" is "%loop-value%":
  14. remove loop-value from {broken-block::*}
  15. set {_location} to "ok"
  16. stop loop
  17. if player has permission "destroy.block.sk":
  18. stop
  19. if {_location} is not "ok":
  20. cancel event
  21. send "&cThis block can not be destroyed." to player
  22.  
  23. command /reset-block:
  24. trigger:
  25. clear {broken-block::*}
  26. send "確認>>> %{broken-block::*}%" to player
Advertisement
Add Comment
Please, Sign In to add comment