Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #=================#
- # Skrzynki #
- #=================#
- # Skrypt by Sp33dek1337 #
- #=================#
- # Config #
- #=================#
- options:
- #Szansa na dropnięcie klucza
- chance: 0.5%
- #Nazwa klucza
- keyname: &6&lKlucz Do Magicznej Skrzyni
- #Crafting skrzynki
- 1: gold block
- 2: enchanted golden apple
- 3: gold block
- 4: enchanted golden apple
- 5: chest
- 6: enchanted golden apple
- 7: gold block
- 8: gold block
- 9: gold block
- #Nazwa skrzynki
- chestname: &c&lMagiczna Skrzynia
- #=================#
- # Kod #
- #=================#
- on death:
- if victim is a player:
- chance of {@chance}:
- give player a tripwire hook named "{@keyname}"
- on script load:
- register new shaped recipe for chest named "{@chestname}" using {@1}, {@2}, {@3}, {@4}, {@5}, {@6}, {@7}, {@8}, {@9}
- command /skrzynki [<text>] [<text>]:
- trigger:
- if arg 1 is "give":
- if arg 2 is "key" or "klucz":
- give player a name tag named "{@keyname}"
- if arg 2 is "skrzynka" or "chest":
- give player a chest named "{@chestname}"
- else:
- send "&cPoprawne uzycie: '&2/skrzynki give key/klucz/skrzynka/chest&c'" to player
- on rightclick:
- if player is holding a tripwire hook named "{@keyname}":
- if player has a chest named "{@chestname}":
- cancel event
- remove 1 chest named "{@chestname}" from the player
- remove 1 tripwire hook named "{@keyname}" from the player
- chance of 5%:
- give player a diamond sword of sharpness 5
- broadcast "&2Gracz %player% otworzyl skrzynie i wypadlo mu: &cMiecz ostrosc V!"
- chance of 5%:
- give player a diamond pickaxe of efficiency 5
- broadcast "&2Gracz %player% otworzyl skrzynie i wypadlo mu: &cKilof wydajnosc V"
- chance of 5%:
- give player a diamond helmet of protection 4
- broadcast "&2Gracz %player% otworzyl skrzynie i wypadlo mu: &cHelm Ochrona IV"
- chance of 5%:
- give player a diamond chestplate of protection 4
- broadcast "&2Gracz %player% otworzyl skrzynie i wypadlo mu: &cKlata Ochrona IV"
- chance of 5%:
- give player a diamond boots of protection 4
- broadcast "&2Gracz %player% otworzyl skrzynie i wypadlo mu: &cButy Ochrona IV"
- chance of 5%:
- give player a diamond leggings of protection 4
- broadcast "&2Gracz %player% otworzyl skrzynie i wypadlo mu: &cSpodnie Ochrona IV"
- else:
- cancel event
- if player is holding a chest named "{@chestname}":
- cancel event
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement