command /target []: permission: target trigger: if arg 1 is set: add "%arg%" to yaml list "Nazwy" from file "Bloki.yml" set yaml value "Block.%arg%.Blok" from file "Bloki.yml" to "%target block%" set yaml value "Block.%arg%.Data" from file "Bloki.yml" to "%now%" set yaml value "Block.%arg%.Player" from file "Bloki.yml" to "%name of player%" set yaml value "Block.%arg%.Loc.x" from file "Bloki.yml" to "%x-coordinate of target block%" set yaml value "Block.%arg%.Loc.y" from file "Bloki.yml" to "%y-coordinate of target block%" set yaml value "Block.%arg%.Loc.z" from file "Bloki.yml" to "%z-coordinate of target block%" send "&7Dodano" else: send "&7Podaj nazwe!" command /usuntarget []: permission: target.usun trigger: if arg 1 is set: remove "%arg%" from yaml list "Nazwy" from file "Bloki.yml" clear yaml value "Block.%arg%.Loc.x" from file "Bloki.yml" clear yaml value "Block.%arg%.Loc.y" from file "Bloki.yml" clear yaml value "Block.%arg%.Loc.z" from file "Bloki.yml" clear yaml value "Block.%arg%.Data" from file "Bloki.yml" clear yaml value "Block.%arg%.Player" from file "Bloki.yml" clear yaml value "Block.%arg%" from file "Bloki.yml" send "&7Usunieto" command /bloki: permission: target.bloki trigger: set {_lista::*} to yaml list "Nazwy" from file "Bloki.yml" open chest with 6 rows named "&6Bloki" to player set {_s} to 0 loop {_lista::*}: if {_s} < 6*9: set {_x} to yaml value "Block.%loop-value%.Loc.x" from file "Bloki.yml" set {_y} to yaml value "Block.%loop-value%.Loc.y" from file "Bloki.yml" set {_z} to yaml value "Block.%loop-value%.Loc.z" from file "Bloki.yml" set {_n} to yaml value "Block.%loop-value%.Data" from file "Bloki.yml" set {_p} to yaml value "Block.%loop-value%.Player" from file "Bloki.yml" set {_b} to yaml value "Block.%loop-value%.Blok" from file "Bloki.yml" set player's current inventory's slot {_s} to ("%{_b}%" parsed as item) named "&f%loop-index%.&6 %loop-value%" with lore "&cLoc - x: &6%{_x}% &c - y: &6%{_y}%&c - z: &6%{_z}%" and "&cData: &6%{_n}%" and "&cPlayer: &6%{_p}%" add 1 to {_s} else: stop on inventory click: inventory name of current inventory of player is "&6Bloki": cancel event on rightclick: if location of target block is {Cichy}: send "t"