Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- on lightning strike:
- set {_chance} to rounded random number between 1 and 10
- loop blocks in radius 20 around block at event-location:
- if {_chance} is 5:
- if loop-block is glowstone:
- add location of loop-block to {_lstrike.glowstone::*}
- set loop-block to 123
- if loop-block is 124:
- add location of loop-block to {_lstrike.rlamps::*}
- set loop-block to 123
- message "&aYour power has gone out! OBAM Power Inc. will return your power within 30 seconds to a minute"
- set {_time} to rounded random number between 30 and 60
- wait {_time} seconds
- loop {_lstrike.glowstone::*}:
- set block at loop-value to glowstone
- loop {_lstrike.rlamps::*}:
- set block at loop-value to 124
- else:
- if loop-block is glowstone:
- add location of loop-block to {_lstrike.glowstone::*}
- set loop-block to 123
- if loop-block is 124:
- add location of loop-block to {_lstrike.rlamps::*}
- set loop-block to 123
- loop {_lstrike.glowstone::*}:
- set block at loop-value to glowstone
- loop {_lstrike.rlamps::*}:
- set block at loop-value to 124
- message "&aYour power is flickering!"
Advertisement
Add Comment
Please, Sign In to add comment