options: NazwaNPC: NPC NazwaGUI: Boskie itemy KosaZaglady: iron hoe of infinity and sharpness 30 and unbreaking 100 and knockback 10 and fireaspect 10 named "&e&lKosa Zaglady" with lore "&2&lWlasnosc||&3&l%player%" CenaKosy: 1000 ToporTyranow: diamond axe of infinity and sharpness 20 and unbreaking 100 and knockback 5 and fireaspect 5 named "&c&lTopor Tyranow" with lore "&2&lWlasnosc||&3&l%player%" CenaTopora: 1000 SmoczaWlocznia: golden shovel of infinity and sharpness 35 and knockback 35 named "&6&lSmocza Wlocznia" with lore "&2&lWlasnosc||&3&l%player%" CenaWloczni: 1000 Excalibur: diamond sword of infinity named "&a&lExcalibur" with lore "&2&lWlasnosc||&3&l%player%" CenaExca: 1000 on rightclick on villager: if name of clicked entity is "{@NazwaNPC}": cancel event wait 2 ticks open chest with 1 rows named "{@NazwaGUI}" to player format slot 0 of player with iron hoe of infinity and sharpness 30 and unbreaking 100 and knockback 10 and fireaspect 10 named "&e&lKosa Zaglady" with lore "&7&lKoszt||&e&l{CenaKosy}$" to close then run [make player execute command "/sdadsda kosa"] format slot 2 of player with diamond axe of infinity and sharpness 20 and unbreaking 100 and knockback 5 and fireaspect 5 named "&c&lTopor Tyranow" with lore "&7&lKoszt||&e&l{CenaKosy}$" to close then run [make player execute command "/sdadsda topor"] format slot 4 of player with diamond axe of infinity and sharpness 35 and knockback 35 named "&6&lSmocza Wlocznia" with lore "&7&lKoszt||&e&l{CenaWloczni}$" to close then run [make player execute command "/sdadsda wlocznia"] format slot 4 of player with diamond sword of infinity named "&a&lExcalibur" with lore "&7&lKoszt||&e&l{CenaExca}$" to close then run [make player execute command "/sdadsda excalibur"] command /sdadsda []: trigger: if arg 1 is "kosa": if player's ballance <= {@CenaKosy}: add -{@CenaKosy} to player's account give {@KosaZaglady} to player send "&7Kupiles Kose Zaglady!" stop if arg 1 is "topor": if player's ballance <= {@CenaTopora}: add -{@CenaTopora} to player's account give {@ToporTyranow} to player send "&7Kupiles Topor Tyranow!" stop if arg 1 is "wlocznia": if player's ballance <= {@CenaWloczni}: add -{@CenaWloczni} to player's account give {@SmoczaWlocznia} to player send "&7Kupiles Smocza Wlocznie!" stop if arg 1 is "excalibur": if player's ballance <= {@CenaWloczni}: add -{@CenaWloczni} to player's account give {@Excalibur} to player send "&7Kupiles Excalibur!" stop command /stworz []: permission: stworz.villager permission message: &7Brak uprawnien! trigger: if arg 1 is "villager" or "osadnik" or "NPC": spawn 1 of villager named "{@NazwaNPC}" else: send "&7Poprawne uzycie to &c/stworz villager" on damage: if attacker is player: if name of attacker's tool is "&e&lKosa Zaglady": # ?? if name of attacker's tool is "&c&lTopor Tyranow": apply nausea 1 to the victim for 5 seconds if name of attacker's tool is "&6&lSmocza Wlocznia": apply hunger 1 to the victim for 5 seconds if name of attacker's tool is "&a&lExcalibur": apply strength 6 to the attacker for 5 seconds