Advertisement
xNawi

Rotation Sign by Nawo

Apr 26th, 2015
511
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.26 KB | None | 0 0
  1. options:
  2. wait: 1
  3. command /rotationsign:
  4. trigger:
  5. if target block is a sign:
  6. if {rotationsign::%location of target block%} is set:
  7. send "&8> &6Usunieto obrotowa tabliczke."
  8. remove {rotationsign::%location of target block%} from {rotationsign::list::*}
  9. delete {rotationsign::%location of target block%}
  10. stop
  11. set {rotationsign::%location of target block%} to location of target block
  12. add {rotationsign::%location of target block%} to {rotationsign::list::*}
  13. send "&8> &6Dodano obrotowa tabliczke."
  14. stop
  15. send "&8> &6Musisz sie patrzyc na tabliczke!"
  16. every {@wait} tick:
  17. loop {rotationsign::list::*}:
  18. loop 4 times:
  19. set {_line%loop-number%} to "%coloured line %loop-number% of block at loop-value%"
  20. set {_data} to data value of block at loop-value
  21. if {_data} > 14:
  22. set data value of block at loop-value to 0
  23. else:
  24. set data value of block at loop-value to {_data} + 1
  25. loop 4 times:
  26. set line loop-number of block at loop-value to "%{_line%loop-number%}%"
  27. on break of sign:
  28. if {rotationsign::%location of target block%} is set:
  29. remove {rotationsign::%location of target block%} from {rotationsign::list::*}
  30. delete {rotationsign::%location of target block%}
  31. send "&8> &6Zniszczono obrotowa tabliczke."
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement