#CobbleY #Skrypt wykonany na życzenie Dnku123 na potrzebę 3 Edycji Serwera Subów #Nie wymaga żadnych permisji # #Zezwalam na: # -Zmiane Opcji Itemów (linijka: 24-38). # -Zmianę szansy wypadnięcia itemu (linijka: 40-54) # #Nie zezwalam na: # -Modyfikowanie kodu chyba ,że pod własne potrzeby NIE KOMERCYJNE. # -Zarabianie na skrypcie. # -Przypisywanie sobie praw autorskich tego skryptu. # -Usuwanie tych informacji (od Autora) # -Publikowanie skryptu bez mojej zgody. # #Skrypt napisany przez Lizak3. options: #Item potrzebny do utworzenia cobble Y potrzebne: 64 cobblestone #Item który odpowiada CobbleY cobbley: lapis lazuli ore #Itemy które wypadają item1: bone item2: rotten flesh item3: string item4: cobblestone item5: grass item6: cobblestone item7: sand item8: leather item9: coal item10: redstone dust item11: iron ingot item12: spawn egg:90 item13: spawn egg:92 item14: Enchantment Table item15: cobblestone #Szansa na dane itemy (W PROCENTACH) item1szansa: 60 item2szansa: 60 item3szansa: 60 item4szansa: 60 item5szansa: 40 item6szansa: 40 item7szansa: 40 item8szansa: 10 item9szansa: 5 item10szansa: 5 item11szansa: 3 item12szansa: 1 item13szansa: 1 item14szansa: 0.9 item15szansa: 0.3 #Komenda na tworzenie CobbleY command /cobbley: trigger: if player has {@potrzebne}: remove {@potrzebne} from the player give player {@cobbley} named "&a&lCobbleY" send "Otrzymales/as CobbleY" log "%player%-CobbleY" to "Lizak3/cobbley/%player%.log" #Do polaczenia ze statystykami add 1 to {wykopanycobbley.%player%} player has permission "Lizak3.team.Czerwoni": add 1 to {cobbleyczerwoni} player has permission "Lizak3.team.Niebiescy": add 1 to {cobbleyniebiescy} stop trigger else: send "Nie masz 64 cobblestone" #Do użytku-Należy trzymać się schematu chyba ,że dajecie nie typowe itemy lub chcecie dać nazwę po polsku wtedy wpisujecie sami. command /drop: trigger: send "Aktualny drop z Cobble Y to:" send "{@item1szansa} procent - {@item1}" send "{@item2szansa} procent - {@item2}" send "{@item3szansa} procent - {@item3}" send "{@item4szansa} procent - {@item4}" send "{@item5szansa} procent - {@item5}" send "{@item6szansa} procent - {@item6}" send "{@item7szansa} procent - {@item7}" send "{@item8szansa} procent - {@item8}" send "{@item9szansa} procent - {@item9}" send "{@item10szansa} procent - {@item10}" send "{@item11szansa} procent - {@item11}" send "{@item12szansa} procent - Jajko spawnujace swinie" send "{@item13szansa} procent- Jajko spawnujace krowe" send "{@item14szansa} procent - {@item14}" send "{@item15szansa} procent - JACKPOT 640 {@item15}" send "Przy rozkopaniu Fortuna wypada wiecej itemow." #Event na losowanie itemu (Jak dodajesz to zaczynaj od tych z najmniejszym procentem) on break of {@cobbley}: cancel event set event-block to air damage player's tool by 1 #Szansa na itemy. chance of {@item15szansa}%: if player's tool is pickaxe of fortune 1: set event-block to chest wait 1 seconds add random number between 640 and 960 of {@item15} to inventory of event-block log "%player%-JACKPOT-Fortune1 " to "Lizak3/cobbley.log" broadcast "%player% WYLOSOWAL/A JACKPOT'a Ponad 10 stackow COBBLA :D" stop else if player's tool is pickaxe of fortune 2: set event-block to chest wait 1 seconds add random number between 960 and 1280 of {@item15} to inventory of event-block log "%player%-JACKPOT-Fortune2" to "Lizak3/cobbley.log" broadcast "%player% WYLOSOWAL/A Ponad 15 stackow COBBLA :D" stop else if player's tool is pickaxe of fortune 3: set event-block to chest wait 1 seconds add random number between 1280 and 1600 of {@item15} to inventory of event-block log "%player%-JACKPOT-Fortune3" to "Lizak3/cobbley.log" broadcast "%player% WYLOSOWAL/A Ponad 20 stackow COBBLA :D" stop else: set event-block to chest wait 1 seconds add 640 cobblestone to inventory of event-block log "%player%-JACKPOT-Fortune0" to "Lizak3/cobbley.log" broadcast "%player% WYLOSOWAL/A 10 stackow COBBLA :D" stop chance of {@item14szansa}%: drop {@item14} at event-block log "%player%-ENCHANT " to "Lizak3/cobbley.log" broadcast "%player% WYLOSOWAL/A ENCHANT TABLE :D" stop chance of {@item13szansa}%: if player's tool is pickaxe of fortune 1: drop random number between 1 and 2 of {@item13} at event-block send "Gratulacje znalazles/as Jajka spawnujace krowe" stop else if player's tool is pickaxe of fortune 2: drop random number between 2 and 3 of {@item13} at event-block send "Gratulacje znalazles/as Jajka spawnujace krowe" stop else if player's tool is pickaxe of fortune 3: drop random number between 3 and 4 of {@item13} at event-block send "Gratulacje znalazles/as Jajka spawnujace krowe" stop else: drop {@item13} at event-block send "Gratulacje znalazles/as Jajko spawnujace krowe" stop chance of {@item12szansa}%: if player's tool is pickaxe of fortune 1: drop random number between 1 and 2 of {@item12} at event-block send "Gratulacje znalazles/as Aspyra xD" stop else if player's tool is pickaxe of fortune 2: drop random number between 2 and 3 of {@item12} at event-block send "Gratulacje znalazles/as Aspyra xD" stop else if player's tool is pickaxe of fortune 3: drop random number between 3 and 4 of {@item12} at event-block send "Gratulacje znalazles/as Aspyra xD" stop else: drop {@item12} at event-block send "Gratulacje znalazles/as Aspyra xD" stop chance of {@item11szansa}%: if player's tool is pickaxe of fortune 1: drop random number between 1 and 2 of {@item11} at event-block send "Gratulacje znalazles/as {@item11}" stop else if player's tool is pickaxe of fortune 2: drop random number between 2 and 3 of {@item11} at event-block send "Gratulacje znalazles/as {@item11}" stop else if player's tool is pickaxe of fortune 3: drop random number between 3 and 4 of {@item11} at event-block send "Gratulacje znalazles/as {@item11}" stop else: drop {@item11} at event-block send "Gratulacje znalazles/as {@item11}" stop chance of {@item10szansa}%: if player's tool is pickaxe of fortune 1: drop random number between 1 and 2 of {@item10} at event-block send "Gratulacje znalazles/as {@item10}" stop else if player's tool is pickaxe of fortune 2: drop random number between 2 and 3 of {@item10} at event-block send "Gratulacje znalazles/as {@item10}" stop else if player's tool is pickaxe of fortune 3: drop random number between 3 and 4 of {@item10} at event-block send "Gratulacje znalazles/as {@item10}" stop else: drop {@item10} at event-block send "Gratulacje znalazles/as {@item10}" stop chance of {@item9szansa}%: if player's tool is pickaxe of fortune 1: drop random number between 1 and 2 of {@item9} at event-block send "Gratulacje znalazles/as {@item9}" stop else if player's tool is pickaxe of fortune 2: drop random number between 2 and 3 of {@item9} at event-block send "Gratulacje znalazles/as {@item9}" stop else if player's tool is pickaxe of fortune 3: drop random number between 3 and 4 of {@item9} at event-block send "Gratulacje znalazles/as {@item9}" stop else: drop {@item9} at event-block send "Gratulacje znalazles/as {@item9}" stop chance of {@item8szansa}%: if player's tool is pickaxe of fortune 1: drop random number between 1 and 2 of {@item8} at event-block send "Gratulacje znalazles/as {@item8}" stop else if player's tool is pickaxe of fortune 2: drop random number between 2 and 3 of {@item8} at event-block send "Gratulacje znalazles/as {@item8}" stop else if player's tool is pickaxe of fortune 3: drop random number between 3 and 4 of {@item8} at event-block send "Gratulacje znalazles/as {@item8}" stop else: drop {@item8} at event-block send "Gratulacje znalazles/as {@item8}" stop chance of {@item7szansa}%: if player's tool is pickaxe of fortune 1: drop random number between 3 and 4 of {@item7} at event-block send "Gratulacje znalazles/as {@item7}" stop else if player's tool is pickaxe of fortune 2: drop random number between 4 and 5 of {@item7} at event-block send "Gratulacje znalazles/as {@item7}" stop else if player's tool is pickaxe of fortune 3: drop random number between 5 and 6 of {@item7} at event-block send "Gratulacje znalazles/as {@item7}" stop else: drop 3 {@item7} at event-block send "Gratulacje znalazles/as {@item7}" stop chance of {@item6szansa}%: if player's tool is pickaxe of fortune 1: drop random number between 40 and 60 of {@item6} at event-block send "Gratulacje znalazles/as {@item6}" stop else if player's tool is pickaxe of fortune 2: drop random number between 60 and 80 of {@item6} at event-block send "Gratulacje znalazles/as {@item6}" stop else if player's tool is pickaxe of fortune 3: drop random number between 80 and 100 of {@item6} at event-block send "Gratulacje znalazles/as {@item6}" stop else: drop 40 {@item6} at event-block send "Gratulacje znalazles/as {@item6}" stop chance of {@item5szansa}%: if player's tool is pickaxe of fortune 1: drop random number between 5 and 7 of {@item5} at event-block send "Gratulacje znalazles/as {@item5}" stop else if player's tool is pickaxe of fortune 2: drop random number between 7 and 9 of {@item5} at event-block send "Gratulacje znalazles/as {@item5}" stop else if player's tool is pickaxe of fortune 3: drop random number between 9 and 12 of {@item5} at event-block send "Gratulacje znalazles/as {@item5}" stop else: drop 5 {@item5} at event-block send "Gratulacje znalazles/as {@item5}" stop chance of {@item4szansa}%: if player's tool is pickaxe of fortune 1: drop random number between 20 and 30 of {@item4} at event-block send "Gratulacje znalazles/as {@item4}" stop else if player's tool is pickaxe of fortune 2: drop random number between 30 and 40 of {@item4} at event-block send "Gratulacje znalazles/as {@item4}" stop else if player's tool is pickaxe of fortune 3: drop random number between 40 and 50 of {@item4} at event-block send "Gratulacje znalazles/as {@item4}" stop else: drop 20 {@item4} at event-block send "Gratulacje znalazles/as {@item4}" stop chance of {@item3szansa}%: if player's tool is pickaxe of fortune 1: drop random number between 1 and 2 of {@item3} at event-block send "Gratulacje znalazles/as {@item3}" stop else if player's tool is pickaxe of fortune 2: drop random number between 2 and 3 of {@item3} at event-block send "Gratulacje znalazles/as {@item3}" stop else if player's tool is pickaxe of fortune 3: drop random number between 3 and 4 of {@item3} at event-block send "Gratulacje znalazles/as {@item3}" stop else: drop {@item3} at event-block send "Gratulacje znalazles/as {@item3}" stop chance of {@item2szansa}%: if player's tool is pickaxe of fortune 1: drop random number between 1 and 2 of {@item2} at event-block send "Gratulacje znalazles/as {@item2}" stop else if player's tool is pickaxe of fortune 2: drop random number between 2 and 3 of {@item2} at event-block send "Gratulacje znalazles/as {@item2}" stop else if player's tool is pickaxe of fortune 3: drop random number between 3 and 4 of {@item2} at event-block send "Gratulacje znalazles/as {@item2}" stop else: drop {@item2} at event-block send "Gratulacje znalazles/as {@item2}" stop chance of {@item1szansa}%: if player's tool is pickaxe of fortune 1: drop random number between 1 and 2 of {@item1} at event-block send "Gratulacje znalazles/as Jajka spawnujace krowe" stop else if player's tool is pickaxe of fortune 2: drop random number between 2 and 3 of {@item1} at event-block send "Gratulacje znalazles/as Jajka spawnujace krowe" stop else if player's tool is pickaxe of fortune 3: drop random number between 3 and 4 of {@item1} at event-block send "Gratulacje znalazles/as Jajka spawnujace krowe" stop else: drop {@item1} at event-block send "Gratulacje znalazles/as Jajko spawnujace krowe" stop #Przypominajka o tym skrypcie :) every 1000 seconds: broadcast "Na serwerze jest napisany skrypt na CobbleY aby go zrobic wpisz /cobbley" wait 1 seconds broadcast "Do utworzenia CobbleY potrzeba {@potrzebne}"