Szukam pluginu nieskończonej perły, która gdy dotknie ziemi odnawia się za 5 sekund tak jak na YFL SMP.
to nie ma być zwykła perła tylko inny rodzaj. Chciałbym żeby każdy dostawał ją na starcie gry.
Pozdrawiam
command /kilof:
trigger:
if player has permission "admin.kilof":
add diamond pickaxe with lore "&aKilof 3x3" to player
on mine:
player's tool is diamond pickaxe with lore "&aKilof 3x3"
player is not sneaking
set {_1} to location of event-block
set {_2} to location of event-block
if player's pitch is between -50 and 50:
add 1 to y-coord of {_1}
subtract 1 from y-coord of {_2}
if player's horizontal facing is west or east:
add 1 to z-coord of {_1}
subtract 1 from z-coord of {_2}
loop blocks within {_1} and {_2}:
break loop-value naturally using player's tool
else if player's horizontal facing is north or south:
add 1 to x-coord of {_1}
subtract 1 from x-coord of {_2}
loop blocks within {_1} and {_2}:
break loop-value naturally using player's tool
else:
add 1 to x-coord of {_1}
add 1 to z-coord of {_1}
subtract 1 from x-coord of {_2}
subtract 1 from z-coord of {_2}
loop blocks within {_1} and {_2}:
break loop-block naturally using player's tool
Siema, dało by rade zrobić skrypt na wybuchający łuk, który odbuduje te bloki po 3 sekundach (najlepiej jakby to byla taka animacja blok po bloku) Z gory dzieki
on shoot:
if shooter's tool is bow named "&cWybuchowy łuk":
set {wybuch::%projectile%} to true
on projectile hit:
if {wybuch::%projectile%} is set:
clear {wybuch::%projectile%}
create a safe explosion of force 5 at projectile
if "%block at projectile%" contains "water":
stop
loop blocks in radius 5 around projectile:
if loop-block is not air:
set {_bloki::%location of loop-block%} to location of loop-block
set {_bloki::%location of loop-block%::type} to type of loop-block
delete loop-block
delete projectile
wait 3 seconds
loop {_bloki::*}:
set {_loc} to loop-index
set block at loop-value to {_bloki::%loop-value%::type}
wait a tick
options:
cooldown: 5 seconds
on first join:
wait a tick
add ender pearl named "&3Nieskończona perła" to player
on shoot:
if shooter is a player:
if name of shooter's tool is "&3Nieskończona perła":
if {perla::%shooter%::teleport} is true:
cancel event
send "&cMożesz wyrzucić tylko jedną perłę w tym samym czasie." to shooter
stop
if difference between {perla::%shooter%::czas} and now is smaller than {@cooldown}:
cancel event
set {_czas} to {@cooldown}
remove difference between {perla::%shooter%::czas} and now from {_czas}
send "&cNieskończoną perłę możesz użyć ponownie za &6%{_czas}%" to shooter
stop
set {perla::%shooter%::teleport} to true
on teleport:
if event-entity is a player:
if teleport cause is ender pearl:
if {perla::%event-entity%::teleport} is true:
clear {perla::%event-entity%::teleport}
add ender pearl named "&3Nieskończona perła" to event-entity
set {perla::%event-entity%::czas} to now