Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #=================#
- # Skrzynki #
- #=================#
- #Skrypt by Frastic#
- #=================#
- # Config #
- #=================#
- options:
- #Szansa na dropnięcie klucza
- chance: 5%
- #Nazwa klucza
- keyname: &4&lKlucz
- #Crafting skrzynki
- 1: Gold Block
- 2: Gold Block
- 3: Gold Block
- 4: Gold Block
- 5: enchanted golden apple
- 6: Gold Block
- 7: Gold Block
- 8: Gold Block
- 9: Gold Block
- #Nazwa skrzynki
- chestname: &4&lSkrzynka
- #=================#
- # 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 /skrzynia [<text>] [<text>]:
- trigger:
- if arg 1 is "give":
- if arg 2 is "key" or "klucz":
- give player a tripwire hook named "{@keyname}"
- if arg 2 is "skrzynka" or "chest":
- give player a chest named "{@chestname}"
- else:
- send "Poprawne uzycie: '/skrzynia give key/klucz/skrzynka/chest'" 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 1%:
- give player a diamond sword of sharpness 5
- chance of 1%:
- give player a diamond pickaxe of efficiency 5
- chance of 1%:
- give player a diamond helmet of protection 4
- chance of 1%:
- give player a diamond Chestplate of protection 4
- chance of 1%:
- give player a diamond Leggings of protection 4
- chance of 1%:
- give player a diamond Boots of protection 4
- chance of 1%:
- give player a enchanted golden apple
- chance of 1%:
- give player a golden apple
- chance of 1%:
- give player a gold block
- else:
- cancel event
- if player is holding a chest named "{@chestname}":
- cancel event
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement