Skip to content
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

Slots with special properties #100

Open
kaduvert opened this issue Jul 29, 2023 · 1 comment
Open

Slots with special properties #100

kaduvert opened this issue Jul 29, 2023 · 1 comment

Comments

@kaduvert
Copy link
Contributor

windows currently don't implement special handling for certain slots, leading to desynchronization if used with a minecraft-client (like mineflayer)

one example of a special slot is in the enchantment table:
enchanting window

while it's pretty obvious that the slot in the enchantment table takes only lapis lazuli, other slots, like the armor slots in your inventory take multiple different items, which also change with minecraft-versions.
the slot in the beacon, for example, can only hold certain item types and of those it can only hold a stack of size 1

the key to being able to reliably implement this is some kind of version-accurate data, specifying the behaviour of the individual slots (what items they take, how many, etc..)

@Gjum
Copy link
Member

Gjum commented Aug 6, 2023

There is also a difference between being able to shift-click items into a window slot, or being able to pick up and drop them into the slot; for example, the top slot of a furnace allows dropping deepslate into it, while being unable to shift-click it into that slot.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants