You are viewing a potentially older version of this package. View all versions.
Kirtle-ModularCarpets-0.2.0 icon

ModularCarpets

Modular carpets for the hammer: tiles, corners, junctions and stair runners that snap onto stone stairs. 11 patterns in 10 colours from crafting materials. Build any width or shape; schematic-mod safe.

Date uploaded a day ago
Version 0.2.0
Download link Kirtle-ModularCarpets-0.2.0.zip
Downloads 50
Dependency string Kirtle-ModularCarpets-0.2.0

This mod requires the following mods to function

denikson-BepInExPack_Valheim-5.4.2360 icon
denikson-BepInExPack_Valheim

BepInEx pack for Valheim. Preconfigured with the correct entry point for mods and preferred defaults for the community.

Preferred version: 5.4.2360
ValheimModding-Jotunn-2.30.3 icon
ValheimModding-Jotunn

Jötunn (/ˈjɔːtʊn/, 'giant'), the Valheim Library was created with the goal of making the lives of mod developers easier. It enables you to create mods for Valheim using an abstracted API so you can focus on the actual content creation.

Preferred version: 2.30.3

README

Modular Carpets (Valheim)

Carpets for the hammer that fit together like building pieces: floor tiles with ends, corners and junctions, pieces to build carpets of any width or shape, and stair runners that follow the zig-zag of the stone, grausten and black marble stairs and snap directly onto them. Open wood/ashwood stairs are intentionally not supported.

Eleven patterns, each in ten colours taken from crafting materials, each with its own hammer tab (Modular Carpets - Jute, - Twill, ...). Every pattern and colour is its own set of pieces, so schematic and blueprint mods keep them exactly as built.

Each carpet is a clone of the vanilla straw rug with its model swapped out, so health, comfort, burning, sounds and effects behave like a vanilla rug.

Installing

Install ModularCarpets from Thunderstore with r2modman or the Thunderstore app; it needs BepInEx and Jötunn, which they install with it. In multiplayer, everyone on the server needs the mod.

Pieces

Every pattern, in every colour, comes as this set of pieces (shown in Jarl, red jute):

Every floor piece

The edge, outer corner, inner-corner and fill pieces combine into carpets of any width or shape: a field of fills bordered by edges and outer corners makes a room rug, two edges side by side make a 4 m carpet, and the inner-corner pieces or the reducer narrow a wide carpet to a regular one.

Modular pieces put together

Stair runners snap onto stone, grausten and black marble stairs. For a staircase several stairs wide, use the left and right edge runners on the outside and fill runners between them; stair runners can't be mirrored by rotating, so their edge comes in a left and a right version (as seen walking up).

Stair runners

Piece Mesh Ribbon (border)
Carpet 2×2 both sides
Carpet end 2×2 both sides + one end
Carpet corner 2×2 two adjacent sides, turning around the outside
Carpet T-junction 2×2 one side; inner corners toward the branches
Carpet crossing 2×2 inner corners only
Carpet edge 2×2 one side
Carpet outer corner 2×2 two adjacent sides, without the inner-corner square
Carpet edge, inner corner left / right 2×2 one side + an inner-corner square at the far edge
Carpet fill 2×2 none
Wide-to-narrow reducer 4×2 4 m wide carpet narrows to a centred regular carpet
Stair runner stone stair both sides
Stair runner, left / right edge stone stair one side (left/right walking up)
Stair runner, fill stone stair none

The reducer has snap points every metre along its long edges, so carpets attach centred or flush with either side.

Patterns and colours

Every pattern comes in every colour, shown as a room rug built from the modular pieces. Click a pattern to see it.

Jute

Jute in all colours

Twill

Twill in all colours

Tartan

Tartan in all colours

Crosses

Crosses in all colours

Kilim

Kilim in all colours

Jarl

Jarl in all colours

Selbu

Selbu in all colours

Peel

Peel in all colours

Hail

Hail in all colours

Cabin

Cabin in all colours

