Skip to content

Conversation

@LIUKRAST
Copy link

@LIUKRAST LIUKRAST commented Dec 14, 2025

Capabilities

Since 20.3 neoforge capabilities are not anymore block-entity related, but can be also queried on normal blocks. I know it's a very advanced topic and won't affect 90% of mods because almost every fluid/item providing block is always attached with a block entity, but I was working on a create addon when encountered this issue, so I was hoping to solve this without several bad-looking mixins in my mod.

Goggle information

The second idea is to allow blocks to extend IHaveGoggleInformation. This allows to remove the special case for piston extension poles which are hard coded and allow any developer to implement the interface on blocks, rather than requiring a block entity. A new method has been added to the IHaveGoggleInformation interface to pass world data (block state, block position and level) when creating the goggle tooltip

Thanks for reading, have a nice day ;)

@LIUKRAST LIUKRAST changed the title Removed several block entity checks on capabilities Capabilities and goggle information expanded to blocks Dec 14, 2025
@VoidLeech VoidLeech added the pr type: feature PR adds a new feature or changes an existing feature label Jan 6, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

pr type: feature PR adds a new feature or changes an existing feature

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants