Versions and addons:
Skript for Paper 2.6.1
SkDragon
skript-reflect
SkBee
SkriptGUI
SkQuery
SkRayfall
Skream
Minecraft 1.17.1
So i had this problem a while ago where I couldn't figure out a good skript to regenerate bamboo and sugarcane because breaking the bottom crop automatically breaks the others.
I came up with this but it is insanely long so I was wondering if there were better solutions.
Skript for Paper 2.6.1
SkDragon
skript-reflect
SkBee
SkriptGUI
SkQuery
SkRayfall
Skream
Minecraft 1.17.1
So i had this problem a while ago where I couldn't figure out a good skript to regenerate bamboo and sugarcane because breaking the bottom crop automatically breaks the others.
I came up with this but it is insanely long so I was wondering if there were better solutions.
Code:
on break of sugar cane:
if "%region at player%" contains "spawn":
cancel event
if block above event-block is sugar cane:
break block above event-block
if block 2 above event-block is sugar cane:
break block 2 above event-block
if block 3 above event-block is sugar cane:
break block 3 above event-block
if block 4 above event-block is sugar cane:
break block 4 above event-block
if block 5 above event-block is sugar cane:
break block 5 above event-block
if block 6 above event-block is sugar cane:
break block 6 above event-block
wait 20 seconds
set block above event-block to sugar cane
set block 2 above event-block to sugar cane
set block 3 above event-block to sugar cane
set block 4 above event-block to sugar cane
set block 5 above event-block to sugar cane
set block 6 above event-block to sugar cane
else:
wait 20 seconds
set block above event-block to sugar cane
set block 2 above event-block to sugar cane
set block 3 above event-block to sugar cane
set block 4 above event-block to sugar cane
set block 5 above event-block to sugar cane
else:
wait 20 seconds
set block above event-block to sugar cane
set block 2 above event-block to sugar cane
set block 3 above event-block to sugar cane
set block 4 above event-block to sugar cane
else:
wait 20 seconds
set block above event-block to sugar cane
set block 2 above event-block to sugar cane
set block 3 above event-block to sugar cane
else:
wait 20 seconds
set block above event-block to sugar cane
set block 2 above event-block to sugar cane
else:
wait 20 seconds
set block above event-block to sugar cane