Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #================================#
- # Script by Dzikoysk #
- # Name: SafeOre #
- # Version: 1.4 Release #
- # Skript: Beta 10 #
- #================================#
- #================================#
- # Licencja | SafeOre #
- # by Dzikoysk #
- #--------------------------------#
- # ~ Nie zezwalam na: #
- # - Zarabianie na skrypcie #
- # - Przerabianie/modyfikowanie #
- # zmienianie tresci dla grona #
- # publicznego #
- # - Wykorzystywanie kodu skryptu #
- # w swoich skryptach #
- # - Udostepnianiu skryptu innym* #
- # - Usuwanie tresci #
- # zawierajacych autora #
- # - Podszywaniu sie pod autora #
- # * - Tylko za zgoda autora #
- #--------------------------------#
- # Mylnie odczytana licencja nie #
- # zwalnia z przestrzegania jej #
- #================================#
- #---------------------------------------------------------------#
- # #
- # #
- # #
- # Config #
- # #
- # #
- # #
- #---------------------------------------------------------------#
- #------#
- # Info #
- #------#
- # Skrypt z obecnymi ustawieniami dziala w pelni poprawnie. Dlatego umiejetnie posluguj sie konfiguracja, a wszystko bedzie dobrze.
- # Krótkie wyjasnienie/wstep: W wielu wiadmosciach widoczne sa rzeczy typu: {@tekst}. Sa to zmienne.
- # Pozwalaja one wlasnie na latwa konfiguracje róznych wartosci, oraz na wyswietlanie ustawionych tekstów.
- # Dlatego zmieniajac tekst zrozum do czego sluza, bedzie Ci prosciej dopasowac np. tekst do swoich potrzeb.
- # Skrypt jest w pelni do konfiguracji i prawie wszystko da sie zmienic za pomoa ustawien!
- # Powodzenia! ;)
- #---------#
- # General #
- #---------#
- # Options - Config / Ustawienia skryptu
- options:
- # Tag skryptu
- tag: &b[SafeOre]
- # Ruda diamentu
- diamondore: diamond ore
- # Ruda emeraldu
- emeraldore: emerald ore
- # Ruda zelaza
- ironore: iron ore
- # Ruda zlota
- goldore: gold ore
- # Ruda redstona
- redstoneore: redstone ore
- # Ruda Lapisu
- lapisore: lapis lazuli ore
- # Na co ma sie zminic ruda, która ktos próbuje wykopac, domyslnie stone. Aby ruda znikala wpisz: air
- set: stone
- # Przedmity wpadajace z poszczegolnych rud:
- # Diament
- item1: diamond
- # Emerald
- item2: emerald
- # Zelazo
- item3: iron ingot
- # Zloto
- item4: gold ingot
- # Redstone:
- item5: 5 redstone
- # Lapis:
- item6: 6 lapis lazuli
- # =====================================
- # Procentowe szanse dla zwyklych graczy
- # =====================================
- #Procenty - Nie mozna pisac wartosci typu o.4, 1.5.
- #Aby takowe uzyskac wpisz 4 dla o.4, 15 dla 1.5 itd.
- # ---------------------
- # Procentowa szana
- # Wyswietlany procent
- #----------------------
- # Diament:
- szansa: 8
- procent: 0.8
- # Emerald:
- szansa1: 12
- procent1: 1.2
- # Zelazo:
- szansa2: 10
- procent2: 10
- # Zloto
- szansa3: 14
- procent3: 1.4
- # Redstone
- szansa4: 20
- procent4: 2
- # Lapis
- szansa5: 9
- procent5: 0.9
- # ==========================================================
- # Procentowe szanse dla grupy VIP. (Odpowiednie permissions)
- # ==========================================================
- # ---------------------
- # Procentowa szana
- # Wyswietlany procent
- #----------------------
- # Diament:
- vipszansa: 12
- vipprocent: 1.2
- # Emerald:
- vipszansa1: 15
- vipprocent1: 1.5
- # Zelazo:
- vipszansa2: 30
- vipprocent2: 3
- # Zloto:
- vipszansa3: 25
- vipprocent3: 2.5
- # Redstone:
- vipszansa4: 30
- vipprocent4: 3
- # Lapis:
- vipszansa5: 15
- vipprocent5: 1.5
- # Wysokosci wydobycia:
- # Diament
- yDiamond: 20
- # Emerald
- yEmerald: 20
- # Zelazo
- yIron: 250
- # Zloto
- yGold: 40
- # Redstone
- yRedstone: 50
- #Lapis
- yLapis: 50
- #------------------------------------------#
- # Bezsensowna, ale możlwia konfiguracja <: #
- #------------------------------------------#
- # Wiadmosc, która pokaze sie po zniszczeniu rudy diamentu
- message5: &bDiamenty &7wypadaja tylko ze stone. Masz na to
- msg1: {@procent}
- msg2: &6procent &7szans
- # Wiadmosc, która pokaze sie po zniszczeniu rudy emeraldu
- message6: &aEmeraldy &7wypadaja tylko ze stone. Masz na to
- msg3: {@procent1}
- msg4: &6procent &7szans
- # Wiadmosc, która pokaze sie po zniszczeniu rudy zelaza
- message7: &fZelazo &7wypada tylko ze stone. Masz na to
- msg5: {@procent2}
- msg6: &6procent &7szans
- # Wiadmosc, która pokaze sie po zniszczeniu rudy zlota
- message8: &6Zloto &7wypada tylko ze stone. Masz na to
- msg7: {@procent3}
- msg8: &6procent &7szans
- # Wiadmosc, która pokaze sie po zniszczeniu rudy redstona
- message12: &cRedstone &7wypada tylko ze stone. Masz na to
- msg9: {@procent4}
- msg10: &6procent &7szans
- # Wiadmosc, która pokaze sie po zniszczeniu rudy lapisu
- message11: &9Lapis &7wypada tylko ze stone. Masz na to
- msg11: {@procent5}
- msg12: &6procent &7szans
- # Alias do komendy /stone [Alias - Inna nazwa tej samej komendy]
- alias1: rudy
- # Tego radze nie konfigurowac pod wzgledem wygladu - w znaczeniu ulozenia tesktu
- # Tu niestety musialem wklepac niektóre rzeczy na sztywno w kod, dlatego nie radze dotykac sie
- # linijek send7, send8, send9 i send10 poniewaz tu sa one tylko czysto informacyjne.
- # Wiadmosc, która zobaczy gracz po wpisaniu komendy /stone
- # Jedna linijka = 1 linijka na chacie w grze
- # Tu piszemy pierwsza czesc wiadomosci bez zmiennych i tesktu za nimi
- # Zapisy od send1 do send6 sa pierwsza czescia wiadomosci (przed zmienna)
- # Zapisy od send7 do send10 sa to zmienne wystepujace w wiadmosci [I]
- # Zapis send11, jest to tekst po zmiennej
- send1: "&3Aby wydobyc rudy &bdiamentow&3, &aemeraldow&3, &fzelaza&3, oraz &6zlota"
- send2: "&3musisz kopac &7stone&3. Na poszczegolne rudy masz takie szanse:"
- send3: - &bDiamenty
- send4: - &aEmeraldy
- send5: - &fZelazo
- send6: - &6Zloto
- send7: {@procent} oraz {@vipprocent}
- send8: {@procent1} oraz {@vipprocent1}
- send9: {@procent2} oraz {@vipprocent2}
- send10: {@procent3} oraz {@vipprocent3}
- send11: &3procent
- # Dodatkowe +
- send12: - &cRedstone
- send13: - &9Lapis
- send14: {@procent4} oraz {@vipprocent4}
- send15: {@procent5} oraz {@vipprocent5}
- #-----------------------------------------------------------------------#
- # Code - tu ponizej nic juz nie zmieniaj #
- #-----------------------------------------------------------------------#
- variables:
- # Aktywne rudy
- {safeore.iron} = true
- {safeore.gold} = true
- {safeore.diamond} = true
- {safeore.emerald} = true
- {safeore.redstone} = false
- {safeore.lapis} = false
- {chance.%player%} = 1
- #-------------#
- # Kod wspólny #
- #-------------#
- #Rudy ze stone
- on break of stone:
- if {safeore.diamond} is true:
- player has permissions "safeore.vip.diamond":
- if player's y-coordinate is smaller than {@yDiamond}:
- if player's tool is a diamond pickaxe of fortune:
- if chance of {@vipszansa}%:
- if chance of 10%:
- chance of 50%:
- drop 1 {@item1}
- message "&7Znaleziono &bDiament&7!"
- clear {chance.%player%}
- stop
- chance of 50%:
- drop 2 {@item1}
- message "&7Znaleziono 2 &bDiamenty&7!"
- clear {chance.%player%}
- stop
- if player's tool is a diamond pickaxe of fortune 2:
- if chance of {@vipszansa}%:
- if chance of 10%:
- chance of 33%:
- drop 1 {@item1}
- message "&7Znaleziono &bDiament&7!"
- clear {chance.%player%}
- stop
- chance of 33%:
- drop 2 {@item1}
- message "&7Znaleziono 2 &bDiamenty&7!"
- clear {chance.%player%}
- stop
- chance of 33%:
- drop 3 {@item1}
- message "&7Znaleziono 3 &bDiamenty&7!"
- clear {chance.%player%}
- stop
- if player's tool is a diamond pickaxe of fortune 3:
- if chance of {@vipszansa}%:
- if chance of 10%:
- chance of 25%:
- drop 1 {@item1}
- message "&7Znaleziono &bDiament&7!"
- clear {chance.%player%}
- stop
- chance of 25%:
- drop 2 {@item1}
- message "&7Znaleziono 2 &bDiamenty&7!"
- clear {chance.%player%}
- stop
- chance of 25%:
- drop 3 {@item1}
- message "&7Znaleziono 3 &bDiamenty&7!"
- clear {chance.%player%}
- stop
- chance of 25%:
- drop 4 {@item1}
- message "&7Znaleziono 4 &bDiamenty&7!"
- clear {chance.%player%}
- stop
- else:
- if chance of {@vipszansa}%:
- if chance of 10%:
- drop {@item1}
- message "&7Znaleziono &bDiament&7!"
- stop
- else:
- if player's y-coordinate is smaller than {@yDiamond}:
- if player's tool is a diamond pickaxe of fortune:
- if chance of {@szansa}%:
- if chance of 10%:
- chance of 50%:
- drop 1 {@item1}
- message "&7Znaleziono &bDiament&7!"
- clear {chance.%player%}
- stop
- chance of 50%:
- drop 2 {@item1}
- message "&7Znaleziono 2 &bDiamenty&7!"
- clear {chance.%player%}
- stop
- if player's tool is a diamond pickaxe of fortune 2:
- if chance of {@szansa}%:
- if chance of 10%:
- chance of 33%:
- drop 1 {@item1}
- message "&7Znaleziono &bDiament&7!"
- clear {chance.%player%}
- stop
- chance of 33%:
- drop 2 {@item1}
- message "&7Znaleziono 2 &bDiamenty&7!"
- clear {chance.%player%}
- stop
- chance of 33%:
- drop 3 {@item1}
- message "&7Znaleziono 3 &bDiamenty&7!"
- clear {chance.%player%}
- stop
- if player's tool is a diamond pickaxe of fortune 3:
- if chance of {@szansa}%:
- if chance of 10%:
- chance of 25%:
- drop 1 {@item1}
- message "&7Znaleziono &bDiament&7!"
- clear {chance.%player%}
- stop
- chance of 25%:
- drop 2 {@item1}
- message "&7Znaleziono 2 &bDiamenty&7!"
- clear {chance.%player%}
- stop
- chance of 25%:
- drop 3 {@item1}
- message "&7Znaleziono 3 &bDiamenty&7!"
- clear {chance.%player%}
- stop
- chance of 25%:
- drop 4 {@item1}
- message "&7Znaleziono 4 &bDiamenty&7!"
- clear {chance.%player%}
- stop
- else:
- if chance of {@szansa}%:
- if chance of 10%:
- drop {@item1}
- message "&7Znaleziono &bDiament&7!"
- stop
- if {safeore.emerald} is true:
- player has permissions "safeore.vip.emerald":
- if player's y-coordinate is smaller than {@yEmerald}:
- if player's tool is a diamond pickaxe of fortune:
- if chance of {@vipszansa1}%:
- if chance of 10%:
- chance of 50%:
- drop 1 {@item2}
- message "&7Znaleziono &aEmerald&7!"
- clear {chance.%player%}
- stop
- chance of 50%:
- drop 2 {@item2}
- message "&7Znaleziono 2 &aEmeraldy&7!"
- clear {chance.%player%}
- stop
- if player's y-coordinate is smaller than {@yEmerald}:
- if player's tool is a diamond pickaxe of fortune 2:
- if chance of {@vipszansa1}%:
- if chance of 10%:
- chance of 33%:
- drop 1 {@item2}
- message "&7Znaleziono &aEmerald&7!"
- clear {chance.%player%}
- stop
- chance of 33%:
- drop 2 {@item2}
- message "&7Znaleziono 2 &aEmeraldy&7!"
- clear {chance.%player%}
- stop
- chance of 33%:
- drop 3 {@item2}
- message "&7Znaleziono 3 &aEmeraldy&7!"
- clear {chance.%player%}
- stop
- if player's y-coordinate is smaller than {@yEmerald}:
- if player's tool is a diamond pickaxe of fortune 3:
- if chance of {@vipszansa1}%:
- if chance of 10%:
- chance of 25%:
- drop 1 {@item2}
- message "&7Znaleziono &aEmerald&7!"
- clear {chance.%player%}
- stop
- chance of 25%:
- drop 2 {@item2}
- message "&7Znaleziono 2 &aEmeraldy&7!"
- clear {chance.%player%}
- stop
- chance of 25%:
- drop 3 {@item2}
- message "&7Znaleziono 3 &aEmeraldy&7!"
- clear {chance.%player%}
- stop
- chance of 25%:
- drop 4 {@item2}
- message "&7Znaleziono 4 &aEmeraldy&7!"
- clear {chance.%player%}
- stop
- else:
- if chance of {@vipszansa1}%:
- if chance of 10%:
- drop {@item2}
- message "&7Znaleziono &aEmerald&7!"
- stop
- else:
- if player's y-coordinate is smaller than {@yEmerald}:
- if player's tool is a diamond pickaxe of fortune:
- if chance of {@szansa1}%:
- if chance of 10%:
- chance of 50%:
- drop 1 {@item2}
- message "&7Znaleziono &aEmerald&7!"
- clear {chance.%player%}
- stop
- chance of 50%:
- drop 2 {@item2}
- message "&7Znaleziono 2 &aEmeraldy&7!"
- clear {chance.%player%}
- stop
- if player's tool is a diamond pickaxe of fortune 2:
- if chance of {@szansa1}%:
- if chance of 10%:
- chance of 33%:
- drop 1 {@item2}
- message "&7Znaleziono &aEmerald&7!"
- clear {chance.%player%}
- stop
- chance of 33%:
- drop 2 {@item2}
- message "&7Znaleziono 2 &aEmeraldy&7!"
- clear {chance.%player%}
- stop
- chance of 33%:
- drop 3 {@item2}
- message "&7Znaleziono 3 &aEmeraldy&7!"
- clear {chance.%player%}
- stop
- if player's tool is a diamond pickaxe of fortune 3:
- if chance of {@szansa1}%:
- if chance of 10%:
- chance of 25%:
- drop 1 {@item2}
- message "&7Znaleziono &aEmerald&7!"
- clear {chance.%player%}
- stop
- chance of 25%:
- drop 2 {@item2}
- message "&7Znaleziono 2 &aEmeraldy&7!"
- clear {chance.%player%}
- stop
- chance of 25%:
- drop 3 {@item2}
- message "&7Znaleziono 3 &aEmeraldy&7!"
- clear {chance.%player%}
- stop
- chance of 25%:
- drop 4 {@item2}
- message "&7Znaleziono 4 &aEmeraldy&7!"
- clear {chance.%player%}
- stop
- else:
- if chance of {@szansa1}%:
- if chance of 10%:
- drop {@item2}
- message "&7Znaleziono &aEmerald&7!"
- stop
- if {safeore.iron} is true:
- player has permissions "safeore.vip.iron":
- if player's y-coordinate is smaller than {@yIron}:
- if player's tool is a diamond pickaxe of fortune:
- if chance of {@vipszansa2}%:
- if chance of 10%:
- chance of 50%:
- drop 1 {@item3}
- message "&7Znaleziono &8Zelazo&7!"
- clear {chance.%player%}
- stop
- chance of 50%:
- drop 2 {@item3}
- message "&7Znaleziono 2 sztuki &8Zelaza&7!"
- clear {chance.%player%}
- stop
- if player's tool is a diamond pickaxe of fortune 2:
- if chance of {@vipszansa2}%:
- if chance of 10%:
- chance of 33%:
- drop 1 {@item3}
- message "&7Znaleziono &8Zelazo&7!"
- clear {chance.%player%}
- stop
- chance of 33%:
- drop 2 {@item3}
- message "&7Znaleziono 2 sztuki &8Zelaza&7!"
- clear {chance.%player%}
- stop
- chance of 33%:
- drop 3 {@item3}
- message "&7Znaleziono 3 sztuki &8Zelaza&7!"
- clear {chance.%player%}
- stop
- if player's tool is a diamond pickaxe of fortune 3:
- if chance of {@vipszansa2}%:
- if chance of 10%:
- chance of 25%:
- drop 1 {@item3}
- message "&7Znaleziono &8Zelazo&7!"
- clear {chance.%player%}
- stop
- chance of 25%:
- drop 2 {@item3}
- message "&7Znaleziono 2 sztuki &8Zelaza&7!"
- clear {chance.%player%}
- stop
- chance of 25%:
- drop 3 {@item3}
- message "&7Znaleziono 3 sztuki &8Zelaza&7!"
- clear {chance.%player%}
- stop
- chance of 25%:
- drop 3 {@item3}
- message "&7Znaleziono 4 sztuki &8Zelaza&7!"
- clear {chance.%player%}
- stop
- else:
- if chance of {@vipszansa2}%:
- if chance of 10%:
- drop {@item3}
- message "&7Znaleziono &8Zelazo&7!"
- stop
- else:
- if player's y-coordinate is smaller than {@yIron}:
- if player's tool is a diamond pickaxe of fortune:
- if chance of {@szansa2}%:
- if chance of 10%:
- chance of 50%:
- drop 1 {@item3}
- message "&7Znaleziono &8Zelazo&7!"
- clear {chance.%player%}
- stop
- chance of 50%:
- drop 2 {@item3}
- message "&7Znaleziono 2 sztuki &8Zelaza&7!"
- clear {chance.%player%}
- stop
- if player's tool is a diamond pickaxe of fortune 2:
- if chance of {@szansa2}%:
- if chance of 10%:
- chance of 33%:
- drop 1 {@item3}
- message "&7Znaleziono &8Zelazo&7!"
- clear {chance.%player%}
- stop
- chance of 33%:
- drop 2 {@item3}
- message "&7Znaleziono 2 sztuki &8Zelaza&7!"
- clear {chance.%player%}
- stop
- chance of 33%:
- drop 3 {@item3}
- message "&7Znaleziono 3 sztuki &8Zelaza&7!"
- clear {chance.%player%}
- stop
- if player's tool is a diamond pickaxe of fortune 3:
- if chance of {@szansa2}%:
- if chance of 10%:
- chance of 25%:
- drop 1 {@item3}
- message "&7Znaleziono &8Zelazo&7!"
- clear {chance.%player%}
- stop
- chance of 25%:
- drop 2 {@item3}
- message "&7Znaleziono 2 sztuki &8Zelaza&7!"
- clear {chance.%player%}
- stop
- chance of 25%:
- drop 3 {@item3}
- message "&7Znaleziono 3 sztuki &8Zelaza&7!"
- clear {chance.%player%}
- stop
- chance of 25%:
- drop 3 {@item3}
- message "&7Znaleziono 4 sztuki &8Zelaza&7!"
- clear {chance.%player%}
- stop
- else:
- if chance of {@szansa2}%:
- if chance of 10%:
- drop {@item3}
- message "&7Znaleziono &8Zelazo&7!"
- stop
- if {safeore.gold} is true:
- player has permissions "safeore.vip.gold":
- if player's y-coordinate is smaller than {@yGold}:
- if player's tool is a diamond pickaxe of fortune:
- if chance of {@vipszansa3}%:
- if chance of 10%:
- chance of 50%:
- drop 1 {@item4}
- message "&7Znaleziono &6Zloto&7!"
- clear {chance.%player%}
- stop
- chance of 50%:
- drop 2 {@item4}
- message "&7Znaleziono &6Zloto&7!"
- clear {chance.%player%}
- stop
- if player's tool is a diamond pickaxe of fortune 2:
- if chance of {@vipszansa3}%:
- if chance of 10%:
- chance of 33%:
- drop 1 {@item4}
- message "&7Znaleziono &6Zloto&7!"
- clear {chance.%player%}
- stop
- chance of 33%:
- drop 2 {@item4}
- message "&7Znaleziono &6Zloto&7!"
- clear {chance.%player%}
- stop
- chance of 33%:
- drop 3 {@item4}
- message "&7Znaleziono &6Zloto&7!"
- clear {chance.%player%}
- stop
- if player's tool is a diamond pickaxe of fortune 3:
- if chance of {@vipszansa3}%:
- if chance of 10%:
- chance of 25%:
- drop 1 {@item4}
- message "&7Znaleziono &6Zloto&7!"
- clear {chance.%player%}
- stop
- chance of 25%:
- drop 2 {@item4}
- message "&7Znaleziono 2 sztuki &6Zlota&7!"
- clear {chance.%player%}
- stop
- chance of 25%:
- drop 3 {@item4}
- message "&7Znaleziono 3 sztuki &6Zlota&7!"
- clear {chance.%player%}
- stop
- chance of 25%:
- drop 4 {@item4}
- message "&7Znaleziono 4 sztuki &6Zlota&7!"
- clear {chance.%player%}
- stop
- else:
- if chance of {@vipszansa3}%:
- if chance of 10%:
- drop {@item4}
- message "&7Znaleziono &6Zloto&7!"
- stop
- else:
- if player's y-coordinate is smaller than {@yGold}:
- if player's tool is a diamond pickaxe of fortune:
- if chance of {@vipszansa}%:
- if chance of 10%:
- chance of 50%:
- drop 1 {@item4}
- message "&7Znaleziono &6Zloto&7!"
- clear {chance.%player%}
- stop
- chance of 50%:
- drop 2 {@item4}
- message "&7Znaleziono &6Zloto&7!"
- clear {chance.%player%}
- stop
- if player's tool is a diamond pickaxe of fortune:
- if chance of {@vipszansa}%:
- if chance of 10%:
- chance of 33%:
- drop 1 {@item4}
- message "&7Znaleziono &6Zloto&7!"
- clear {chance.%player%}
- stop
- chance of 33%:
- drop 2 {@item4}
- message "&7Znaleziono &6Zloto&7!"
- clear {chance.%player%}
- stop
- chance of 33%:
- drop 3 {@item4}
- message "&7Znaleziono &6Zloto&7!"
- clear {chance.%player%}
- stop
- if player's tool is a diamond pickaxe of fortune:
- if chance of {@vipszansa}%:
- if chance of 10%:
- chance of 25%:
- drop 1 {@item4}
- message "&7Znaleziono &6Zloto&7!"
- clear {chance.%player%}
- stop
- chance of 25%:
- drop 2 {@item4}
- message "&7Znaleziono 2 sztuki &6Zlota&7!"
- clear {chance.%player%}
- stop
- chance of 25%:
- drop 3 {@item4}
- message "&7Znaleziono 3 sztuki &6Zlota&7!"
- clear {chance.%player%}
- stop
- chance of 25%:
- drop 4 {@item4}
- message "&7Znaleziono 4 sztuki &6Zlota&7!"
- clear {chance.%player%}
- stop
- else:
- if chance of {@szansa3}%:
- if chance of 10%:
- drop {@item4}
- message "&7Znaleziono &6Zloto&7!"
- stop
- if {safeore.redstone} is true:
- player has permissions "safeore.vip.redstone":
- if player's y-coordinate is smaller than {@yRedstone}:
- if player's tool is a diamond pickaxe of fortune:
- if chance of {@vipszansa4}%:
- if chance of 10%:
- drop {@item5}
- message "&7Znaleziono &cRedstone&7!"
- stop
- else:
- if chance of {@vipszansa4}%:
- if chance of 10%:
- drop {@item5}
- message "&7Znaleziono &cRedstone&7!"
- stop
- else:
- if {safeore.redstone} is true:
- if player's y-coordinate is smaller than {@yRedstone}:
- if player's tool is a diamond pickaxe of fortune:
- if chance of {@szansa4}%:
- if chance of 10%:
- drop {@item5}
- message "&7Znaleziono &cRedstone&7!"
- stop
- else:
- if chance of {@szansa4}%:
- if chance of 10%:
- drop {@item5}
- message "&7Znaleziono &cRedstone&7!"
- stop
- if {safeore.lapis} is true:
- player has permissions "safeore.vip.lapis":
- if player's y-coordinate is smaller than {@yLapis}:
- if player's tool is a diamond pickaxe of fortune:
- if chance of {@vipszansa5}%:
- if chance of 10%:
- if chance of {@vipszansa5}%:
- if chance of 10%:
- drop {@item6}
- message "&7Znaleziono &cLapis&7!"
- stop
- else:
- if chance of {@vipszansa5}%:
- if chance of 10%:
- drop {@item6}
- message "&7Znaleziono &cLapis&7!"
- stop
- else:
- if player's y-coordinate is smaller than {@yLapis}:
- if player's tool is a diamond pickaxe of fortune:
- if {safeore.lapis} is true:
- if chance of {@szansa5}%:
- if chance of 10%:
- drop {@item6}
- message "&7Znaleziono &cLapis&7!"
- stop
- else:
- if chance of {@szansa5}%:
- if chance of 10%:
- drop {@item6}
- message "&7Znaleziono &cLapis&7!"
- stop
- else:
- drop 1 cobblestone
- set {chance.%player%} to 1
- stop
- #Zmiana rud na stone
- on break of {@emeraldore}:
- if {safeore.emerald} is true:
- player has permissions "safeore.player":
- cancel event
- block is {@emeraldore}
- set block to {@set}
- send "{@message11} &6{@vipprocent1} {@msg4}" to player
- stop
- else:
- cancel event
- block is {@emeraldore}
- set block to {@set}
- send "{@message11} &6{@procent1} {@msg4}" to player
- else:
- stop
- on break of {@ironore}:
- if {safeore.iron} is true:
- player has permissions "safeore.player":
- cancel event
- block is {@ironore}
- set block to {@set}
- send "{@message7} &6{@vipprocent2} {@msg6}" to player
- stop
- else:
- cancel event
- block is {@ironore}
- set block to {@set}
- send "{@message7} &6{@procent2} {@msg6}" to player
- else:
- stop
- on break of {@goldore}:
- if {safeore.gold} is true:
- player has permissions "safeore.player":
- cancel event
- block is {@goldore}
- set block to {@set}
- send "{@message8} &6{@vipprocent3} {@msg8}" to player
- stop
- else:
- cancel event
- block is {@goldore}
- set block to {@set}
- send "{@message8} &6{@procent3} {@msg8}" to player
- else:
- stop
- on break of {@diamondore}:
- if {safeore.diamond} is true:
- player has permissions "safeore.player":
- cancel event
- block is {@diamondore}
- set block to {@set}
- send "{@message5} &6{@vipprocent} {@msg2}" to player
- stop
- else:
- cancel event
- block is {@diamondore}
- set block to {@set}
- send "{@message5} &6{@procent} {@msg2}" to player
- else:
- stop
- on break of {@redstoneore}:
- if {safeore.redstone} is true:
- player has permissions "safeore.player":
- cancel event
- block is {@diamondore}
- set block to {@set}
- send "{@message12} &6{@vipprocent4} {@msg10}" to player
- stop
- else:
- cancel event
- block is {@diamondore}
- set block to {@set}
- send "{@message12} &6{@procent4} {@msg10}" to player
- else:
- stop
- on break of {@lapisore}:
- if {safeore.lapis} is true:
- player has permissions "safeore.player":
- cancel event
- block is {@diamondore}
- set block to {@set}
- send "{@message11} &6{@vipprocent5} {@msg12}" to player
- stop
- else:
- cancel event
- block is {@diamondore}
- set block to {@set}
- send "{@message5} &6{@procent5} {@msg2}" to player
- else:
- stop
- #---------#
- # Komendy #
- #---------#
- command /stone:
- description: Pokazuje jakie sa szanse na wpyadniecie przedmiotów ze stone
- aliases: {@alias1}
- trigger:
- player has permissions "safeore.vip.command.stone":
- send "&8========================&6VIP&8=========================" to player
- send {@send1} to player
- send {@send2} to player
- if {safeore.diamond} is true:
- send "{@send3} &7{@vipprocent} {@send11}" to player
- if {safeore.emerald} is true:
- send "{@send4} &7{@vipprocent1} {@send11}" to player
- if {safeore.iron} is true:
- send "{@send5} &7{@vipprocent2} {@send11}" to player
- if {safeore.gold} is true:
- send "{@send6} &7{@vipprocent3} {@send11}" to player
- if {safeore.redstone} is true:
- send "{@send12} &7{@vipprocent4} {@send11}" to player
- if {safeore.lapis} is true:
- send "{@send13} &7{@vipprocent5} {@send11}" to player
- send "&8====================================================" to player
- stop
- else:
- send "&8====================================================" to player
- send {@send1} to player
- send {@send2} to player
- if {safeore.diamond} is true:
- send "{@send3} &7{@procent} {@send11}" to player
- if {safeore.emerald} is true:
- send "{@send4} &7{@procent1} {@send11}" to player
- if {safeore.iron} is true:
- send "{@send5} &7{@procent2} {@send11}" to player
- if {safeore.gold} is true:
- send "{@send6} &7{@procent3} {@send11}" to player
- if {safeore.redstone} is true:
- send "{@send12} &7{@procent4} {@send11}" to player
- if {safeore.lapis} is true:
- send "{@send13} &7{@procent5} {@send11}" to player
- send "&8====================================================" to player
- stop
- #Enable:
- on Skript Start:
- send "" to the console
- send "&8--------------------------------------------------------------" to the console
- send "&8| |" to the console
- send "&8| Enable &2&lSafeOre&8 |" to the console
- send "&8| |" to the console
- send "&8--------------------------------------------------------------" to the console
- send "&8Author: &2&lDzikoysk" to the console
- send "&8Version: &71.4 Release" to the console
- send "" to the console
- stop
- command /safeore <text>:
- trigger:
- if player has permissions "safeore.enable.ore":
- if arg 1 is not set:
- send "&aMozesz wlaczyc/wylaczyc rudy poprzez komende &6/safeore <ruda>"
- send "&Dostepne rudy: &6 Iron, Gold, Diamond, Emerald, Redstone, Lapis"
- stop
- if argument 1 is "iron" or "zelazo":
- if {safeore.iron} is true:
- set {safeore.iron} to false
- send "{@tag} &7Wylaczono wypadanie zelaza ze stone"
- stop
- if {safeore.iron} is false:
- set {safeore.iron} to true
- send "{@tag} &7Wlaczono wypadanie zelaza ze stone"
- stop
- if argument 1 is "gold" or "zloto":
- if {safeore.gold} is true:
- set {safeore.iron} to false
- send "{@tag} &7Wylaczono wypadanie zlota ze stone"
- stop
- if {safeore.gold} is false:
- set {safeore.gold} to true
- send "{@tag} &7Wlaczono wypadanie zlota ze stone"
- stop
- if argument 1 is "diamond" or "diament" or "diamenty":
- if {safeore.diamond} is true:
- set {safeore.diamond} to false
- send "{@tag} &7Wylaczono wypadanie diamentow ze stone"
- stop
- if {safeore.diamond} is false:
- set {safeore.diamond} to true
- send "{@tag} &7Wlaczono wypadanie diamentow ze stone"
- stop
- if argument 1 is "emerald" or "emeraldy" or "szmaragd" or "szmaragdy":
- if {safeore.emerald} is true:
- set {safeore.emerald} to false
- send "{@tag} &7Wylaczono wypadanie emeraldow ze stone"
- stop
- if {safeore.emerald} is false:
- set {safeore.emerald} to true
- send "{@tag} &7Wlaczono wypadanie emeraldow ze stone"
- stop
- if argument 1 is "redstone":
- if {safeore.redstone} is true:
- set {safeore.redstone} to false
- send "{@tag} &7Wylaczono wypadanie redstonea ze stone"
- stop
- if {safeore.redstone} is false:
- set {safeore.redstone} to true
- send "{@tag} &7Wlaczono wypadanie redstonea ze stone"
- stop
- if argument 1 is "lapis":
- if {safeore.lapis} is true:
- set {safeore.lapis} to false
- send "{@tag} &7Wylaczono wypadanie lapisu ze stone"
- stop
- if {safeore.lapis} is false:
- set {safeore.lapis} to true
- send "{@tag} &7Wlaczono wypadanie lapisu ze stone"
- stop
Advertisement
Add Comment
Please, Sign In to add comment