options: s_name: &6&l&k|||&r &f&lSTONIARKA &6&l||| place_stoniarka: &aPostawiles &f&lSTONIARKE break_stoniarka: &cZniszczyles &f&lSTONIARKE add_stoniarka: &eDostales &f&lSTONIARKE cooldown: 1.2 on load: set {s} to "Stoniarka" new Recipe {s}; {s}.Recipe.setIngredient{1, 1 stone}; {s}.Recipe.setIngredient{2, 1 stone}; {s}.Recipe.setIngredient{3, 1 stone}; {s}.Recipe.setIngredient{4, 1 stone}; {s}.Recipe.setIngredient{5, 1 diamond pickaxe}; {s}.Recipe.setIngredient{6, 1 stone}; {s}.Recipe.setIngredient{7, 1 stone}; {s}.Recipe.setIngredient{8, 1 stone}; {s}.Recipe.setIngredient{9, 1 stone}; {s}.Recipe.setResult{1 sponge of fortune 10 named "{@s_name}"}; {s}.Recipe.register{}; on place of sponge: if name of player's tool is "{@s_name}": if event-block's world is "world": set event-block to stone if event-block's world is "world_nether": set event-block to netherrack if event-block's world is "world_the_end": set event-block to endstone set {stoniarka.%event-block%} to true wait tick send player title "" with subtitle "{@place_stoniarka}" for 1.5 seconds on break of stone or netherrack or endstone: {stoniarka.%event-block%} is true: if player's tool is golden pickaxe: set {stoniarka.%event-block%} to false send player title "" with subtitle "{@break_stoniarka}" for 1.5 seconds if player can hold 1 sponge named "{@s_name}": add 1 sponge of fortune 10 named "{@s_name}" to player's inventory else: drop 1 sponge of fortune 10 named "{@s_name}" at event-block stop wait {@cooldown} seconds if event-block's world is "world": set event-block to stone if event-block's world is "world_nether": set event-block to netherrack if event-block's world is "world_the_end": set event-block to endstone command /stoniarka []: trigger: if player has permission "stoniarka.add": add arg-1 of sponge of fortune 10 named "{@s_name}" to player's inventory wait tick send player title "" with subtitle "{@add_stoniarka}" for 1.5 seconds else: send "&cNie masz uprawnien!" to player