Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- options:
- spawn_stone_rate: 1 second
- on load:
- register new shaped recipe for cobblestone named "&7Generator stone'a" using Redstone, Stone, Redstone, Stone, Diamond, Stone, Redstone, Stone, Redstone
- stop
- on place stone:
- loop all blocks in radius 1 around event-block:
- loop-block is cobblestone
- loop {stoniarka::*}:
- location of loop-block is loop-value
- add location of event-block to {stoniarka_dolozone::*}
- stop
- on place cobblestone:
- name of player's tool is "&7Generator stone'a":
- add location of event-block to {stoniarka::*}
- loop blocks between block at location of player and event-block:
- distance between loop-block and event-block is 1
- loop-block is air
- wait {@spawn_stone_rate}
- set loop-block to stone
- stop
- stop
- on break stone:
- set {_loc} to location of event-block
- "%{stoniarka_gracz.%{_loc}%::*}%" contains "%player%":
- wait {@spawn_stone_rate}
- set event-block to stone
- stop
- loop {stoniarka_dolozone::*}:
- location of event-block is loop-value
- remove loop-value from {stoniarka_dolozone::*}
- stop
- loop all blocks in radius 2 around event-block:
- loop {stoniarka::*}:
- loop-block is cobblestone
- distance between loop-block and event-block <= 1
- clear {stoniarka_gracz.%{_loc}%::*}
- location of loop-block is loop-value
- add player to {stoniarka_gracz.%{_loc}%::*}
- set {stoniarka_gracz_%player%} to {_loc}
- wait {@spawn_stone_rate}
- set event-block to stone
- stop
- on break cobblestone:
- loop {stoniarka::*}:
- loop-value is location of event-block
- remove location of event-block from {stoniarka::*}
- loop all blocks in radius 1 around event-block:
- clear {stoniarka_gracz.%location of loop-block%::*}
- stop
- on disconnect:
- wait 2 seconds
- remove player from {stoniarka_gracz.%{stoniarka_gracz_%player%}%::*}
- clear {stoniarka_gracz_%player%}
- stop
- on piston extend:
- loop all blocks in radius 2 around event-block:
- loop-block is cobblestone
- loop {stoniarka::*}:
- location of loop-block is loop-value
- cancel event
- stop
- # by Nizax
Advertisement
Add Comment
Please, Sign In to add comment