Carpets Core
by ludwici
Carpets Core is a library for building multifaced carpet blocks that can sit on the ground, a wall or a ceiling, and it is used by Carpet Variants.
What it does
The library supplies a base class for multipart blocks that attach to the ground, a wall or a ceiling. Mod authors can place such flat blocks with it instead of writing their own multipart logic. It also includes logic that replaces an existing block with a multipart block in the world.
Data generation helpers are included for models, blockstates and loot tables, so the matching resources for these blocks can be produced without writing each file by hand. Carpets Core runs on client and server and is published for Fabric, Forge, NeoForge and Quilt across nine release versions, 1.20.1 – 1.21.7, under the MIT License. The code is open source, and Carpet Variants requires it.
Key features
Multifaced carpet base class
A base class lets a carpet-like block occupy several faces of a surface, placed on the ground, a wall or a ceiling.
Block replacement logic
Existing blocks can be swapped for a multipart block in the world through logic the library provides.
Data generation helpers
Helpers produce models, blockstates and loot tables for multipart blocks during datagen.
Cross-loader support
The library targets Fabric, Forge, NeoForge and Quilt, so one codebase can serve several loaders.
Compatibility
Latest build for each game version and loader.
1.21.x6 of 6 versions with builds
1.20.x3 of 3 versions with builds
Only full game releases are shown. This mod publishes no snapshot builds.
Required by 1 mod
Use cases
Who it’s for: Mod authors who want to add flat multipart decorations such as carpets to their own projects, and players who install Carpet Variants.
Questions
Does Carpet Variants need Carpets Core?
Must Carpets Core be installed on both sides?
Which game versions does Carpets Core cover?
In the catalog
Carpets Core is one of 3,514 Library mods on ModsFinder, and one of 2,348 Library mods for Fabric. 13,697 mods support Minecraft 1.21.7.
More from ludwici
Similar mods
What the author says
Simple lib for creating multifaced carpets. Features: - contains a base class for a multipart block that can be placed on the ground/wall/ceiling; - implemented logic for replacing a block with a multipart block; - datagen helpers for models/blockstates/loot table; - neoforge/fabric support.
Official listing
- Modrinth page
- modrinth.com/mod/carpets-core
- Owner
- ludwici
- Published
- 2024-11-15
- Updated on Modrinth
- 2025-06-30
- Facts verified
- 2026-10-15
