Data Pack Tags for Rules
Use these tags to extend which blocks or items a Carpet rule recognizes. Add the tag files to a data pack on the server or in the single-player world.
Add a block to a rule
This example lets packed ice act as a catalyst for renewableBlackstone alongside the built-in blue ice. Create a carpet-example folder in the world's datapacks/ directory with the following two files.
{
"pack": {
"description": "Extra Carpet rule tags",
"min_format": [101, 1],
"max_format": [101, 1]
}
}
{
"replace": false,
"values": [
"minecraft:packed_ice"
]
}
- Run
/reloadand use/datapack list enabledto confirm the pack is enabled. If the pack is listed as available, enable it with/datapack enable "file/carpet-example". - Run
/carpet renewableBlackstone true. Place lava next to or below packed ice to generate blackstone.
Use data/carpet/tags/block/ for block tags and data/carpet/tags/item/ for item tags. Set "replace": false to retain entries from Carpet and lower-priority data packs. Each values entry can be a registry ID or another tag ID prefixed by #. For a block from an optional mod, use an entry such as {"id":"example:frosted_stone","required":false}. Changes to an enabled pack take effect after a successful /reload.
Supported tags
All entries below are block tags except #carpet:cactus_rotators, which is an item tag.
| Rule | Tag | Default and requirements |
|---|---|---|
renewableBlackstone | #carpet:renewable_blackstone_catalysts | Blue ice. Catalyst blocks are checked above and to the sides of the lava. |
liquidDamageDisabled | #carpet:liquid_damage_disabled_replaceable | Water and lava blocks. Fluids can also occupy air. Other fluid flow checks still apply. |
updateSuppressionBlock | #carpet:update_suppression_rails | Activator rail. The tagged block goes above a barrier and needs the standard boolean powered property. |
chainStone | #carpet:chain_stone_blocks | Includes #minecraft:chains. Tagged blocks need the standard axis property. Subclasses of the vanilla chain block are also recognized. |
chainStone | #carpet:chain_stone_connectors | End rod. A connector with the standard facing or axis property can attach at a chain end when the axes align. |
movableBlockEntities | #carpet:immovable_block_entities | Excludes ender chests, enchanting tables, end gateways, end portals, moving piston blocks, spawners, sculk sensors, and calibrated sculk sensors. Moving piston blocks remain immovable even if removed from the tag. |
movableBlockEntities | #carpet:movable_block_entity_push_overrides | Grindstone. Uses the normal push reaction for its members. The exclusion tag takes priority. |
movableAmethyst | #carpet:movable_amethyst | Budding amethyst. A member gets the normal push reaction and its own item can drop when mined with a Silk Touch pickaxe. If the block already drops its item, Carpet leaves the drop count alone. Subclasses of budding amethyst are also recognized. |
flippinCactus, rotatorBlock | #carpet:cactus_rotators | Cactus item. Added items can be used by players or dispensers for rotation when the corresponding rule is enabled. |
flippinCactus, rotatorBlock | #carpet:rotator_hoppers | Hopper. Added blocks need the hopper's facing property. They can rotate horizontally when they face sideways. |
hopperCounters, carpets | #carpet:hopper_counter/<color> | The corresponding wool block. Add each block to one color tag, such as #carpet:hopper_counter/light_blue. The aggregate #carpet:hopper_counter_blocks already includes all 16 color tags. |
structureBlockIgnored | #carpet:structure_block_ignored | Structure void. The rule uses this tag by default and skips its blocks when saving a structure. |
Ignore a specific tag when saving structures
Use /carpet structureBlockIgnored #minecraft:wool to omit all blocks in the wool tag when saving. To select a single block, use an ID such as /carpet structureBlockIgnored minecraft:stone. Existing values that use a single block ID remain valid. To extend the default set, add entries to data/carpet/tags/block/structure_block_ignored.json and use the default rule value #carpet:structure_block_ignored.