options:
block: end stone #Block (staly) jaki ma byc uzywany za stoniarke
named: &1Stoniarka #Nazwa bloku stoniarki
1slot: stone
2slot: stone
3slot: stone
4slot: stone
5slot: piston base
6slot: stone
7slot: stone
8slot: redstone
9slot: stone
on script load:
new Recipe "Stoniarka"
"Stoniarka".recipe.registerIngredient{1, {@1slot}};
"Stoniarka".recipe.registerIngredient{2, {@2slot}};
"Stoniarka".recipe.registerIngredient{3, {@3slot}};
"Stoniarka".recipe.registerIngredient{4, {@4slot}};
"Stoniarka".recipe.registerIngredient{5, {@5slot}};
"Stoniarka".recipe.registerIngredient{6, {@6slot}};
"Stoniarka".recipe.registerIngredient{7, {@7slot}};
"Stoniarka".recipe.registerIngredient{8, {@8slot}};
"Stoniarka".recipe.registerIngredient{9, {@9slot}};
"Stoniarka".Recipe.registerResult{{@block} named "{@named}"};
"Stoniarka".Recipe.register{};
every 2 real second:
loop {hardcorestoniarka::*}:
if block above loop-value is air:
set block above loop-value to stone
On place {@block}:
name of player's tool is "{@named}"
add location of event-block to {hardcorestoniarka::*}
on break {@block}:
cancel event
set block to air
drop {@block} named "{@named}"
loop {hardcorestoniarka::*}:
if loop-value is location of target block:
remove location of target block from {hardcorestoniarka::*}
on explode :
loop blocks in radius 3 of event-location:
loop {hardcorestoniarka::*}:
loop-value is location of loop-block
remove loop-value from {hardcorestoniarka::*}