Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- options:
- wait: 1
- command /rotationsign:
- trigger:
- if target block is a sign:
- if {rotationsign::%location of target block%} is set:
- send "&8> &6Usunieto obrotowa tabliczke."
- remove {rotationsign::%location of target block%} from {rotationsign::list::*}
- delete {rotationsign::%location of target block%}
- stop
- set {rotationsign::%location of target block%} to location of target block
- add {rotationsign::%location of target block%} to {rotationsign::list::*}
- send "&8> &6Dodano obrotowa tabliczke."
- stop
- send "&8> &6Musisz sie patrzyc na tabliczke!"
- every {@wait} tick:
- loop {rotationsign::list::*}:
- loop 4 times:
- set {_line%loop-number%} to "%coloured line %loop-number% of block at loop-value%"
- set {_data} to data value of block at loop-value
- if {_data} > 14:
- set data value of block at loop-value to 0
- else:
- set data value of block at loop-value to {_data} + 1
- loop 4 times:
- set line loop-number of block at loop-value to "%{_line%loop-number%}%"
- on break of sign:
- if {rotationsign::%location of target block%} is set:
- remove {rotationsign::%location of target block%} from {rotationsign::list::*}
- delete {rotationsign::%location of target block%}
- send "&8> &6Zniszczono obrotowa tabliczke."
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement