options: TAG: [&b&lHulsky&9&lMC&f] #Nazwa twojego serwera CzasWzrostu: 10 #Ile czasu ma rosnąć krzaczek marihuany Trawa: 1 #Procent szans jest na wypadnięcie ziarna z trawy ZiarnoMAN: 75 #Procent szans na wypadnięcie 1 nasionka męskiego z męskiej rośliny ZiarnoMEN: 25 #Procent szans na wypadnięcie dodatkowego nasionka męskiego z męskiej rośliny ZiarnoWOMAN: 25 #Procent szans na wypadnięcie damskiego nasionka z męskiej rośliny Top: 100 #Procent szans na wypadnięcie 1 topa z damskiej rośliny Topy: 25 #Procent szans na wypadnięcie dodatkowego topa z damskiej rośliny TopyBest: 10 #Procent szans na wypadnięcie 3 dodatkowych topów z damskiej rośliny Hajs: 100 #Ilość pieniędzy za jednego jointa przy sprzedaży on breaking short grass or tall grass: chance of {@Trawa}%: drop beetroot seed named "&7&lMęskie ziarno konopii" on right click on flower pot: if item amount of player's tool is 1: if player is holding beetroot seed named "&7&lMęskie ziarno konopii": set event-block to potted fern set {konopia::%event-block's location%::man} to 1 remove beetroot seed named "&7&lMęskie ziarno konopii" from player's inventory loop {@CzasWzrostu} times: add 1 to {konopia::%event-block's location%::czas} wait 1 second else if player is holding beetroot seed named "&7&lDamskie ziarno konopii": set event-block to potted fern set {konopia::%event-block's location%::woman} to 1 remove beetroot seed named "&7&lDamskie ziarno konopii" from player's inventory loop {@CzasWzrostu} times: if {konopia::%event-block's location%::czas} is not -1: add 1 to {konopia::%event-block's location%::czas} wait 1 second else: clear {konopia::%event-block's location%::czas} wait 1 second else: cancel event send "{@TAG} Możesz użyć maksymalnie 1 przedmiot na raz" on placing flower pot: if {konopia::%event-block's location%::czas} is set: send "{@TAG} &cTu nie możesz postawić doniczki jeszcze przez %(-1 * {konopia::%event-block's location%::czas})% sekund(y)!" cancel event on breaking potted fern: if {konopia::%event-block's location%::man} is set: cancel event drop flower pot drop beetroot seed named "&7&lMęskie ziarno konopii" set event-block to air clear {konopia::%event-block's location%::man} set {konopia::%event-block's location%::czas} to (0 - {@CzasWzrostu} + {konopia::%event-block's location%::czas}) else if {konopia::%event-block's location%::woman} is set: cancel event drop flower pot drop beetroot seed named "&7&lDamskie ziarno konopii" set event-block to air clear {konopia::%event-block's location%::woman} set {konopia::%event-block's location%::czas} to (0 - {@CzasWzrostu} + {konopia::%event-block's location%::czas}) on right click on potted fern: if player is holding beetroot seed named "&7&lMęskie ziarno konopii" or "&7&lDamskie ziarno konopii": cancel event send "{@TAG} Tu już jest posadzona konopia" else if player is holding shears: if {konopia::%event-block's location%::man} is set: if {konopia::%event-block's location%::czas} is {@CzasWzrostu}: cancel event set event-block to flower pot clear {konopia::%event-block's location%::man} play sound "entity.sheep.shear" with volume 1 and pitch 1 at location of player for player set {konopia::%event-block's location%::czas} to 0 chance of {@ZiarnoMAN}%: drop beetroot seed named "&7&lMęskie ziarno konopii" chance of {@ZiarnoMEN}%: drop beetroot seed named "&7&lMęskie ziarno konopii" chance of {@ZiarnoWOMAN}%: drop beetroot seed named "&7&lDamskie ziarno konopii" else: cancel event send "{@TAG} Do zbioru zostało %({@CzasWzrostu} - {konopia::%event-block's location%::czas})% sekund." else if {konopia::%event-block's location%::woman} is set: if {konopia::%event-block's location%::czas} is {@CzasWzrostu}: cancel event set event-block to flower pot clear {konopia::%event-block's location%::woman} play sound "entity.sheep.shear" with volume 1 and pitch 1 at location of player for player set {konopia::%event-block's location%::czas} to 0 chance of {@Top}%: drop bee spawn egg named "&a&lTop Marihuany" chance of {@Topy}%: drop bee spawn egg named "&a&lTop Marihuany" chance of {@TopyBest}%: drop 3 bee spawn egg named "&a&lTop Marihuany" else: cancel event send "{@TAG} Do zbioru zostało %({@CzasWzrostu} - {konopia::%event-block's location%::czas})%" else: cancel event on right click with axolotl spawn egg or bee spawn egg or bat spawn egg: if item amount of player's tool is 1: if player's tool is axolotl spawn egg named "&cBlant": if {palenie::%player%} is set: send "{@TAG} &cMusisz odczekać %(10 - {palenie::%player%})% sekund zanim ponownie zapalisz." cancel event else: cancel event remove 1 of event-item from player's inventory play sound "weed.joint" with volume 1 and pitch 1 at location of player for player loop 9 times: add 1 to {palenie::%player%} wait 1 second clear {palenie::%player%} else if player's tool is bee spawn egg named "&a&lTop Marihuany": cancel event else if player's tool is bat spawn egg named "&eBletka": cancel event else: cancel event send "{@TAG} Możesz użyć maksymalnie 1 przedmiot na raz" on right click on zombie: if name of clicked zombie is not "&a&lZielarz": stop else: set {_gui} to chest inventory with 6 rows named "&a&lZielarz" set slot (integers between 0 and 54) of {_gui} to gray stained glass pane set slot 9 of {_gui} to cat spawn egg named "&cBlant" set slot 2 and 12 and 20 and 5 and 15 and 23 of {_gui} to green stained glass pane set slot 17 of {_gui} to paper named "&a{@Hajs}$" set slot 38 of {_gui} to air set slot 40 of {_gui} to lime stained glass pane named "&aSprzedaj blanty" set slot 49 of {_gui} to red stained glass pane named "&c&lAnuluj handel" with lore "&cPamiętaj aby zabrać przedmioty z okienka handlu" open {_gui} to player on inventory click: if name of event-inventory is not "&a&lZielarz": stop else: if event-slot is gray stained glass pane: cancel event else if event-slot is green stained glass pane: cancel event else if event-slot is paper: cancel event else if event-slot is cat spawn egg: cancel event else if clicked slot is 40: set {_blanty} to "%slot 38 of player's current inventory%" set {_ileblant} to first 2 characters of {_blanty} parsed as integer if {_ileblant} is integer: set {_czytoblanty} to "%{_ileblant}% axolotl eggs named &cBlant" if {_blanty} = {_czytoblanty}: add ({@Hajs} * {_ileblant}) to player's balance send "{@TAG} Sprzedałeś %{_ileblant}% blanty(ów) i otrzymałeś %({@Hajs} * {_ileblant})%$" set {_ileblant} to 0 set {_blanty} to 0 set {_czytoblanty} to 0 close player's inventory remove lime stained glass pane named "&aSprzedaj blanty" from player's inventory play sound "weed.zielarz" with volume 1 and pitch 1 at location of target for player else: cancel event else: set {_ileblant} to first 1 character of {_blanty} parsed as integer if {_ileblant} is integer: set {_czytoblanty} to "%{_ileblant}% axolotl eggs named &cBlant" if {_blanty} = {_czytoblanty}: add ({@Hajs} * {_ileblant}) to player's balance send "{@TAG} Sprzedałeś %{_ileblant}% blanty(ów) i otrzymałeś %({@Hajs} * {_ileblant})%$" set {_ileblant} to 0 set {_blanty} to 0 set {_czytoblanty} to 0 close player's inventory remove lime stained glass pane named "&aSprzedaj blanty" from player's inventory play sound "weed.zielarz" with volume 1 and pitch 1 at location of target for player else: cancel event else: set {_czytoblanty} to "axolotl egg named &cBlant" if {_blanty} = {_czytoblanty}: add {@Hajs} to player's balance send "{@TAG} Sprzedałeś 1 blant i otrzymałeś {@Hajs}$" set {_ileblant} to 0 set {_blanty} to 0 set {_czytoblanty} to 0 close player's inventory remove lime stained glass pane named "{@TAG} &aSprzedaj blanty" from player's inventory play sound "weed.zielarz" with volume 1 and pitch 1 at location of target for player else: cancel event else if clicked slot is 49: wait 3 tick close player's inventory play sound "weed.anuluj" with volume 1 and pitch 1 at location of target for player send "&f[&a&lZielarz&f] Dlaczego nic mi nie sprzedałeś?!" remove red stained glass pane named "&c&lAnuluj handel" with lore "&cPamiętaj aby zabrać przedmioty z okienka handlu" from player's inventory on death of creature: if event-entity's display name is "&a&lZielarz": cancel event on script load: set {_bletka} to bat spawn eggs named "&eBletka" set {_joint} to axolotl spawn egg named "&cBlant" set {_top} to bee spawn egg named "&a&lTop Marihuany" register new shaped recipe for {_joint} using air, {_bletka}, air, {_bletka}, {_top}, {_bletka}, air, {_bletka}, air with id "blant" in group "weed" register new shaped recipe for 18 of {_bletka} using paper, paper, paper, paper, paper, paper, paper, paper, paper with id "bletka" in group "weed" #Komendy command /handlarz: trigger: if player has permission "*": spawn a zombie at location of player set display name of last spawned entity to "&a&lZielarz" set {_zielarz} to uuid of last spawned entity execute player command "data merge entity %{_zielarz}% {NoAI:1,Silent:1,Invulnerable:1,ArmorItems:[{Count:1,id:air},{Count:1,id:air},{Count:1,id:air},{Count:1,id:oak_button}]}" else: send "{@TAG} &cNie masz uprawnień aby to zrobić" command /usunhandlarza: trigger: if player has permission "*": loop all mobs: if display name of loop-entity is "&a&lZielarz": kill loop-entity else: send "{@TAG} &cNie masz uprawnień aby to zrobić"