Compatibility
Minecraft: Java Edition
Platforms
Supported environments
75% of ad revenue goes to creators
Support creators and Modrinth ad-free with Modrinth+Creators
Details
Underlay is a Minecraft mod that lets you place carpets (and more) under any block with space beneath it (e.g. chests, beds, signs, torches, etc.)!
Just right click a block face with a block to place it, (for example, under an upside-down stair), and you're done! Right click again with another item to replace it quickly, or Shift + right click with an empty hand to remove it. Works in Survival too!
By default, you can place the following blocks as overlays: carpets, trapdoors, buttons, rails, slabs and pressure plates. To expand this to other blocks, see "For Developers - Through Datapacks" (for players).
How does this work?
Underlay adds these things called "overlays" but they're really more like underlays xd, essentially they are fake versions of the item you place - which lets you place two things in the same block space!
For Developers
This mod adds an API that lets you mark your blocks as "yes you can behave like this too", either in code or via datapacks.
In Code
- Just add my mod as a dependency, either from JitPack or Modrinth's maven, import
com.dooji.underlay.UnderlayApi
, and register the blocks you want to be able to placed under stairs/doors etc. withregisterOverlayBlock
. - You can also just add the
underlay:overlay
tag to the blocks you want to have this behavior instead of the method above.
Through Datapacks
- This was mostly added for players too! Create
data/underlay/tags/blocks/overlay.json
in your datapack, then list the blocks you want, such as:
{
"replace": false,
"values": [
"minecraft:stone",
"minecraft:oak_planks",
"mymod:shiny_block"
]
}