This script was found here, and I have made some slight modifications on my own, which do not affect its functionality. However, after updating to skript 2.8.0, the loop section seems unresponsive. I've checked the update log, but I still can't figure out what the issue is.
No error message.
No error message.
Code:
function chain(b: block, n: integer):
wait 1 tick
{_n} is less than 50
add 1 to {_n}
loop blocks in radius 2 around {_b}:
loop-block is any log
loop blocks above loop-block:
loop-block-2 is air:
block above loop-block-2 is air
exit 1 loop
exit 1 loop
loop blocks above loop-block:
loop-block-2 is any leaves
chain(loop-block-1, {_n})
break loop-block-1
wait 10 tick
on break of any log:
name of tool is "special axe"
loop blocks above event-block:
loop-block is any leaves:
send event-location to player
loop all blocks in radius 2 of loop-block:
loop-block-2 is any leaves
add 1 to {_l}
send {_l} to player
{_l} > 7
set {_tree} to true
{_tree} is true:
chain(event-block, 0)
Last edited: