What are you searching for?

Underlay
Underlay

Underlay

Place carpets (and more) under anything!

download 351.8K Downloads · favorite 310 Followers · Updated 1 month ago
Decoration Fabric Forge Game-mechanics Neoforge Utility 1.12.2 1.20 1.20.1 1.21 1.21.1 +10 more

Versions

inventory_2
[1.21.11] Underlay v0.9.9

0.9.9 · 1 month ago · 261.31 KB

Release download
Fabric 1.21.11
inventory_2
[1.21.9] Underlay v0.9.9

0.9.9 · 1 month ago · 263.25 KB

Release download
Fabric 1.21.9 1.21.10
inventory_2
[1.21.6] Underlay v0.9.9

0.9.9 · 1 month ago · 261.97 KB

Release download
Fabric 1.21.6 1.21.7 1.21.8
inventory_2
[1.21.5] Underlay v0.9.9

0.9.9 · 1 month ago · 260.81 KB

Release download
Fabric 1.21.5
inventory_2
[1.21.2] Underlay v0.9.9

0.9.9 · 1 month ago · 258.63 KB

Release download
Fabric 1.21.2 1.21.3 1.21.4

Gallery

About

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 left click it to remove it. Works in Survival too!

You can make any other block work as an overlay too, keep reading!

Preview

By default, you can place the following blocks as overlays: carpets, trapdoors, buttons, rails, slabs and pressure plates. To expand this to other blocks, such as grass, see "For Developers - Through Datapacks" (for players).

Join the Discord server for sneak peeks on upcoming updates!

Join now!


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. with registerOverlayBlock.
  • 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 (for players too!)

  • Read this to know how datapacks work first: https://minecraft.wiki/w/Tutorial:Creating_a_data_pack
  • On 1.20.1 create data/underlay/tags/blocks/overlay.json in your datapack, on 1.21 and above create data/underlay/tags/block/overlay.json, then list the blocks you want, such as:
{
  "replace": false,
  "values": [
    "minecraft:short_grass",
    "minecraft:oak_planks",
    "mymod:shiny_block"
  ]
}
  • If you want to exclude a block from being able to be placed as an overlay, on 1.20.1 create data/underlay/tags/blocks/exclude.json in your datapack, on 1.21 and above create data/underlay/tags/block/exclude.json, then list the blocks you want to be omitted, such as:
{
  "replace": false,
  "values": [
    "minecraft:oak_button",
    "minecraft:rail"
  ]
}
open_in_new View on Modrinth
Compatibility
Client: Required Server: Required
gavel GPL-3.0-only

Conversation

What are your thoughts?

Related projects

Decoration Optimization
Iris Shaders
Iris Shaders

by coderbot

A modern shader pack loader for Minecraft intended to be compatible with existing OptiFine shader packs

download 90.8M
favorite 23,800
Optimization Utility
FerriteCore
FerriteCore

by malte0811

Memory usage optimizations

download 84.7M
favorite 12,724
Utility
Mod Menu
Mod Menu

by Prospector

Adds a mod menu to view the list of mods you have installed.

download 78.0M
favorite 22,148
Library Management Utility
YetAnotherConfigLib (YACL)
YetAnotherConfigLib (YACL)

by isxander

A builder-based configuration library for Minecraft!

download 66.3M
favorite 7,618
lock Cookie consent

SkinMC uses cookies to provide functionality and features.