ŁAP SKRYPTA:
on right click:
if clicked block is wood button:
if block behind clicked block is bedrock:
if {Klik} is not set:
set {Klik} to true
send "&6Zrespiles swinki!"
spawn 1 pigs at {SpawnPigs1}
Set display name of spawned entity to "&3&lBcsCraft"
damage spawned entity by 1
spawn 1 pigs at {SpawnPigs2}
Set display name of spawned entity to "&3&lBcsCraft"
damage spawned entity by 1
spawn 1 pigs at {SpawnPigs3}
Set display name of spawned entity to "&3&lBcsCraft"
damage spawned entity by 1
spawn 1 pigs at {SpawnPigs4}
Set display name of spawned entity to "&3&lBcsCraft"
spawn 1 pigs at {SpawnPigs5}
damage spawned entity by 1
loop 2.5 times:
wait 1 second
delete {Klik}
else:
send "&6Spawnic swinki mozna co 2.5 sekundy."
on death of pig:
delete drops
drop 1 cooked beef of infinity 1 named "&6&lMiesko" at victim
command /setspawnpigs1 [<text>]:
permission message: &cNie masz uprawnien do tej komedy.
permission: pigs.set.location
trigger:
set {SpawnPigs1} to location of player
send "&2Ustawiles spawn swinek! 1"
command /setspawnpigs2 [<text>]:
permission message: &cNie masz uprawnien do tej komedy.
permission: pigs.set.location
trigger:
set {SpawnPigs2} to location of player
send "&2Ustawiles spawn swinek! 2"
command /setspawnpigs3 [<text>]:
permission message: &cNie masz uprawnien do tej komedy.
permission: pigs.set.location
trigger:
set {SpawnPigs3} to location of player
send "&2Ustawiles spawn swinek! 3"
command /setspawnpigs4 [<text>]:
permission message: &cNie masz uprawnien do tej komedy.
permission: pigs.set.location
trigger:
set {SpawnPigs4} to location of player
send "&2Ustawiles spawn swinek! 4"
command /setspawnpigs5 [<text>]:
permission message: &cNie masz uprawnien do tej komedy.
permission: pigs.set.location
trigger:
set {SpawnPigs5} to location of player
send "&2Ustawiles spawn swinek! 5"