Jump to content

Skript can't see difference between wheat stages


Recommended Posts

on mine:
	if event-block is ripe wheat plant:
		send "ripe wheat plant" to player

if i use this code, and break a freshly planted wheat plant, it will also send the message. It will send the message as long as the it's a wheat plant.

On the server where i coded it i had extra addons. But after testing on a fresh server with only skript installed i still got the issue..

                                                                        Skærmbillede 2024-02-11 151140.png

Link to comment
Share on other sites

I had posted a bug report on skripts github page.
Other people had already found the bug, it just didn't want to show up when i searched for it ._.

anyway
as i had suspected you can just use the block id (each stage of a growing plant has an id)
 

wheat plant[age=7]

 

the different plants have different max ages:

https://minecraft.fandom.com/wiki/Java_Edition_data_values

 

the bug report on skript was anoying cuz it didn't show exactly how to type it out, it only said:

wheat[age=7]

after putting my 2 brain cells together i put plant afterwards and it worked 🙂


here is the bug report on github:
https://github.com/SkriptLang/Skript/issues/4582

                                                                        Skærmbillede 2024-02-11 151140.png

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...