command /farmer []: trigger: player has permission "admin": if arg is "boy": give player obsidian named "&4BoyFarmer" if arg is "sand": give player sand named "&4SandFarmer" if arg is "kopacz": give player glass named "&4KopaczFosy" if arg is "all": give player obsidian named "&4BoyFarmer" give player sand named "&4SandFarmer" give player glass named "&4KopaczFosy" else: send "&7Wpisz &6/farmer " on place obsidian or glass or sand: set {_loc} to location of event-block player's tool is glass named "&4KopaczFosy": loop 254 times: if block under {_loc} is not bedrock: remove 1 from y poss of {_loc} set block at {_loc} to air wait 1 second remove glass else: exit loop stop if player's tool is obsidian named "&4BoyFarmer": set {_blok} to obsidian if player's tool is sand named "&4SandFarmer": set {_blok} to sand loop 254 times: if block under {_loc} is air: if block under {_loc} is not bedrock: remove 1 from y poss of {_loc} set block at {_loc} to {_blok} else: exit loop stop