再生方块
Regenerating Blocks 是一款支持 Fabric 和 Forge 跨加载器的 Minecraft 模组,它添加了一种特殊的方块,该方块在延迟一段时间后会再生为另一种方块。
功能
- 一种可配置以恢复为目标方块的再生方块
- 基于计时器的再生机制
- 方块/物品工具提示信息
- 支持通过命令设置再生方块
- 集成 Jade API 以在可用时提供额外的方块信息
命令
该模组添加了一个用于创建正确配置的再生方块物品的命令:
/regeneratingblocks <target> <block> <timer>
<target> — 接收该物品的一个或多个玩家
<block> — 此再生方块将恢复成的目标方块
<timer> — 再生时间(以刻为单位),最小值为 1
示例:
/regeneratingblocks @p minecraft:diamond_ore 1200
这将为选中的玩家提供一个已正确设置 TargetBlock 和 Timer NBT 值的再生方块物品。
通过标签实现全局再生方块
你也可以通过将任意方块添加到路径以 regenerating/ 开头的方块标签中,使其成为全局再生方块。
模组读取的标签格式如下:
data/regeneratingblocks/tags/blocks/regenerating/<timer>.json
其中:
regeneratingblocks 是模组的命名空间
<timer> 是以刻为单位的再生时间
- JSON 文件包含应使用该计时器的方块列表
示例文件:data/regeneratingblocks/tags/blocks/regenerating/1200.json
{
"replace": false,
"values": [
"minecraft:diamond_ore",
"minecraft:deepslate_diamond_ore"
]
}
任何包含在该标签中的方块在被破坏时都将被视为具有 1200 刻延迟的再生方块。
配置
配置文件目前包括以下选项:
defaultTimer — 默认再生时间(以刻为单位)
defaultBlock — 未提供目标方块时使用的后备方块
Regenerating Blocks
Regenerating Blocks is a cross-loader Minecraft mod for Fabric and Forge that adds a special block which can regenerate into another block after a delay.
Features
- A regenerating block that can be configured to restore a target block
- Timer-based regeneration
- Block/item tooltip information
- Command support for setting up regenerating blocks
- Jade integration for extra block info where available
Commands
The mod adds a command for creating a correctly configured regenerating block item:
/regeneratingblocks <target> <block> <timer>
<target> — one or more players who should receive the item
<block> — the block that this regenerating block will restore
<timer> — regeneration time in ticks, minimum 1
Example:
/regeneratingblocks @p minecraft:diamond_ore 1200
This gives the selected player a regenerating block item with the correct TargetBlock and Timer NBT values already set.
Global regenerating blocks via tags
You can also make any block a globally regenerating block by adding it to a block tag whose path starts with regenerating/.
The mod reads tags in the following format:
data/regeneratingblocks/tags/blocks/regenerating/<timer>.json
Where:
regeneratingblocks is the mod namespace
<timer> is the regeneration time in ticks
- the JSON file contains the blocks that should use that timer
Example file: data/regeneratingblocks/tags/blocks/regenerating/1200.json
{
"replace": false,
"values": [
"minecraft:diamond_ore",
"minecraft:deepslate_diamond_ore"
]
}
Any block included in that tag will be treated as a regenerating block with a 1200 tick delay when broken.
Configuration
Сonfig and currently includes:
defaultTimer — default regeneration time in ticks
defaultBlock — fallback block used when no target block is provided
评论 0
登录后参与评分
还没有评论,来抢沙发吧