Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ################
- # AUTOR: Fr0st #
- ################
- ################
- # WERSJA: 0.1a #
- ################
- ################################################
- # NIE ZEZWALAM NA: #
- # Używanie kodu mojego skryptu, sprzedawanie #
- # skryptu, podszywanie sie pod autora, #
- # używanie skryptu w plikach serwerowych, #
- # #
- # #
- # #
- # #
- ################################################
- ################
- # OPCJE #
- ################
- # Konfiguracja #
- ################
- # \/ #
- options:
- fd: 1.5 # % wypadania diamentow ze stone
- fe: 1.8 # % wypadania emeraldow ze stone
- fg: 4.6 # % wypadania zlota ze stone
- fi: 5.6 # % wypadania zelaza ze stone
- fc: 9.6 # % wypadania węgla ze stone
- fs: 9.6 # % wypadania piasku ze stone
- fen: 1.6 # % wypadania perel endermana ze stone
- fgun: 2.6 # % wypadania prochu ze stone
- auth: &3Autor skryptu - &8&oFr0st
- ################
- # KOD #
- ################
- # Podstawowe komendy :)
- # \/ - nie dotykaj
- command /stone [<player>]:
- permission: fs.stone
- permission message: &cNie masz uprawnien do tej komendy!
- trigger:
- open chest with 1 rows named "&8» &3Drop ze stone &8» " to arg 1
- wait 1 tick
- format slot 0 of player with 1 of diamond named "&8» &bDiamenty" with lore "&8» &3{@fd} &8procent" to be unstealable
- format slot 1 of player with 1 of emerald named "&8» &aEmeraldy" with lore "&8» &3{@fe} &eprocent" to be unstealable
- format slot 2 of player with 1 of gold ingot named "&8» &6Zloto" with lore "&8» &3{@fg} &eprocent" to be unstealable
- format slot 3 of player with 1 of iron ingot named "&8» &8Zelazo" with lore "&8» &3{@fi} &8procent" to be unstealable
- format slot 4 of player with 1 of coal named "&8» &0Wegiel" with lore "&8» &3{@fc} &8procent" to be unstealable
- format slot 5 of player with 1 of sand named "&8» &ePiasek" with lore "&8» &3{@fs} &8procent" to be unstealable
- format slot 6 of player with 1 of redstone named "&8» &4Redstone" with lore "&8» &3&90.5 &8procent" to be unstealable
- format slot 7 of player with 1 of ender pearl named "&8» &5Perla endermana" with lore "&8» &3{@fen} &8procent" to be unstealable
- format slot 8 of player with 1 of gunpowder named "&8» &7&lProch" with lore "&e★&9{@fgun} &8procent" to be unstealable
- command /kamien:
- permission: fs.kamien
- permission message: &cNie masz uprawnien do tej komendy!
- trigger:
- execute player command "/stone %player%"
- command /Fr0stStone <text>:
- usage: &8/fr0ststone &c[argument]
- permission: fs.admin
- permission message: &cNie masz uprawnien do tej komendy!
- trigger:
- if arg 1 is not set:
- send "&cPodaj argument!"
- if arg 1 is not "reload" or "autor":
- send "&cNie ma takiego argumentu!"
- if arg 1 is "reload":
- send "&3Restartowanie skryptu &8Fr0stStone..."
- execute player command "/sk reload Fr0stStone"
- wait 2 seconds
- send "&aFr0stStone pomyslnie zrestartowany!"
- if arg 1 is "autor":
- send "{@auth}"
- # Drop ze stone | Ustawianie zeby z rud diamentu itp. nie wypadaly diamenty itp.
- on mine of diamond ore or emerald ore or iron ore or gold ore:
- cancel event
- set block to air
- send " &8» &3Drop z tej rudy jest wylaczony!"
- send " &8» &3Aby zobaczyc procent szans na drop wpisz &8/kamien&3!"
- stop
- # Główny kod
- on mine of stone:
- if player's gamemode is survival:
- if player's tool is pickaxe:
- chance of {@fi}%:
- give 1 iron ore to the player
- drop 10 xp
- chance of {@fg}%:
- give 1 gold ore to the player
- drop 5 xp
- chance of {@fd}%:
- give 1 diamond to the player
- drop 4 xp
- chance of {@fe}%:
- give 1 emerald to the player
- drop 4 xp
- chance of 0.5%:
- give 4 redstone to the player
- drop 4 xp
- chance of {@fgun}%:
- give 5 gunpowder to the player
- drop 5 xp
- chance of {@fc}%:
- give 1 coal to the player
- drop 13 xp
- chance of {@fen}%:
- give 1 ender pearl to the player
- drop 5 xp
- chance of {@fs}%:
- give 1 sand to the player
- drop 3 xp
- if player's tool is a diamond pickaxe of fortune 1 or fortune 2 or fortune 3:
- chance of {@fi}%:
- give a random number between 3 and 1 of iron ore to the player
- drop 10 xp
- chance of {@fg}%:
- give a random number between 3 and 1 of gold ore to the player
- drop 5 xp
- chance of {@fd}%:
- give a random number between 3 and 1 of diamond to the player
- drop 4 xp
- chance of {@fe}%:
- give a random number between 3 and 1 of emerald to the player
- drop 4 xp
- chance of 0.5%:
- give a random number between 5 and 1 of redstone to the player
- drop 4 xp
- chance of {@fgun}%:
- give a random number between 5 and 1 of gunpowder to the player
- drop 5 xp
- chance of {@fc}%:
- give a random number between 5 and 1 of coal to the player
- drop 13 xp
- chance of {@fen}%:
- give a random number between 3 and 1 of ender pearl to the player
- drop 5 xp
- chance of {@fs}%:
- give a random number between 3 and 1 of sand to the player
- drop 3 xp
Advertisement
Add Comment
Please, Sign In to add comment