Comfort system
The mod introduces a comfort system that affects sleep quality. When a player goes to bed, their rest level after waking depends on the comfort level around the bed.
The comfort scan radius around the bed is defined in the configuration file:
"comfort": {
"enabled": true,
"scanRadius": 5
},
Where 5 is the number of blocks.
You can also completely disable the comfort system.
Comfort is influenced by nearby elements such as furniture, plants in pots, glass, carpets, and lanterns. Some blocks increase comfort, while others decrease it.
Comfort tags
You can extend the comfort system using data packs by adding blocks to special tags.
Place your tag files in:
data/midnightthoughts/tags/block/
Each file must contain a JSON list of blocks:
{
"replace": false,
"values": [
"minecraft:example_block"
]
}
Setting "replace": false ensures that new blocks are added without overriding the default ones. Tags in Minecraft are used to group blocks together through datapacks and mods.
Positive comfort tags
These tags increase comfort and contribute to the Well Rested level:
| Tag | Effect |
|---|---|
comfort_lighting | +1 level |
comfort_carpet | +1 level |
comfort_furniture | +1 level |
comfort_decoration | +1 level |
comfort_structure | +1 level |
Each category contributes +1 level to the effect (up to 5 levels total).
Negative comfort tags
These tags reduce comfort around the bed:
| Tag | Effect |
|---|---|
comfort_negative_dark | Reduces comfort |
comfort_negative_hostile | Reduces comfort |
comfort_negative_macabre | Reduces comfort |
Too many negative blocks may lower the final Rested level or cause nightmares.
Full block list
- 1.21.1+
- 1.20.1
- Lighting
- Carpet
- Furniture
- Decoration
- Structure
- Negative: Dark
- Negative: Hostile
- Negative: Macabre
{
"replace": false,
"values": [
"minecraft:torch",
"minecraft:wall_torch",
"minecraft:soul_torch",
"minecraft:soul_wall_torch",
"minecraft:lantern",
"minecraft:soul_lantern",
"minecraft:glowstone",
"minecraft:sea_lantern",
"minecraft:redstone_lamp",
"minecraft:shroomlight",
"minecraft:end_rod",
"minecraft:candle",
"minecraft:white_candle",
"minecraft:orange_candle",
"minecraft:magenta_candle",
"minecraft:light_blue_candle",
"minecraft:yellow_candle",
"minecraft:lime_candle",
"minecraft:pink_candle",
"minecraft:gray_candle",
"minecraft:light_gray_candle",
"minecraft:cyan_candle",
"minecraft:purple_candle",
"minecraft:blue_candle",
"minecraft:brown_candle",
"minecraft:green_candle",
"minecraft:red_candle",
"minecraft:black_candle"
]
}
{
"replace": false,
"values": [
"minecraft:white_carpet",
"minecraft:orange_carpet",
"minecraft:magenta_carpet",
"minecraft:light_blue_carpet",
"minecraft:yellow_carpet",
"minecraft:lime_carpet",
"minecraft:pink_carpet",
"minecraft:gray_carpet",
"minecraft:light_gray_carpet",
"minecraft:cyan_carpet",
"minecraft:purple_carpet",
"minecraft:blue_carpet",
"minecraft:brown_carpet",
"minecraft:green_carpet",
"minecraft:red_carpet",
"minecraft:black_carpet",
"minecraft:moss_carpet"
]
}
{
"replace": false,
"values": [
"minecraft:bookshelf",
"minecraft:chest",
"minecraft:trapped_chest",
"minecraft:crafting_table",
"minecraft:furnace",
"minecraft:blast_furnace",
"minecraft:smoker",
"minecraft:enchanting_table",
"minecraft:anvil",
"minecraft:chipped_anvil",
"minecraft:damaged_anvil",
"minecraft:lectern",
"minecraft:barrel",
"minecraft:cartography_table",
"minecraft:fletching_table",
"minecraft:grindstone",
"minecraft:loom",
"minecraft:smithing_table",
"minecraft:stonecutter",
"minecraft:brewing_stand",
"minecraft:cauldron",
"minecraft:water_cauldron",
"minecraft:lava_cauldron",
"minecraft:powder_snow_cauldron",
"minecraft:jukebox",
"minecraft:bell",
"minecraft:decorated_pot"
]
}
{
"replace": false,
"values": [
"minecraft:flower_pot",
"minecraft:potted_oak_sapling",
"minecraft:potted_spruce_sapling",
"minecraft:potted_birch_sapling",
"minecraft:potted_jungle_sapling",
"minecraft:potted_acacia_sapling",
"minecraft:potted_cherry_sapling",
"minecraft:potted_dark_oak_sapling",
"minecraft:potted_mangrove_propagule",
"minecraft:potted_fern",
"minecraft:potted_dandelion",
"minecraft:potted_poppy",
"minecraft:potted_blue_orchid",
"minecraft:potted_allium",
"minecraft:potted_azure_bluet",
"minecraft:potted_red_tulip",
"minecraft:potted_orange_tulip",
"minecraft:potted_white_tulip",
"minecraft:potted_pink_tulip",
"minecraft:potted_oxeye_daisy",
"minecraft:potted_cornflower",
"minecraft:potted_lily_of_the_valley",
"minecraft:potted_wither_rose",
"minecraft:potted_red_mushroom",
"minecraft:potted_brown_mushroom",
"minecraft:potted_dead_bush",
"minecraft:potted_cactus",
"minecraft:potted_bamboo",
"minecraft:potted_azalea_bush",
"minecraft:potted_flowering_azalea_bush",
"minecraft:potted_crimson_fungus",
"minecraft:potted_warped_fungus",
"minecraft:potted_crimson_roots",
"minecraft:potted_warped_roots",
"minecraft:potted_torchflower"
]
}
{
"replace": false,
"values": [
"minecraft:glass",
"minecraft:glass_pane",
"minecraft:white_stained_glass",
"minecraft:orange_stained_glass",
"minecraft:magenta_stained_glass",
"minecraft:light_blue_stained_glass",
"minecraft:yellow_stained_glass",
"minecraft:lime_stained_glass",
"minecraft:pink_stained_glass",
"minecraft:gray_stained_glass",
"minecraft:light_gray_stained_glass",
"minecraft:cyan_stained_glass",
"minecraft:purple_stained_glass",
"minecraft:blue_stained_glass",
"minecraft:brown_stained_glass",
"minecraft:green_stained_glass",
"minecraft:red_stained_glass",
"minecraft:black_stained_glass",
"minecraft:white_stained_glass_pane",
"minecraft:orange_stained_glass_pane",
"minecraft:magenta_stained_glass_pane",
"minecraft:light_blue_stained_glass_pane",
"minecraft:yellow_stained_glass_pane",
"minecraft:lime_stained_glass_pane",
"minecraft:pink_stained_glass_pane",
"minecraft:gray_stained_glass_pane",
"minecraft:light_gray_stained_glass_pane",
"minecraft:cyan_stained_glass_pane",
"minecraft:purple_stained_glass_pane",
"minecraft:blue_stained_glass_pane",
"minecraft:brown_stained_glass_pane",
"minecraft:green_stained_glass_pane",
"minecraft:red_stained_glass_pane",
"minecraft:black_stained_glass_pane",
"minecraft:tinted_glass",
"minecraft:oak_door",
"minecraft:spruce_door",
"minecraft:birch_door",
"minecraft:jungle_door",
"minecraft:acacia_door",
"minecraft:dark_oak_door",
"minecraft:mangrove_door",
"minecraft:cherry_door",
"minecraft:bamboo_door",
"minecraft:crimson_door",
"minecraft:warped_door",
"minecraft:iron_door",
"minecraft:copper_door",
"minecraft:exposed_copper_door",
"minecraft:weathered_copper_door",
"minecraft:oxidized_copper_door",
"minecraft:waxed_copper_door",
"minecraft:waxed_exposed_copper_door",
"minecraft:waxed_weathered_copper_door",
"minecraft:waxed_oxidized_copper_door",
"minecraft:oak_trapdoor",
"minecraft:spruce_trapdoor",
"minecraft:birch_trapdoor",
"minecraft:jungle_trapdoor",
"minecraft:acacia_trapdoor",
"minecraft:dark_oak_trapdoor",
"minecraft:mangrove_trapdoor",
"minecraft:cherry_trapdoor",
"minecraft:bamboo_trapdoor",
"minecraft:crimson_trapdoor",
"minecraft:warped_trapdoor",
"minecraft:iron_trapdoor",
"minecraft:copper_trapdoor",
"minecraft:exposed_copper_trapdoor",
"minecraft:weathered_copper_trapdoor",
"minecraft:oxidized_copper_trapdoor",
"minecraft:waxed_copper_trapdoor",
"minecraft:waxed_exposed_copper_trapdoor",
"minecraft:waxed_weathered_copper_trapdoor",
"minecraft:waxed_oxidized_copper_trapdoor"
]
}
{
"replace": false,
"values": [
"minecraft:sculk",
"minecraft:sculk_sensor",
"minecraft:sculk_shrieker",
"minecraft:sculk_catalyst",
"minecraft:ancient_debris",
"minecraft:obsidian",
"minecraft:crying_obsidian",
"minecraft:reinforced_deepslate",
"minecraft:deepslate",
"minecraft:cobbled_deepslate",
"minecraft:tuff"
]
}
{
"replace": false,
"values": [
"minecraft:spawner",
"minecraft:soul_sand",
"minecraft:soul_soil",
"minecraft:nether_bricks",
"minecraft:red_nether_bricks",
"minecraft:nether_brick_fence",
"minecraft:magma_block",
"minecraft:netherrack",
"minecraft:crimson_nylium",
"minecraft:warped_nylium",
"minecraft:trial_spawner",
"minecraft:vault"
]
}
{
"replace": false,
"values": [
"minecraft:skeleton_skull",
"minecraft:skeleton_wall_skull",
"minecraft:wither_skeleton_skull",
"minecraft:wither_skeleton_wall_skull",
"minecraft:zombie_head",
"minecraft:zombie_wall_head",
"minecraft:creeper_head",
"minecraft:creeper_wall_head",
"minecraft:dragon_head",
"minecraft:dragon_wall_head",
"minecraft:piglin_head",
"minecraft:piglin_wall_head",
"minecraft:player_head",
"minecraft:player_wall_head",
"minecraft:bone_block",
"minecraft:wither_rose",
"minecraft:potted_wither_rose",
"minecraft:cobweb",
"minecraft:gravel",
"minecraft:mud"
]
}
- Lighting
- Carpet
- Furniture
- Decoration
- Structure
- Negative: Dark
- Negative: Hostile
- Negative: Macabre
{
"replace": false,
"values": [
"minecraft:torch",
"minecraft:wall_torch",
"minecraft:soul_torch",
"minecraft:soul_wall_torch",
"minecraft:lantern",
"minecraft:soul_lantern",
"minecraft:glowstone",
"minecraft:sea_lantern",
"minecraft:redstone_lamp",
"minecraft:shroomlight",
"minecraft:end_rod",
"minecraft:candle",
"minecraft:white_candle",
"minecraft:orange_candle",
"minecraft:magenta_candle",
"minecraft:light_blue_candle",
"minecraft:yellow_candle",
"minecraft:lime_candle",
"minecraft:pink_candle",
"minecraft:gray_candle",
"minecraft:light_gray_candle",
"minecraft:cyan_candle",
"minecraft:purple_candle",
"minecraft:blue_candle",
"minecraft:brown_candle",
"minecraft:green_candle",
"minecraft:red_candle",
"minecraft:black_candle"
]
}
{
"replace": false,
"values": [
"minecraft:white_carpet",
"minecraft:orange_carpet",
"minecraft:magenta_carpet",
"minecraft:light_blue_carpet",
"minecraft:yellow_carpet",
"minecraft:lime_carpet",
"minecraft:pink_carpet",
"minecraft:gray_carpet",
"minecraft:light_gray_carpet",
"minecraft:cyan_carpet",
"minecraft:purple_carpet",
"minecraft:blue_carpet",
"minecraft:brown_carpet",
"minecraft:green_carpet",
"minecraft:red_carpet",
"minecraft:black_carpet",
"minecraft:moss_carpet"
]
}
{
"replace": false,
"values": [
"minecraft:bookshelf",
"minecraft:chest",
"minecraft:trapped_chest",
"minecraft:crafting_table",
"minecraft:furnace",
"minecraft:blast_furnace",
"minecraft:smoker",
"minecraft:enchanting_table",
"minecraft:anvil",
"minecraft:chipped_anvil",
"minecraft:damaged_anvil",
"minecraft:lectern",
"minecraft:barrel",
"minecraft:cartography_table",
"minecraft:fletching_table",
"minecraft:grindstone",
"minecraft:loom",
"minecraft:smithing_table",
"minecraft:stonecutter",
"minecraft:brewing_stand",
"minecraft:cauldron",
"minecraft:water_cauldron",
"minecraft:lava_cauldron",
"minecraft:powder_snow_cauldron",
"minecraft:jukebox",
"minecraft:bell",
"minecraft:decorated_pot"
]
}
{
"replace": false,
"values": [
"minecraft:flower_pot",
"minecraft:potted_oak_sapling",
"minecraft:potted_spruce_sapling",
"minecraft:potted_birch_sapling",
"minecraft:potted_jungle_sapling",
"minecraft:potted_acacia_sapling",
"minecraft:potted_cherry_sapling",
"minecraft:potted_dark_oak_sapling",
"minecraft:potted_mangrove_propagule",
"minecraft:potted_fern",
"minecraft:potted_dandelion",
"minecraft:potted_poppy",
"minecraft:potted_blue_orchid",
"minecraft:potted_allium",
"minecraft:potted_azure_bluet",
"minecraft:potted_red_tulip",
"minecraft:potted_orange_tulip",
"minecraft:potted_white_tulip",
"minecraft:potted_pink_tulip",
"minecraft:potted_oxeye_daisy",
"minecraft:potted_cornflower",
"minecraft:potted_lily_of_the_valley",
"minecraft:potted_wither_rose",
"minecraft:potted_red_mushroom",
"minecraft:potted_brown_mushroom",
"minecraft:potted_dead_bush",
"minecraft:potted_cactus",
"minecraft:potted_bamboo",
"minecraft:potted_azalea_bush",
"minecraft:potted_flowering_azalea_bush",
"minecraft:potted_crimson_fungus",
"minecraft:potted_warped_fungus",
"minecraft:potted_crimson_roots",
"minecraft:potted_warped_roots",
"minecraft:potted_torchflower"
]
}
{
"replace": false,
"values": [
"minecraft:glass",
"minecraft:glass_pane",
"minecraft:white_stained_glass",
"minecraft:orange_stained_glass",
"minecraft:magenta_stained_glass",
"minecraft:light_blue_stained_glass",
"minecraft:yellow_stained_glass",
"minecraft:lime_stained_glass",
"minecraft:pink_stained_glass",
"minecraft:gray_stained_glass",
"minecraft:light_gray_stained_glass",
"minecraft:cyan_stained_glass",
"minecraft:purple_stained_glass",
"minecraft:blue_stained_glass",
"minecraft:brown_stained_glass",
"minecraft:green_stained_glass",
"minecraft:red_stained_glass",
"minecraft:black_stained_glass",
"minecraft:white_stained_glass_pane",
"minecraft:orange_stained_glass_pane",
"minecraft:magenta_stained_glass_pane",
"minecraft:light_blue_stained_glass_pane",
"minecraft:yellow_stained_glass_pane",
"minecraft:lime_stained_glass_pane",
"minecraft:pink_stained_glass_pane",
"minecraft:gray_stained_glass_pane",
"minecraft:light_gray_stained_glass_pane",
"minecraft:cyan_stained_glass_pane",
"minecraft:purple_stained_glass_pane",
"minecraft:blue_stained_glass_pane",
"minecraft:brown_stained_glass_pane",
"minecraft:green_stained_glass_pane",
"minecraft:red_stained_glass_pane",
"minecraft:black_stained_glass_pane",
"minecraft:tinted_glass",
"minecraft:oak_door",
"minecraft:spruce_door",
"minecraft:birch_door",
"minecraft:jungle_door",
"minecraft:acacia_door",
"minecraft:dark_oak_door",
"minecraft:mangrove_door",
"minecraft:cherry_door",
"minecraft:bamboo_door",
"minecraft:crimson_door",
"minecraft:warped_door",
"minecraft:iron_door",
"minecraft:oak_trapdoor",
"minecraft:spruce_trapdoor",
"minecraft:birch_trapdoor",
"minecraft:jungle_trapdoor",
"minecraft:acacia_trapdoor",
"minecraft:dark_oak_trapdoor",
"minecraft:mangrove_trapdoor",
"minecraft:cherry_trapdoor",
"minecraft:bamboo_trapdoor",
"minecraft:crimson_trapdoor",
"minecraft:warped_trapdoor",
"minecraft:iron_trapdoor"
]
}
{
"replace": false,
"values": [
"minecraft:sculk",
"minecraft:sculk_sensor",
"minecraft:sculk_shrieker",
"minecraft:sculk_catalyst",
"minecraft:ancient_debris",
"minecraft:obsidian",
"minecraft:crying_obsidian",
"minecraft:reinforced_deepslate",
"minecraft:deepslate",
"minecraft:cobbled_deepslate",
"minecraft:tuff"
]
}
{
"replace": false,
"values": [
"minecraft:spawner",
"minecraft:soul_sand",
"minecraft:soul_soil",
"minecraft:nether_bricks",
"minecraft:red_nether_bricks",
"minecraft:nether_brick_fence",
"minecraft:magma_block",
"minecraft:netherrack",
"minecraft:crimson_nylium",
"minecraft:warped_nylium"
]
}
{
"replace": false,
"values": [
"minecraft:skeleton_skull",
"minecraft:skeleton_wall_skull",
"minecraft:wither_skeleton_skull",
"minecraft:wither_skeleton_wall_skull",
"minecraft:zombie_head",
"minecraft:zombie_wall_head",
"minecraft:creeper_head",
"minecraft:creeper_wall_head",
"minecraft:dragon_head",
"minecraft:dragon_wall_head",
"minecraft:piglin_head",
"minecraft:piglin_wall_head",
"minecraft:player_head",
"minecraft:player_wall_head",
"minecraft:bone_block",
"minecraft:wither_rose",
"minecraft:potted_wither_rose",
"minecraft:cobweb",
"minecraft:gravel",
"minecraft:mud"
]
}