-
Notifications
You must be signed in to change notification settings - Fork 381
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
Using the new inventory handling feature #752
Comments
Right, the inventoryhandling is just something i've started however I reached a barrier with an issue with readNextNbtData not working properly for it thus I'm waiting on if someone can possibly fix it or I somehow find a way to do it. |
Do you have any sample of problematic NBT? |
If you enable the feature and just login to a server maybe do /ah or something or it should even work when you just login with items. I have used the fNBT library to fix it by making it read all the bytes in the cache and then check the size to remove the amount which worked fine but isn't the most efficient way. |
Okay. I'll have a look at this. Maybe putting a book or enchanted item in inventory will trigger the issue. |
You might not have to! Looks like it was something else causing the issue. Will be committing soon also was able to handle clientside closewindow |
Well, I was expecting the ReadNextNbt() utility to contain bugs as it pretty new, and been tested with 1.14 terrain heightmaps only so it may not work with some other NBT fields 😄 |
Hi I am new to this so I might be wrong, but was messing around with the inventory handler stuff, and I think I found the problem with reading NBTs |
Any updates on this? Can we access the inventory through the client? |
Don't have time to work on new features myself, so it entierely depends on contributions. Currently, this has not reached a usable state. Only some data structures are present. |
ReadNextNBT() now returns an empty dictionary if the NBT tag is 0x00 As per https://wiki.vg/Slot_Data 0x00 being a placeholder for "no NBT"
@xPenguinx Hi, for your information a fix for issue #883 seems to match the issue you encountered here, with inventory handling. As per https://wiki.vg/Slot_Data the NBT tag may be replaced by |
Inventories are now handled in the newest development build. |
Hi,
I noticed one of the recently closed pull requests implemented inventory handling and I'm excited to write some scripts that make use of it! However, I'm not sure which API documentation is relevant to it. How would I make use of the new
inventoryhandling=true
feature?Thanks.
The text was updated successfully, but these errors were encountered: