-
-
Notifications
You must be signed in to change notification settings - Fork 223
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
Propose interaction shapes data #832
Conversation
About the format. Item can be either:
The only known block that needs special shape calculation at runtime is |
|
yes, that's what I'm saying, I don't have a way to automatically extract it from any version. That included manual work, that's why I can propose data for the latest version only. I'm personally using it with any version with the block renames data without any problems so far. btw Im just curious do any of these block shapes change over versions?
this file is missing redstone wire for example since this includes collision shapes only, not cursor interaction. I'm pretty sure we can make the format compatible here if make it per version. On the other hand the collision block data format would be much easier to understand if it used the same per-state object format that is used in blockStates.json in mc assets e.g. key with properties - data (instead of an array of variation). Anyway, I can't make it compatible if this is the only requirement for now because of this. I'm not doing the tool to make this file, that's what I have for now.. @wgaylord Also I believe we have discussed this as well, but I don't remember what you said about per-version extraction |
Hi, creator of |
I could guess the reason of the format, that's what I was saying - I dont think we need that format anymore. Also I wasn't saying that we don't need this data to be defined per version here, I'm just really curious wether this data was changed between version, and as I remember fence always had the same interaction shape. And also I think that properties format still can work for pre-flattening versions in the same way as block states json from mc assets work for < 1.13 Anyway, thanks for your response here |
New blocks have new properties so clearly it would change per version yes
…On Tue, Jan 16, 2024, 4:56 PM Vitaly ***@***.***> wrote:
I could guess the reason of the format, that's what I was saying - I dont
think we need that format anymore. Also I wasn't saying that we don't need
this data to be defined per version here, I'm just really curious wether
this data was changed between version, and as I remember fence always had
the same interaction shape.
And also I think that properties format still can work for pre-flattening
versions in the same way as block states json from mc assets work for < 1.13
—
Reply to this email directly, view it on GitHub
<#832 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAR437X64WRPKSTDGY2HYD3YO2PKNAVCNFSM6AAAAABBT7D5QGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQOJUGAZTANZTHE>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
Stale, re open if you want to finish it |
similar to #829 want to propose having interaction shapes which is essential for p web client and bot.cursorAtBlock to work correctly. As far as I remember its currently not possible to detect/break blocks like redstone wires with mineflayer.
I extracted interaction shapes of all interested blocks (with a few per-class manual fixes). It was much harder to extract using text manipulation since all blocks set these shapes differently and some like redstone calculate them at class initialization, I'm pretty sure it would be much easier to extract using them using other extractors, but I can't investigate it, sorry.