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}"