Customization

Adding Slab Compatibility

KleeSlabs detects supported slabs through block tags. If a modded slab is not handled automatically, add the slab block to the appropriate tag with a datapack.

For regular horizontal slabs, add the block to the kleeslabs:slabs block tag. KleeSlabs includes #minecraft:slabs in this tag by default, so most vanilla-style slabs already work as long as they are tagged correctly.

data/kleeslabs/tags/block/slabs.json
{
  "values": [
    "modid:example_slab"
  ]
}

The block must use Minecraft's standard slab state property, including the double slab type, for regular slab support to work.

Vertical Slabs

Vertical slabs need a converter that understands the mod's block state format. KleeSlabs currently includes built-in compatibility tags for supported vertical slab implementations:

TagUse for
kleeslabs:vertical_slabs/quarkQuark vertical slabs
kleeslabs:vertical_slabs/enchanted_vertical_slabsEnchanted Vertical Slabs
kleeslabs:vertical_slabs/nemos_vertical_slabsNemo's Vertical Slabs

Add your block to the matching tag for the vertical slab mod it comes from:

data/kleeslabs/tags/block/vertical_slabs/quark.json
{
  "values": [
    "modid:example_vertical_slab"
  ]
}

Only use one of these vertical slab tags when the block uses that mod's vertical slab block state format. Blocks with a different format need code support through KleeSlabs' API; it's best to report them on the GitHub tracker.

Finding Missing Slabs

You can enable the dumpSlabs config option to have KleeSlabs log registered blocks whose IDs look like slabs when a world loads. This is useful for finding block IDs to add to a datapack tag.