#===========================# # Koparki # #===========================# # Pomysł: korniszonekk123 # Wykonanie: Zaaxel # Testy: korniszonekk123, Zaaxel options: tag: &8&lKOPARKI &7&l» on place of smithing table: if name of player's tool is "&8&lKOPARKA": if {Koparki::PlacedBy::%player%::*} is not set: if block above event-block is not air: send "{@tag} &4Nad blokiem nie moze byc przeszkody!" cancel event else: set block above event-block to hopper add location of event-block to {Koparki::PlacedBy::%player%::*} add location of event-block to {Koparki::All::*} send "{@tag} &aPomyslnie postawiono koparke!" on mine of hopper: set {_loc} to location of event-block set {_} to location of block 1 down {_loc} if {Koparki::All::*} is set: loop {Koparki::All::*}: if {_} is loop-value: cancel event send "{@tag} &4Ten blok nalezy do koparki!" on break of hopper: set {_loc} to location of event-block set {_} to location of block 1 down {_loc} if {Koparki::All::*} is set: loop {Koparki::All::*}: if {_} is loop-value: cancel event send "{@tag} &4Ten blok nalezy do koparki!" on mine of smithing table: set {_loc} to location of event-block set {_} to location of block 1 up {_loc} if block at {_} is hopper: if {Koparki::PlacedBy::%player%::*} is set: loop {Koparki::PlacedBy::%player%::*}: if location of event-block is loop-value: if player's tool is golden axe: remove location of event-block from {Koparki::PlacedBy::%player%::*} remove location of event-block from {Koparki::All::*} cancel event set event-block to air set block above event-block to air give player 1 smithing table named "&8&lKOPARKA" send "{@tag} &aPomyslnie usunieto koparke!" else: send "{@tag} &4Koparke mozna usunac zlota siekierka!" else: send "{@tag} &4Nie jestes wlascicielem koparki!" cancel event else: send "{@tag} &4Nie jestes wlascicielem koparki!" cancel event on break of smithing table: if {Koparki::All::*} is set: loop {Koparki::All::*}: if location of event-block is loop-value: cancel event command /koparkadebug: trigger: send "&6%{Koparki::All::*}%" send "&e%{Koparki::PlacedBy::%player%::*}%" command /koparka: trigger: give player 1 smithing table named "&8&lKOPARKA"