on load: set {_stone} to "stoniarka" new Recipe {_stone}; {_stone}.Recipe.setIngredient{1, 1 stone}; {_stone}.Recipe.setIngredient{2, 1 stone}; {_stone}.Recipe.setIngredient{3, 1 stone}; {_stone}.Recipe.setIngredient{4, 1 stone}; {_stone}.Recipe.setIngredient{5, 1 stone}; {_stone}.Recipe.setIngredient{6, 1 stone}; {_stone}.Recipe.setIngredient{7, 1 stone}; {_stone}.Recipe.setIngredient{8, 1 stone}; {_stone}.Recipe.setIngredient{9, 1 stone}; {_stone}.Recipe.setResult{1 sponge named "&bStoniarka"}; {_stone}.Recipe.register{}; on place sponge block: if name of player's tool is "&bStoniarka": add location of block to {stoniarka::*} add location of block above block to {stone::*} set block above to stone on break sponge: loop {stoniarka::*}: if loop-value is location of block: remove location of block from {stoniarka::*} remove location of block above from {stone::*} cancel event set block to air drop sponge named "&bStoniarka" on break stone: loop {stone::*}: if loop-value is location of target block: if player has permission "stoniarka.svip": set block to stone stop if player has permission "stoniarka.vip": wait 0.5 second set block to stone stop else: wait 1 second set block to stone stop else: stop command /stoniarka: trigger: player has permission "stoniarka.daj" give sponge named "&bStoniarka" to player