Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Name: LuckyChest
- # Version: 1.0.0
- # Author: Scream1137
- # Contact: http://skript.pl/index.php/user/461-scream1137/
- # Zabraniam usuwania mojego nicku z komendy i skryptu
- options:
- # itemy które bedą dropic z lucky chest :]
- item1: 1 diamond sword of sharpness 4 named "&6&l&oLucky Sword" # Przykładowy itemek
- item2:
- item3:
- item4:
- item5:
- item6:
- item7:
- item8:
- item9:
- item10:
- item11:
- item12:
- item13:
- item14:
- item15:
- item16:
- item17:
- item18:
- item19:
- item20:
- item21:
- item22:
- item23:
- item24:
- item25:
- item26:
- item27:
- item28:
- item29:
- item30:
- item31:
- item32:
- # Ilosc Dawania luckychestow przez komende
- IloscLuckyChest: 1 # standardowo jest na 1
- # ilosc Dawania luckykey przez komende
- IloscLuckKey: 1 # standardowo jest na 1
- sk: luckyChest
- on load:
- add {@item1} to {drop::*}
- add {@item2} to {drop::*}
- add {@item3} to {drop::*}
- add {@item4} to {drop::*}
- add {@item5} to {drop::*}
- add {@item6} to {drop::*}
- add {@item7} to {drop::*}
- add {@item8} to {drop::*}
- add {@item9} to {drop::*}
- add {@item10} to {drop::*}
- add {@item11} to {drop::*}
- add {@item12} to {drop::*}
- add {@item13} to {drop::*}
- add {@item14} to {drop::*}
- add {@item15} to {drop::*}
- add {@item16} to {drop::*}
- add {@item17} to {drop::*}
- add {@item18} to {drop::*}
- add {@item19} to {drop::*}
- add {@item20} to {drop::*}
- add {@item21} to {drop::*}
- add {@item22} to {drop::*}
- add {@item23} to {drop::*}
- add {@item24} to {drop::*}
- add {@item25} to {drop::*}
- add {@item26} to {drop::*}
- add {@item27} to {drop::*}
- add {@item28} to {drop::*}
- add {@item29} to {drop::*}
- add {@item30} to {drop::*}
- add {@item31} to {drop::*}
- add {@item32} to {drop::*}
- stop
- command /luckchest [<text>] [<text>] [<items>] [<player>]:
- aliases: chest, skrzynie, szczesliwa skrzynia, skrzynki
- permission: scream1137.admin
- permission message: &4Blad: &cNie masz uprawnien aby wykonac ta komende!
- trigger:
- if arg 1 is not set:
- send "&7>>>>> &8&l(&eLuckyChest&8&l) &7<<<<<"
- send "&9> &2/chest givechest &6<nick> &8- &aDajes LuckyChest danemu graczowi"
- send "&9> &2/chest givekey &6<nick> &8- &aDajesz klucz do LuckyChest danemu graczowi"
- send "&9> &2/chest cleardrop &8- &aCzysci drop z LuckyChest, trzeba po tym zreloadowac skrypt"
- send "&9> &2/chest reload &8- &a relodujesz skrypt"
- send " &c&lAutor: Scream1137"
- send "&7>>>>> &8&l(&eKoniec Komend&8&l) &7<<<<<"
- stop
- if arg 1 is "givechest" or "daj" or "dodaj" or "podaruj":
- if arg 4 is set:
- give {@IloscLuckyChest} chest named "&5&l&oLuckyChest" to the player
- send "&2Gracz %arg 2% otrzymal &5&l&oLuckyChest"
- else:
- give 1 chest named "&5&l&oLuckyChest" to the player
- send "&2Otrzymales &5&l&oLuckyChest"
- if arg 1 is "clear" or "czysc" or "wyczysc":
- clear {drop::*}
- send "&cZresetowales drop z &5&l&oLuckyChest"
- if arg 1 is "givekey":
- if arg 4 is set:
- give 1 tripwire hook of unbreaking 10 named "&5&l&oKlucz" to the arg 4
- send "&2Gracz &a%arg 2% &2otrzymal 1 klucz do &5&l&oLuckyChest"
- else:
- give 1 tripwire hook of unbreaking 10 named "&5&l&oKlucz" to the player
- send "&2Otrzymales klucz do &5&l&oLuckyChest"
- if arg 1 is "reload":
- execute console command "sk reload {@sk}"
- send "&aSkrypt został pomyslnie zreloadowany"
- stop
- on place a chest:
- if player's tool is chest named "&5&l&oLuckyChest":
- cancel event
- set event-block to air
- if player has tripwire hook of unbreaking 10 named "&5&l&oKlucz":
- remove 1 chest named "&5&l&oLuckyChest" from the player
- remove 1 tripwire hook named "&5&l&oKlucz" from the player
- drio a random item out of {drop::*}
- show mob spawner flames at event-block
- else:
- send "&4Blad: &cNie posiadasz klucza w eq!"
- on place a trigger hook:
- if player's tool is a tripwire hook named "&5&l&oKlucz":
- cancel event
- send "&4Blad: &cNie mozesz postawic klucza!"
- on join:
- if player is "mchc12":
- send "&eWitaj &4&lmchc12 , &eten serwer uzywa twojego skrypt na &5&l&oluckychest!"
Advertisement
Add Comment
Please, Sign In to add comment