API to check if a material is disabled #10566
Replies: 4 comments
-
Are you sure worlds can have their own datapacks? their is only one |
Beta Was this translation helpful? Give feedback.
-
yeah, even tho feature flags are stored per ServerLevel, the main |
Beta Was this translation helpful? Give feedback.
-
Generally, I think this kind of API is needed not only for Materials, but for other content as well |
Beta Was this translation helpful? Give feedback.
-
Implemented in 925c3b9 |
Beta Was this translation helpful? Give feedback.
-
Is your feature request related to a problem?
Minecraft 1.19.3 added Feature Flag system, which allows some items to be disabled. I think there should be a way for server plugins to check if a material is disabled.
Describe the solution you'd like.
An API to check if a bukkit Material is disabled or not in the specified world would be helpful. It needs a world since worlds can have different datapacks.
Describe alternatives you've considered.
I'm currently using NMS codes to find out if a block is disabled or not (
net.minecraft.world.level.block.Block#isEnabled
)Other
No response
Beta Was this translation helpful? Give feedback.
All reactions