Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- on script load:
- register new shapeless recipe for sponge named "&6&lGENERATOR &a&lSTONE" using 64 cobblestone, 64 cobblestone, 64 cobblestone, 64 cobblestone, emerald, 64 cobblestone, 64 cobblestone, 64 cobblestone, 64 cobblestone
- every 33 ticks:
- loop {gpl::*}:
- if block above loop-value is air:
- set block above loop-value to Spruce wood
- On place sponge:
- if name of player's tool is "&6&lGENERATOR &e&lDREWNA":
- add location of target block to {gpl::*}
- on break sponge:
- loop {gpl::*}:
- if loop-value is location of target block:
- remove location of target block from {gpl::*}
- if block up is Spruce wood:
- cancel event
- set block to air
- give sponge named "&6&lGENERATOR &e&lDREWNA" to the player
- wait 1 tick
- set block up to air
- else:
- stop
- every 33 ticks:
- loop {gpl1::*}:
- if block above loop-value is air:
- set block above loop-value to obsidian
- On place sponge:
- if name of player's tool is "&6&lGENERATOR &c&lOBSA":
- add location of target block to {gpl1::*}
- if block under is sponge:
- cancel event
- send "&aNie, nie, nie!"
- on break sponge:
- loop {gpl1::*}:
- if loop-value is location of target block:
- remove location of target block from {gpl1::*}
- if block up is obsidian:
- cancel event
- set block to air
- give sponge named "&6&lGENERATOR &c&lOBSA" to the player
- wait 1 tick
- set block up to air
- else:
- stop
- every 33 ticks:
- loop {gpl2::*}:
- if block above loop-value is air:
- set block above loop-value to stone
- On place sponge:
- if name of player's tool is "&6&lGENERATOR &a&lSTONE":
- add location of target block to {gpl2::*}
- if block under is sponge:
- cancel event
- send "&aNie, nie, nie!"
- on break sponge:
- loop {gpl2::*}:
- if loop-value is location of target block:
- remove location of target block from {gpl2::*}
- if block up is stone:
- cancel event
- set block to air
- give sponge named "&6&lGENERATOR &a&lSTONE" to the player
- wait 1 tick
- set block up to air
- else:
- stop
- command /fastcoregenerator [<text>] [<player>]:
- permission: gen.gpl7
- permission message: &aNIE?
- trigger:
- if arg 1 is "sp":
- if arg 2 is offline player:
- give sponge named "&6&lGENERATOR &e&lDREWNA" to the arg-2
- if arg 1 is "bd":
- if arg 2 is offline player:
- give sponge named "&6&lGENERATOR &c&lOBSA" to the arg-2
- if arg 1 is "sto":
- if arg 2 is offline player:
- give sponge named "&6&lGENERATOR &a&lSTONE" to the arg-2
Advertisement
Add Comment
Please, Sign In to add comment