on script load:
register new shaped recipe for nameditemstack from "sponge;&1Generator stone;Postaw na ziemi, aby uruchomic" using air, cobblestone, air, cobblestone, cobblestone, cobblestone, air, cobblestone, air
On place sponge:
add location of target block to {stone::*}
every 1 second:
loop {stone::*}:
if block above loop-value is air:
set block above loop-value to stone
on break sponge:
loop {stone::*}:
if loop-value is location of target block:
remove location of target block from {stone::*}