Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # # # # # # # # # #
- # SpawnPig #
- # By Mroczny337 #
- # # # # # # # # # #
- Options:
- Prefix: &8[&cSpawnPig&8] #Tag skryptu
- ClickBlock: wood button #Blok ktory trzeba kliknac, aby respily sie swinie
- BlockBehind: 97:5 #Blok za kliknietym blokiem
- Wait: 5 #Co ile mozna uzywac przycisku
- Name: &ctwitch.tv/Tu_wpisz_nick #Nazwa swini
- Amount: 10 #Ilosc swin
- AmountPork: 32 #Ilosc Miesa przy spawnie swin
- LifePig: 1 #Zycie swin
- Command /SpawnPig [<text>]:
- aliases: sp, pig
- trigger:
- if player has permission "SpawnPig.*":
- if arg 1 is not set:
- send "{@Prefix}"
- send "&7/SpawnPig set"
- send "&7/SpawnPig del"
- send "&7/SpawnPig help"
- stop
- if arg 1 is "help" or "pomoc":
- send "{@Prefix}"
- send "&7/SpawnPig set"
- send "&7/SpawnPig del"
- stop
- if arg 1 is "set" or "ustaw":
- set {SpawnPig} to location of player
- send "{@Prefix} &7Stworzono spawn swin."
- stop
- if arg 1 is "del" or "usun":
- clear {SpawnPig}
- send "{@Prefix} &7Usunieto spawn swin."
- stop
- else:
- send "&cBrak uprawnien"
- stop
- on rightclick:
- if clicked block is {@ClickBlock}:
- if block behind clicked block is {@BlockBehind}:
- if difference between {PigWait.%player%} and now is less than {@Wait} seconds:
- set {_Time} to difference between {PigWait.%player%} and now
- stop
- set {PigWait.%player%} to now
- loop {@Amount} times:
- spawn 1 bat at {SpawnPig}
- ignite spawned bat
- set display name of spawned bat to "{@Name}"
- set max health of spawned bat to {@LifePig}
- on death of bat:
- if name of victim is "&ctwitch.tv/Tu_wpisz_nick":
- clear drops
- drop 5 320 at location of victim
- # # # #
- # End #
- # # # #
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement