跳到正文

StrippableBlocks API

API that allows you to registers strippable blocks that do not have an axis property, bypassing Fabric API's requirements.

收藏

介绍

中文介绍正在准备中,下面暂时显示原文。

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.

 

For documentation and a short usage tutorial, feel free to refer to the wiki.

常见问题

StrippableBlocks API 支持哪些 Minecraft 版本?

StrippableBlocks API 支持 Minecraft Java 版 1.21–1.21.11,共 10 个版本,可用的加载器:Fabric。下载时注意选择和你游戏版本一致的文件。

StrippableBlocks API 怎么安装?

先用 PCL2 或 HMCL 启动器安装对应版本的 Fabric,再把下载的 .jar 文件放进游戏目录的 mods 文件夹,重新启动游戏即可。开启了版本隔离的,mods 文件夹在 versions/版本名 下面。

评论

登录后评论和评分

WhiteTowerGames 的其他作品

查看全部 →