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.
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 1Example:
/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.
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 ticksExample 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.
Сonfig and currently includes:
defaultTimer — default regeneration time in ticksdefaultBlock — fallback block used when no target block is provided