You are viewing a potentially older version of this package. View all versions.
bonesbro_repost-FloorsAreRoofs-1.0.0 icon

FloorsAreRoofs

A simple mod that allows wooden floors to count as roofs, so you can build a workbench, bed, and get rested.

Date uploaded 2 years ago
Version 1.0.0
Download link bonesbro_repost-FloorsAreRoofs-1.0.0.zip
Downloads 22296
Dependency string bonesbro_repost-FloorsAreRoofs-1.0.0

This mod requires the following mods to function

denikson-BepInExPack_Valheim-5.4.800 icon
denikson-BepInExPack_Valheim

BepInEx pack for Valheim. Preconfigured and includes unstripped Unity DLLs.

Preferred version: 5.4.800

README

Details for Real People
Are you a simple man, with simple needs for entirely box-like buildings? Do you feel oppressed and stifled having to build angled roofs like some sort of... person? Well, take heart, brave viking: there's a mod for that.

This mod edits wooden floors so that they are considered roofs, allowing you to build and use a bed or workbench underneath them. You gain rested bonuses and comfort and all of the usual stuff. They are also updated so that they do not take damage and decay in the rain and will shield the pieces below them from rain damage.

Let's be honest... building this way can be kind of ugly. But for some purposes, like a tower or a rooftop deck, it'll be helpful AND aesthetic. Use your new power wisely.

Installation
Extract the .dll file to your Valheim\BepInEx\plugins\ folder, just like you do with every other mod.

Technical Words for Nerds
Valheim considers the player sheltered if two things are true:

  1. The area above the player is covered with a surface that does not have the "leaky" tag.
  2. If you draw a line out in every direction from the player, most of them run into a structure or terrain.

This mod affects calculation #1 by finding the wood_floor and wood_floor1x1 pieces, finds their colliders, and changes the collider's tag from "leaky" to "roof", matching the tag used on pieces like wood_roof. The "leaky" tag is only used for the "is roofed" check used by beds, crafting stations, and rain damage calculations, and the "roof" tag is not currently used at all.

Source code available in an additional download. I'll throw it on github sooner or later.