-
-
Notifications
You must be signed in to change notification settings - Fork 369
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Directional block comparison is broken on 1.12 #2711
Comments
I tried this exact line of code, and it works with no issues. I gave myself a head of myself, and that condition returns true.
|
I may have expressed myself badly but I was not talking about the work of the developers (which I respect a lot), but the name of the items which seems very strange and bizarre to me. Sorry for the misunderstanding. I'll make some more tests to verify the comparaison of the player head. |
FYI, the comparison issues are mostly specific to 1.12 and older Minecraft versions. While Minecraft 1.12 does use block states, Spigot API got good support for them only in 1.13. @antoinech2 If you can update to Minecraft 1.14 or 1.15, I would recommend that. Comparison issues might not ever be fully solved on 1.12. |
This might work better now with #3419 |
Description
A lot of item name do not seem to work and comparison is very hard to do.
Steps to Reproduce
Player head in hand:
send "%tool of player%"
Output: "south facing ender dragon head"
dirch door in hand:
send "%tool of player%"
Output: "right-hinged closed top birch wood door"
Moreover, comparaison are destroyed. You have to compare with the EXACT item name
Ex:
if tool of player is head or player head
doesn't workAlso, it's impossible to compare a type of door, or all types of door
if targeted block of player is door, any door, any wood door, birch door, closed birch door
None of them works!Server Information
Additional Context
It very complicated to compare items, and it destroys a lot of my skripts. Please help ;)
The text was updated successfully, but these errors were encountered: