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

Complete the data of windows.json #44

Open
rom1504 opened this issue Aug 25, 2015 · 12 comments
Open

Complete the data of windows.json #44

rom1504 opened this issue Aug 25, 2015 · 12 comments
Labels

Comments

@rom1504
Copy link
Member

rom1504 commented Aug 25, 2015

see #37

and #41

@rom1504
Copy link
Member Author

rom1504 commented Aug 25, 2015

Once the windows file is more complete, add a line in the extractors table in the readme

@Gjum
Copy link
Member

Gjum commented Aug 26, 2015

Missing data:

  • beacon properties
  • anvil, horse, and villager slots (done in More window slots #62)
  • persistence flag
  • most openedWith info
  • accepted item(type)s for each slot (range) (think: crafting result, enchanting with lapis)
  • buttons?

maybe also do:

@Gjum
Copy link
Member

Gjum commented Aug 26, 2015

I think we don't really need the buttons of a window.

I decided to remove them in my PR.

@rom1504
Copy link
Member Author

rom1504 commented Aug 26, 2015

Well maybe that means you can't automatically use the button data, but that doesn't mean that it isn't useful.

@Gjum
Copy link
Member

Gjum commented Aug 26, 2015

Its main use would be what packet you can send to simulate a button press. This however should not be modeled by a simple string.

The button-related info is also not very uniform. Something like in protocol.json would be needed, but I'm not sure if I like this option.

If you have a good idea how to properly format that data, I'm ok with putting it in.

@Gjum
Copy link
Member

Gjum commented Aug 26, 2015

Sidenote: we could also look at other servers and see what window related data they use.
For example Cuberite: http://api-docs.cuberite.org/cWindow.html and http://api-docs.cuberite.org/cInventory.html

@Gjum
Copy link
Member

Gjum commented Aug 30, 2015

@fenhl added openedWith info to http://wiki.vg/index.php?title=Inventory
Diff: http://wiki.vg/index.php?title=Inventory&diff=6832&oldid=6828

EDIT: and also removed the ids :P
EDIT 2: and fixed it again.

@rom1504
Copy link
Member Author

rom1504 commented Aug 30, 2015

ah indeed, nice

@rom1504
Copy link
Member Author

rom1504 commented Sep 5, 2015

windows.json added in readme

@Gjum
Copy link
Member

Gjum commented May 7, 2016

Since 1.9, the persistent 3*9 slots and the hotbar are no longer at the end.
This means that the schema needs to be changed to always include the position of the persistent slots and hotbar.

@Gjum
Copy link
Member

Gjum commented Jun 20, 2016

always include the position of the persistent slots and hotbar.

We could make that implicit: if it's not given, calculate maximum slot index and put inventory+hotbar after it; if it's given, use those indices.

I will implement it this way for SpockBot and see how it works out.

Edit: done

@kaduvert
Copy link
Contributor

kaduvert commented Aug 6, 2023

  • accepted item(type)s for each slot (range) (think: crafting result, enchanting with lapis)

this would be very helpful for PrismarineJS/prismarine-windows#100

what's the state of this?

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

No branches or pull requests

3 participants