Skip to content

Add feature flag support to blocks and items#94

Merged
noeppi-noeppi merged 1 commit into1.21from
feature/is-enabled-for-additional-registrations
Jan 11, 2026
Merged

Add feature flag support to blocks and items#94
noeppi-noeppi merged 1 commit into1.21from
feature/is-enabled-for-additional-registrations

Conversation

@MelanX
Copy link
Copy Markdown
Member

@MelanX MelanX commented Dec 24, 2025

This PR redirects the FeatureElement#isEnabled state from parent items to their children, e.g. the BlockBase and their automatically added item will both be disabled instead of just the block.
For the FluidBase, we only can disable the fluids block and the bucket item. To be able to edit the config in-game, we need to use a Supplier<Boolean> in the FluidBase.Builder.

@MelanX MelanX requested a review from noeppi-noeppi December 24, 2025 15:49
@noeppi-noeppi noeppi-noeppi merged commit 6385053 into 1.21 Jan 11, 2026
1 check passed
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

Successfully merging this pull request may close these issues.

2 participants