-
-
Notifications
You must be signed in to change notification settings - Fork 358
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
Conditions for items in player's inventory with a weird behavior #6183
Comments
Have you tried seeing if this was an issue in 2.7.2 as well? |
Yes, i just tried now, Same issue on 2.7.2 |
@APickledWalrus WANTED! 😬 |
Honestly if pickle does take this up, I suggest looking into a better item comparison as a whole. There's too many quirks with it and the usage of |
The problem occurs with...almost every conditions you are looking for. All of thoses conditions have the same problem
None of thoses conditions are considered from skript if the item you are looking for is generated with another plugin, even if the condition is okay. PS: Thanks for your answer. |
Your other idea of using a loop is the current correct solution, you were just using the wrong expressions:
|
Skript/Server Version
Bug Description
When you try to find certains items into the player's inventory (With certains conditions) the items that matches the conditions from other plugins aren't considered, even if the conditions are ok.
Every conditions does not work for this one, none.
If you try a:
Then it does not count all the diamonds with the right CustomModelData in players inventory, it count only thoses that skript want to count.
Skript do not recognize every items that you are looking for.
Same for every conditions (name, lore, enchants...)
Some items (Usually generated from other plugins) are just totally ignored by skript.
Expected Behavior
If you try a:
Then ALL the diamonds with custom model data 6589 in player's inventory should have been added to {_inventory.%player%}
Not only the one that skript ... want to consider
Steps to Reproduce
Create thoses commands into a skript:
Step 1:
I've generated a diamond with the plugin MMOItems, with CustomModelData 6589.
Step 2:
I've generated a diamond with the first command (/gmdata).
It gives me a diamond with CustomModelData 6589.
Step 3:
I use the command /mdata on both.
It displays me "6589" for each diamond (So the CustomModelData is well recognized)
Image:
Step 4:
I use the command /nbt on both.
It displays me the NBT of both items, and the "CustomModelData" is well defined as 6589 into NBT of BOTH diamonds.
Image:
Step 5:
I use the command /nmdata
It display "1" even if i have 2 diamonds with custom model data 6589 in my inventory. (It count only the one generated by the command "/gmdata")
I can generate more diamonds with the command, it count every diamonds like that in my inventory, no problem, however, every other diamond generated with another plugin, is ignored.
Image:
Errors or Screenshots
No errors.
Other
I'm trying to make a command that give to the player an item, based on if he have the right amount of the right items in his inventory.
How is it supposed to work if there was not this bug?:
Like that:
I've tried everything to make it works. Impossible.
I don't have found a way.... IN 2+ WEEKS OF TESTS!
I also have asked for help in many forums, no one have a solution.
Someone told me to use loops... yeah, i did it.
I'm still blocked, 'cause i can't remove the right amount of the right items into the player's inventory.
A loop like that does not work:
I don't see any solutions.
Have a nice day! =)
Agreement
The text was updated successfully, but these errors were encountered: