Discord Thread plant growth state problem

  • Welcome to skUnity!

    Welcome to skUnity! This is a forum where members of the Skript community can communicate and interact. Skript Resource Creators can post their Resources for all to see and use.

    If you haven't done so already, feel free to join our official Discord server to expand your level of interaction with the community!

    Now, what are you waiting for? Join the community now!

This thread came from the skUnity Discord. You can't reply to it here but if you join the skUnity Discord, you'll be able to post a reply there. The thread link is part of the thread's message.
Status
Not open for further replies.

skUnity Discord

Site Manager
Aug 5, 2023
12,749
1
0
The skUnity Discord
discord.gg
`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
 
Ok, so I've changed it to "if event-block is carrots[stage=8]" it was throwing the same error.

I tested some things and checking age of the block works.

"if event-block is carrot plant:
if age of event-block is 7:"

Problem is solved, thanks TobyMinceraft for the help ?

Posted by: lufka from the skUnity Discord.
 
Status
Not open for further replies.