Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #=================#
- # Skrzynki #
- #=================#
- # Skrypt by Metox #
- #=================#
- # Config #
- #=================#
- options:
- #Szansa na dropnięcie klucza
- chance: 5%
- #Nazwa klucza
- keyname: &4&lKlucz
- #Crafting skrzynki
- 1: oak plank
- 2: oak plank
- 3: oak plank
- 4: oak plank
- 5: enchanted golden apple
- 6: oak plank
- 7: oak plank
- 8: oak plank
- 9: oak plank
- #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 /skrzynki [<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: '/skrzynki 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 25%:
- give player a diamond sword of sharpness 7
- chance of 25%:
- give player a diamond pickaxe of efficiency 7
- chance of 25%:
- give player a diamond helmet of protection 6
- else:
- cancel event
- if player is holding a chest named "{@chestname}":
- cancel event
Advertisement
Add Comment
Please, Sign In to add comment