# _______ __ # #| ___|.---.-.----.--------. _| |_ # #| ___|| _ | _| | |_ _|# #|___| |___._|__| |__|__|__| |__| # #==================[ Farm+ ]==================# # Autor: Shanooy vel Przypalony Omlet # # Wersja: 0.9 # #=================================================================# # Zabrania się: # # - Usuwania informacji o skrypcie # # - Kopiowania całej zawartości skryptu i podawania się za autora # # - Publikowania skryptu w innych miejscach # #=================================================================# every 2 seconds: loop blocks at {lista::*}: if loop-block is dirt or grass or dry farmland: if block above loop-block is air or wheat or carrot plant or potato plant or pumpkin stem or melon stem: loop blocks in radius 2 of loop-block: loop-block-2 is water set loop-block-1 to wet farmland else: remove location of loop-block from {lista::*} else: remove location of loop-block from {lista::*} loop all players: loop blocks in radius 10 of loop-player: if loop-block is mossy cobblestone: loop blocks in radius 1 of loop-block: loop-block-2 is cobblestone chance of 2%: set loop-block-2 to mossy cobblestone every 30 seconds: loop blocks at {jablka::*}: if loop-block is oak leaves: if block below loop-block is air: chance of 1%: set block below loop-block to flower pot else: remove location of loop-block from {jablka::*} else: remove location of loop-block from {jablka::*} loop blocks at {jagody::*}: if loop-block is oak leaves or jungle leaves: loop-block-1 is oak leaves chance of 1%: set loop-block-1 to jungle leaves set {jungle.%location of loop-block-1%} to true else: remove location of loop-block from {jagody::*} clear {bool.%location of loop-block%} on mine: if event-block is wheat or carrot plant or potato plant: chance of 5%: if event-block is wheat: set event-block to crops else if event-block is carrot plant: set event-block to carrot plant else if event-block is potato plant: set event-block to potato plant else if event-block is flower pot: block below event-block is air cancel event set event-block to air player's gamemode isn't creative drop an apple else if event-block is oak leaves or jungle leaves: {bool.%location of event-block%} is true cancel event set event-block to air player's gamemode isn't creative chance of 50%: drop melon seeds named "Nasiona Jagod" on rightclick: if player is holding a hoe: clicked block is dirt or grass chance of 2%: drop melon seeds named "Nasiona Jagod", stick, bone, seeds, carrot, potato, melon seeds, pumpkin seeds or gold nugget loop blocks in radius 2 around clicked block: loop-block is water add location of clicked block to {lista::*} else if player is holding a cactus green: name of player's held item is "Esencja Zieleni" if clicked block is wheat, carrot plant, potato plant, pumpkin stem or melon stem: data value of clicked block is smaller than 7 play smoke at clicked block set data value of clicked block to 7 player's gamemode isn't creative remove 1 cactus green named "Esencja Zieleni" from player's inventory else if clicked block is cobblestone: play smoke at clicked block set clicked block to mossy cobblestone player's gamemode isn't creative remove 1 cactus green named "Esencja Zieleni" from player's inventory else if clicked block is oak sapling: play smoke at clicked block set clicked block to oak wood set {_loc} to location of clicked block loop 5 times: block above {_loc} is air set block above {_loc} to oak wood set {_loc} to location of block above {_loc} loop blocks in radius 3 of {_loc}: loop-block is air set loop-block to oak leaves add location of loop-block to {jablka::*} player's gamemode isn't creative remove 1 cactus green named "Esencja Zieleni" from player's inventory else if clicked block is oak wood: {bool.%location of clicked block%} is true block above clicked block is air play smoke at clicked block loop blocks in radius 2 around clicked block: loop-block is air, any tall grass or flowers set loop-block to oak leaves add location of loop-block to {jagody::*} set {bool.%location of loop-block%} to true player's gamemode isn't creative remove 1 cactus green named "Esencja Zieleni" from player's inventory else if player is holding melon seeds named "Nasiona Jagod": cancel event wait 1 seconds clicked block is dirt or grass block above clicked block is air set block above clicked block to oak wood add location of block above clicked block to {jagody::*} set {bool.%location of block above clicked block%} to true player's gamemode isn't creative remove 1 melon seeds named "Nasiona Jagod" from player's inventory else if player is holding shears: clicked block is mossy cobblestone set clicked block to cobblestone add 1 cactus green named "Esencja Zieleni" to player's inventory player's gamemode isn't creative damage the player's tool by 1 else if player is holding purple dye: name of player's held item is "Jagody" cancel event player's gamemode isn't creative player's food level is smaller than 10 remove 1 purple dye named "Jagody" from player's inventory set {_gracz} to name of player apply slowness to player for 1 second apply saturation to player for 0.1 seconds loop 5 times: execute console command "/playsound random.eat %{_gracz}% %x-coordinate of {_gracz}% %y-coordinate of {_gracz}% %z-coordinate of {_gracz}% 1.1 1.0 0.9" wait 0.1 seconds execute console command "/playsound random.burp %{_gracz}% %x-coordinate of {_gracz}% %y-coordinate of {_gracz}% %z-coordinate of {_gracz}% 1.1 1.0 0.9" if clicked block is jungle leaves: {jungle.%location of clicked block%} is true set block at clicked block to oak leaves give purple dye named "Jagody" to player give melon seeds named "Nasiona Jagod" to player clear {jungle.%location of clicked block%}