nfell2009

Stuff

May 18th, 2014
276
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
YAML 1.12 KB | None | 0 0
  1. on lightning strike:
  2.     set {_chance} to rounded random number between 1 and 10
  3.     loop blocks in radius 20 around block at event-location:
  4.         if {_chance} is 5:
  5.             if loop-block is glowstone:
  6.                 add location of loop-block to {_lstrike.glowstone::*}
  7.                 set loop-block to 123
  8.             if loop-block is 124:
  9.                 add location of loop-block to {_lstrike.rlamps::*}
  10.                 set loop-block to 123
  11.             message "&aYour power has gone out! OBAM Power Inc. will return your power within 30 seconds to a minute"
  12.             set {_time} to rounded random number between 30 and 60
  13.             wait {_time} seconds
  14.             loop {_lstrike.glowstone::*}:
  15.                 set block at loop-value to glowstone
  16.             loop {_lstrike.rlamps::*}:
  17.                 set block at loop-value to 124
  18.         else:
  19.             if loop-block is glowstone:
  20.                 add location of loop-block to {_lstrike.glowstone::*}
  21.                 set loop-block to 123
  22.             if loop-block is 124:
  23.                 add location of loop-block to {_lstrike.rlamps::*}
  24.                 set loop-block to 123
  25.             loop {_lstrike.glowstone::*}:
  26.                 set block at loop-value to glowstone
  27.             loop {_lstrike.rlamps::*}:
  28.                 set block at loop-value to 124
  29.             message "&aYour power is flickering!"
Advertisement
Add Comment
Please, Sign In to add comment