command /ziemniak: executable by: players permission: ziemniak trigger: give 1 of paper of lure 10 named "&61 poz LPM // 2 poz PPM" with lore "&4&lSciana 1" to player give 1 of carrot of lure 10 named "&61 poz LPM // 2 poz PPM" with lore "&4&lSciana 2" to player on rightclick holding paper of lure 10: if 1st line of lore of player's tool is "&4&lSciana 1": player has permission "ziemniak": set {p.1} to location of clicked block send "&6&l%{p.1}%" on leftclick holding paper of lure 10: if 1st line of lore of player's tool is "&4&lSciana 1": player has permission "ziemniak": set {l.1} to location of clicked block cancel event send "&6&l%{l.1}%" on rightclick holding carrot of lure 10: if 1st line of lore of player's tool is "&4&lSciana 2": player has permission "ziemniak": set {p.2} to location of clicked block send "&6&l%{p.2}%" on leftclick holding carrot of lure 10: if 1st line of lore of player's tool is "&4&lSciana 2": player has permission "ziemniak": set {l.2} to location of clicked block cancel event send "&6&l%{l.2}%" command /sciana: trigger: loop blocks within {l.1} and {p.1}: set loop-block to air loop blocks within {l.2} and {p.2}: set loop-block to air send "Zrobione" wait 5 seconds loop blocks within {l.1} and {p.1}: set loop-block to barrier loop blocks within {l.2} and {p.2}: set loop-block to barrier