Medallion

Medallion in all colours

Each colour belongs to a crafting material, in progression order: leather, deer hide, troll hide, bear hide, wolf pelt, linen, red jute, carapace, blue jute and asksvin hide. Every piece costs leather scraps; colours other than leather add a little of their material (1 for 2×2 pieces, 2 for the reducer and stair runners), which deconstructing refunds. Since the hammer only lists pieces whose materials you have discovered, colours appear as you progress.

Configuration

Graphics / Full resolution textures (default off): paints carpets at 256 px per metre instead of 128. Uses about 240 MB of video memory instead of 60 MB. Takes effect after a restart.

Size and performance

The whole mod is one DLL of about 1 MB: carpets are painted from compact pattern masks when the game loads, using every CPU core. That takes well under a second on a modern CPU, and about 5 s in all to register the 1,650 pieces. Hammer icons are rendered once and cached by Jötunn.

Development

Building, releasing, and adding patterns, colours or piece shapes: see DEVELOPMENT.md.

Legal

The mod's code, patterns and artwork are under the MIT licence (LICENSE). Valheim and its assets belong to Iron Gate; the mod ships none of them (it clones the vanilla rug at runtime).

CHANGELOG

Changelog

0.3.0

A new modular piece for L-shaped rugs.

New piece

  • Carpet fill, inner corner: a fill with just one inner-corner square and no ribbons, for the inside of a bend where a wide carpet turns a corner. Rotate it to put the corner where you need it.

It comes in every pattern and colour, right after carpet fill in each hammer tab. Existing pieces and placed carpets are unchanged.

Mod page

  • The Pieces section lists the new piece, and a new example shows a wide carpet turning a corner.

0.2.0

Five new patterns, and a mod page that shows every piece.

New patterns

  • Selbu: eight-pointed stars, after Norwegian knitting, with a sawtooth border.
  • Peel: overlapping circles that leave pointed lenses, with a scalloped border.
  • Hail: a quiet scatter of small diamonds and dots.
  • Cabin: nested squares around a bright centre, with a checker border.
  • Medallion: one large ringed wheel per metre, with a beaded border.

Each has its own hammer tab after Jarl, in all ten colours. That makes eleven patterns and 1,650 pieces. Existing patterns and placed carpets are unchanged.

Mod page

  • New Pieces section: every floor piece by its hammer name, how the modular pieces fit together into wide carpets, and the stair runners on a staircase.
  • Patterns are collapsible, and their pictures are sharper.

Performance

  • About 1 MB in total. Registering all pieces now takes about 5 s when the game starts, up from about 2.5 s.
  • With Full resolution textures, carpets use about 240 MB of video memory (60 MB by default).

0.1.0

First public release.

Pieces

  • Modular carpets: carpet, end, corner, T-junction, crossing, edge, outer corner, inner corners (left and right), fill, and a 4 m wide-to-narrow reducer. Combine them into runners, wide carpets or whole room rugs of any size.
  • Stair runners: plain, left edge, right edge and fill. They follow the steps of stone, grausten and black marble stairs and snap straight onto them.

Patterns and colours

  • Six patterns: Jute, Twill, Tartan, Crosses, Kilim and Jarl, each in its own hammer tab ("Modular Carpets - Jute", ...).
  • Ten colours from crafting materials: leather, deer hide, troll hide, bear hide, wolf pelt, linen, red jute, carapace, blue jute and asksvin hide. Colours unlock as you discover their material.
  • Every piece costs leather scraps, plus a little of its colour's material. Deconstructing refunds everything.

Compatibility

  • Every pattern and colour is its own piece, so schematic and blueprint mods copy carpets exactly as built.
  • Carpets behave like the vanilla straw rug (comfort, health, burning).
  • Everyone on a server needs the mod.

Performance

  • About 0.5 MB in total. Carpets are painted when the game starts, using every CPU core.
  • Optional Full resolution textures setting for sharper carpets, at four times the video memory.