`on break:
if event-block is fully grown carrot plant:
send "%event-block%" to player
set {_drops::*} to drops of event-block
chance of 100%:
remove 1 carrot from {_drops::*}
set event-block to freshly planted carrot plant
show 5 explosion with offset of 0, 0, 0 and speed 1 at event-block`
The problem is that when I'm breaking a freshly planted carrot, it acts like I'm breaking fully grown one, same with other stages of carrot growth
I also tested "event-block is stage 8 carrot plant" and "event-block is ripe carrot plant" but it doesn't work either
Skript ver. 2.7.0-beta2
Server ver. paper-1.19.4-540
Posted by: lufka from the skUnity Discord. View the thread on skUnity Discord here
if event-block is fully grown carrot plant:
send "%event-block%" to player
set {_drops::*} to drops of event-block
chance of 100%:
remove 1 carrot from {_drops::*}
set event-block to freshly planted carrot plant
show 5 explosion with offset of 0, 0, 0 and speed 1 at event-block`
The problem is that when I'm breaking a freshly planted carrot, it acts like I'm breaking fully grown one, same with other stages of carrot growth
I also tested "event-block is stage 8 carrot plant" and "event-block is ripe carrot plant" but it doesn't work either
Skript ver. 2.7.0-beta2
Server ver. paper-1.19.4-540
Posted by: lufka from the skUnity Discord. View the thread on skUnity Discord here