Guest User

Untitled

a guest
Dec 28th, 2019
296
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.48 KB | None | 0 0
  1. on load:
  2. set {door} to block at location at 50, 50, 50 in world "world"
  3. on explode:
  4. loop exploded blocks:
  5. if block is {door}:
  6. if {%loop-value%.n} is not set:
  7. set {%loop-value%.n} to 5
  8. set {_e::%location of loop-value%} to true
  9. set {_e::%location of loop-value%::*} to location of loop-value
  10. wait 0.1 second
  11. loop {_e::*}:
  12. if {%loop-value%.n} is not equal to 0:
  13. set {%loop-value%.n} to {%loop-value%.n} - 1
  14. set block at {_e::%loop-index%::1} to iron door
Advertisement
Add Comment
Please, Sign In to add comment