koversik123 1 Opublikowano 17 lipca 2015 Udostępnij Opublikowano 17 lipca 2015 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 break of stone: chance of 1%: drop chest named "{@chestname}" at event-location 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 place of chest: if player has tripwire hook named "{@keyname}" and chest named "{@chestname}": cancel event remove 1 tripwire hook named "{@keyname}" from player's inventory remove 1 chest named "{@chestname}" from player's inventory give player a diamond sword of sharpness 7 or a diamond pickaxe of efficiency 7 or a diamond helmet of protection 6 give player a diamond sword of sharpness 7 or a diamond pickaxe of efficiency 7 or a diamond helmet of protection 6 else: cancel event if player is holding a chest named "{@chestname}": cancel event Dodał by mi ktoś permissie do używania tej komendy i wiadomości podczas dostania itemu z skrzynki ! Odnośnik do komentarza https://skript.pl/temat/8808-mam-pytanie-odno%C5%9Bnie-tego-skryptu/ Udostępnij na innych stronach Więcej opcji udostępniania...
0 xMateuszP0L 47 Opublikowano 17 lipca 2015 Udostępnij Opublikowano 17 lipca 2015 Do komendy dodałem perm skrzynki.* command /skrzynki [<text>] [<text>]: trigger: if arg 1 is "give": if player has permission "skrzynki.*" 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 playerTu masz do skrzyni on place of chest: if player has tripwire hook named "{@keyname}" and chest named "{@chestname}": cancel event remove 1 tripwire hook named "{@keyname}" from player's inventory remove 1 chest named "{@chestname}" from player's inventory give player a diamond sword of sharpness 7 or a diamond pickaxe of efficiency 7 or a diamond helmet of protection 6 give player a diamond sword of sharpness 7 or a diamond pickaxe of efficiency 7 or a diamond helmet of protection 6 send "&aOtrzymales nagrode!" else: cancel event send "&cMusisz posiadac skrzynke i klucz!" Odnośnik do komentarza https://skript.pl/temat/8808-mam-pytanie-odno%C5%9Bnie-tego-skryptu/#findComment-68411 Udostępnij na innych stronach Więcej opcji udostępniania...
0 koversik123 1 Opublikowano 17 lipca 2015 Autor Udostępnij Opublikowano 17 lipca 2015 Do komendy dodałem perm skrzynki.* Tu masz do skrzyni Teraz mi nic nie działa Odnośnik do komentarza https://skript.pl/temat/8808-mam-pytanie-odno%C5%9Bnie-tego-skryptu/#findComment-68413 Udostępnij na innych stronach Więcej opcji udostępniania...
Pytanie
koversik123 1
Odnośnik do komentarza
https://skript.pl/temat/8808-mam-pytanie-odno%C5%9Bnie-tego-skryptu/Udostępnij na innych stronach
2 odpowiedzi na to pytanie
Rekomendowane odpowiedzi