Probuje zrobic skrypt na stoniarke tak zeby moc pozniej dodac stoniarki innych blokow np obsydianu
Wszystko dobrze dziala ale gdy chce sie ja zniszczyc to robi to ~20 razy i dzieje sie to nawet przy zwyklym noteblocku
Prosze o pomoc w naprawie i z gory dziekuje
options:
item: note block
block: stone
name: &bStoniarka
msg1: &aPostawiles stoniarke
msg2: &cZniszczyles stoniarke
msg3: &4Nad stoniarka musi byc 1 wolny blok lub blok ktory generuje
on script load:
register new shapeless recipe for {@item} named "{@name}" using air, air, air, air, air, air, emerald, stone, note block
on place of {@item}:
if name of the player's tool is "{@name}":
send "{@msg1}"
add location of event-block to {stone::*}
if block above event-block is not air or stone:
set event-block to air
drop 1 {@item} named "{@name}"
send "{@msg3}"
wait 1 second
if block above event-block is air or stone:
set block above event-block to {@block}
stop
on break of {@block}:
loop {stone2::*}:
if location of event-block is loop-value:
wait 1 second
if block below event-block is not {@item}:
stop
wait 1 second
if block below event-block is not {@item}:
stop
set event-block to {@block}
on break of {@item}:
loop {stone::*}:
if location of event-block is loop-value:
remove location of event-block from {stone::*}
cancel event
set event-block to air
drop 1 {@item} named "{@name}"
send "{@msg2}"
Pytanie
TheSomcioo 0
Probuje zrobic skrypt na stoniarke tak zeby moc pozniej dodac stoniarki innych blokow np obsydianu
Wszystko dobrze dziala ale gdy chce sie ja zniszczyc to robi to ~20 razy i dzieje sie to nawet przy zwyklym noteblocku
Prosze o pomoc w naprawie i z gory dziekuje
options: item: note block block: stone name: &bStoniarka msg1: &aPostawiles stoniarke msg2: &cZniszczyles stoniarke msg3: &4Nad stoniarka musi byc 1 wolny blok lub blok ktory generuje on script load: register new shapeless recipe for {@item} named "{@name}" using air, air, air, air, air, air, emerald, stone, note block on place of {@item}: if name of the player's tool is "{@name}": send "{@msg1}" add location of event-block to {stone::*} if block above event-block is not air or stone: set event-block to air drop 1 {@item} named "{@name}" send "{@msg3}" wait 1 second if block above event-block is air or stone: set block above event-block to {@block} stop on break of {@block}: loop {stone2::*}: if location of event-block is loop-value: wait 1 second if block below event-block is not {@item}: stop wait 1 second if block below event-block is not {@item}: stop set event-block to {@block} on break of {@item}: loop {stone::*}: if location of event-block is loop-value: remove location of event-block from {stone::*} cancel event set event-block to air drop 1 {@item} named "{@name}" send "{@msg2}"Odnośnik do komentarza
https://skript.pl/temat/31060-problem-z-niszczeniem-stoniarki/Udostępnij na innych stronach
2 odpowiedzi na to pytanie
Rekomendowane odpowiedzi