Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # swiniarka #
- Options:
- Prefix: &6* &5&lN&ftools&a2 &6* #Tag skryptu
- ClickBlock: stone button #Blok ktory trzeba kliknac, aby respily sie swinie
- BlockBehind: redstone lamp #Blok za kliknietym blokiem
- Wait: 5 #Co ile mozna uzywac przycisku
- Name: &6* &5&lN&ftools&a2 &6* #Nazwa swini
- Amount: 5 #Ilosc swin
- AmountPork: 5 #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
- drop {@AmountPork} cooked pork at {SpawnPig}
- loop {@Amount} times:
- spawn 1 pig at {SpawnPig}
- ignite spawned pig
- set display name of spawned pig to "{@Name}"
- set max health of spawned pigs to {@LifePig}
Advertisement
Add Comment
Please, Sign In to add comment