lNockl

Untitled

Mar 30th, 2016
194
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.38 KB | None | 0 0
  1. command /addarea:
  2. trigger:
  3. loop all blocks in the region "test":
  4. add location of loop-block to {tsw.games.blocks::*}
  5. add type of loop-block to {tsw.games.type::*}
  6.  
  7. command /restorearea:
  8. trigger:
  9. loop {tsw.games.blocks::*}:
  10. set {_loc} to loop-value
  11. set block at {_loc} to {tsw.game.type::%loop-index%}
  12. delete {tsw.game.blocks::*}
  13. delete {tsw.game.type::*}
Add Comment
Please, Sign In to add comment