
StrippableBlocksAPI
The StrippableBlocksAPI is a simple, easy-to-use API that allows mod developers to add strippable wood blocks that do not have the axis
property, such as custom log variants or new block types. Designed as an extension to Minecraft's existing StrippableBlockRegistry, this API allows for enhanced flexibility and mod compatibility when adding support for strippable blocks.
Key Features:
- Custom Strippable Logs: Add logs that can be stripped, even if they don't have the
axis
property (like custom wood blocks or new block types). - Simple Integration: The API is designed to integrate smoothly into existing mod setups, with easy-to-use methods for registering and fetching strippable blocks.
- Minimal Dependencies: This API is lightweight and only depends on Fabric API, making it easy to incorporate into any Fabric-based mod project.
- Flexible Usage: Works alongside Minecraft's StrippableBlockRegistry while enabling modders to register custom strippable logs with a simplified interface.
How It Works:
- Register your custom log blocks as strippable with just a few lines of code using
StrippableCustomRegistry.register()
. - Get the stripped result of any registered block using
StrippableCustomRegistry.getStrippedResult()
.
The StrippableBlocksAPI is ideal for modders who want to offer their players more customization options with minimal setup and effort.