-
-
Notifications
You must be signed in to change notification settings - Fork 798
Added a way for "geyser_custom" blocks to be recognized by the reader. #5300
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
Conversation
|
+1, I would really like this to be implemented as well |
|
Any news on this being merged maybe? |
|
I'm unsure whether this is, right now, a good API addition. Few issues:
In short - we're open to add features and are thankful for PRs. However, we'll need more details on what this enables doing that's not possible without it, so we can properly account for it when reviewing / when refactoring code in the future / when considering API design in a potential V2 :) (final note - what's that collision check for? Does that issue still occur with the latest version of Geyser that registers collisions for custom blocks?) |
|
Hi, I'll respond to your points:
|
|
This doesn't actually answer why you'd want to register a block with the same exact namespace as the item. We document all mapping features on our wiki (not asking for a wiki PR, just for a PR description here that would give us more info so we can document it). This documentation is done so everyone using the mappings can know about all known functionality that can be used. Further, that ensures that users don't need to be able to read code to see how to utilise something properly. As for the NPE, please re-test whether this occurs on the latest version of Geyser. |
|
Someone added documentation and the NPE did still occur without that null check. Is this to your liking or do we need to make a few changes? |
|
After internal discussion, we've decided to not merge this PR in it's current state, and close it. Currently, the Geyser custom block API isn't designed to register blocks "just" for the item, and not actual blocks that can be placed. If we add that feature, it'll be documented properly instead of the workaround proposed here. We're aware that it's already possible to this something similar to this via Extensions - but similarly as to non-vanilla items/blocks, some functionality won't be added to json mappings. Either due to complexity, undocumented behaviour, or to avoid user confusion. Further:
Further, the PR description doesn't state what it's actually proposing to implement. This makes it impossible to review (without further context), as we aren't able to tell easily what the goal/expected behaviour is. As with every larger codebase, it's vital to be able to track who added which changes for which reason. Thank you anyways! |
Title says it all.