Stworzylem skrypt na generator drewna i kamienia i chcialem go zmienic tak aby generowal swierkowe drewno
Problem polega na tym ze skrypt nie chce wykozystac swierkowego drewna do craftingu. Tak samo jest w przypadku granitu, andezytu itp.
Prosze o pomoc
options:
item: note block
block: spruce log
name: &bSpawner swierku
msg1: &aPostawiles spawner swierku
msg2: &cZniszczyles spawner swierku
msg3: &4Nad generatorem 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, {@block}, note block
on place of {@item}:
if name of the player's tool is "{@name}":
if block above event-block is not air or {@block}:
set event-block to air
drop 1 {@item} named "{@name}"
send "{@msg3}"
wait 1 second
if block above event-block is air or {@block}:
send "{@msg1}"
add location of event-block to {{@block}::*}
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 {{@block}::*}:
if location of event-block is loop-value:
remove location of event-block from {{@block}::*}
cancel event
set event-block to air
set block above event-block to air
drop 1 {@item} named "{@name}"
send "{@msg2}"
Pytanie
TheSomcioo 0
Stworzylem skrypt na generator drewna i kamienia i chcialem go zmienic tak aby generowal swierkowe drewno
Problem polega na tym ze skrypt nie chce wykozystac swierkowego drewna do craftingu. Tak samo jest w przypadku granitu, andezytu itp.
Prosze o pomoc
options: item: note block block: spruce log name: &bSpawner swierku msg1: &aPostawiles spawner swierku msg2: &cZniszczyles spawner swierku msg3: &4Nad generatorem 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, {@block}, note block on place of {@item}: if name of the player's tool is "{@name}": if block above event-block is not air or {@block}: set event-block to air drop 1 {@item} named "{@name}" send "{@msg3}" wait 1 second if block above event-block is air or {@block}: send "{@msg1}" add location of event-block to {{@block}::*} 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 {{@block}::*}: if location of event-block is loop-value: remove location of event-block from {{@block}::*} cancel event set event-block to air set block above event-block to air drop 1 {@item} named "{@name}" send "{@msg2}"Odnośnik do komentarza
https://skript.pl/temat/31273-rozne-typy-drewna-i-kamienia-w-craftingu/Udostępnij na innych stronach
0 odpowiedzi na to pytanie
Rekomendowane odpowiedzi
Dołącz do dyskusji
Możesz dodać zawartość już teraz a zarejestrować się później. Jeśli posiadasz już konto, zaloguj się aby dodać zawartość za jego pomocą.