lNockl

Untitled

Apr 2nd, 2016
165
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. command /addarea:
  2.     trigger:
  3.         loop all blocks in the region teste: #change name of region
  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::*}
Advertisement
Add Comment
Please, Sign In to add comment