Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- command /swiniarnia [<text>] [<text>] [<number>]:
- permission: swiniarnia
- permission message: &cNie masz do tego dostepu!
- trigger:
- if arg 1 is "spawn":
- if arg 2 is "ustaw":
- if {swiniarnia::%block under target block%} is not set:
- set {swiniarnia::%block under target block%} to location of block under target block
- if arg 3 is set:
- set {swiniarnia::%block under target block%::ilosc} to arg 3
- send "&6Ustawiono swiniarnie"
- stop
- else:
- send "&cSwiniarnia jest ustawiona w tym miejscu."
- stop
- if arg 2 is "usun":
- if {swiniarnia::%block under target block%} is set:
- clear {swiniarnia::%block under target block%}
- clear {swiniarnia::%block under target block%::ilosc}
- send "&6Usunieto swiniarnie"
- stop
- else:
- send "&cSwiniarnia nie jest ustawiona w tym miejscu."
- stop
- if arg 1 is "przycisk":
- if arg 2 is "ustaw":
- if target block is stone button:
- if {przycisk::%target block%} is not set:
- set {przycisk::%target block%} to true
- send "&6Ustawiono przycisk"
- stop
- else:
- send "&cTen przycisk jest juz ustawiony."
- stop
- else:
- send "&cTo nie jest kamienny przycisk."
- stop
- if arg 2 is "usun":
- if target block is stone button:
- if {przycisk::%target block%} is set:
- clear {przycisk::%target block%}
- send "&6Usunieto przycisk"
- stop
- else:
- send "&cTen przycisk nie jest ustawiony."
- stop
- else:
- send "&cTo nie jest kamienny przycisk."
- stop
- on rightclick:
- if event-block is stone button:
- if {przycisk::%event-block%} is set:
- loop {swiniarnia::*}:
- set {_x} to location of loop-value
- if {swiniarnia::%block at loop-value%::ilosc} is not set:
- spawn 1 pig at {_x}
- ignite last spawned entity for 10 seconds
- broadcast "%loop-value%"
- else:
- loop {swiniarnia::%block at loop-value%::ilosc} times:
- spawn 1 pig at {_x}
- ignite last spawned entity for 100 seconds
Advertisement
Add Comment
Please, Sign In to add comment