Please disclose if any significant portion of your mod was created using AI tools by adding the 'AI Generated' category. Failing to do so may result in the mod being removed from Thunderstore.
Church Glass
Church windows of stained glass: melt twenty glass colours, set panes of fifteen shapes in three sizes with the hammer, or build five painted picture windows. The sun throws them onto the floor in colour.
By ZAP
| Last updated | 5 days ago |
| Total downloads | 120 |
| Total rating | 0 |
| Categories | Building Crafting AI Generated |
| Dependency string | ZAP-Church_Glass-1.0.0 |
| Dependants | 0 other packages depend on this package |
This mod requires the following mods to function
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.2denikson-BepInExPack_Valheim
BepInEx pack for Valheim. Preconfigured with the correct entry point for mods and preferred defaults for the community.
Preferred version: 5.4.2360README
Church Glass – coloured windows, piece by piece
Melt coloured glass at the forge and set it pane by pane with the hammer: squares, triangles, circles, arches and more, in three sizes and twenty colours, each in its lead came. The glass works like glass. It colours the light behind it, glows when daylight is behind it, and the sun throws your window onto the floor as a coloured picture, at the angle the sun really has. If you would rather build a picture in one go, five finished picture windows are in the hammer: Odin the Allfather, Yggdrasil, Thor and the Midgard Serpent, a longship at sunrise, and Fenrir.
| Where | Cost | |
|---|---|---|
| Coloured glass (20 colours, 20 pieces per melt) | Forge | 1 Crystal, 1 Tin, and the dye of the colour |
| Glass panes (15 shapes × 3 sizes) | Hammer → Church glass, stonecutter | glass of the chosen colour, 1 piece per quarter square metre |
| Picture windows (5) | Hammer → Glass pictures, stonecutter | Crystal, Tin, Stone and dyes (see below) |
Panes appear in the hammer once you know crystal.
Melting the glass
Every melt takes one crystal for the glass, one tin for the leading, and a dye. It yields 20 pieces of glass. A 1 m square pane takes 4 pieces, every 50 cm and 25 cm pane takes 1.
| Colour | Dye | Colour | Dye |
|---|---|---|---|
| Clear | none | Peach | 2 Honey, 1 Bone fragments |
| Milk white | 2 Bone fragments | Brown | 2 Resin, 1 Coal |
| Smoke grey | 1 Coal, 1 Bone fragments | Emerald | 2 Guck |
| Black | 3 Coal | Leaf green | 3 Blueberries, 3 Dandelion |
| Ruby red | 5 Raspberries | Turquoise | 3 Blueberries, 1 Guck |
| Blood red | 2 Bloodbags | Sky blue | 3 Blueberries, 1 Bone fragments |
| Rose | 3 Raspberries, 1 Bone fragments | Cobalt blue | 5 Blueberries |
| Orange | 3 Raspberries, 3 Dandelion | Night blue | 4 Blueberries, 1 Coal |
| Amber | 4 Resin | Violet | 4 Thistle |
| Gold | 5 Dandelion | Purple | 3 Raspberries, 3 Blueberries |
Mixed colours take two dyes, as blue and yellow make green. Bone ash really does make milky glass.
Setting panes
- Take the hammer and open Church glass. It lists the fifteen shapes in 1 m, then in 50 cm, then in 25 cm; the icons show each pane in a metre square.
- Choose the colour: Left Alt + mouse wheel, or N (Shift + N goes back). A palette at the bottom of the screen shows all twenty colours, and the ghost shows the glass you chose.
- H turns the pane a quarter within its own plane, for example to set a triangle into another corner. J tilts it from upright to 26°, 45° and flat, for roof lights and glass floors. Shift turns and tilts back.
- The mouse wheel turns the pane about the vertical as usual. Turned round, a pane is its own mirror image, because glass looks the same from both sides. That gives you the other wedge and the other arch spandrel.
- Place it. The pane costs glass of the chosen colour.
Panes snap to each other every 25 cm along their edges, so all three sizes fit together, and to the corners of vanilla walls and beams. Two panes may share a place if they are turned differently, as two triangles share a square.
- Recolour: look at a pane and press K. It takes the chosen colour. The new glass comes out of your bag and the old glass goes back in.
- Pipette: the vanilla copy (Shift + middle mouse) also takes the pane's colour, turn and tilt.
The fifteen shapes
| Shape | 1 m costs | Fits with |
|---|---|---|
| Square, Strip (½), Border (¼) | 4, 2, 1 | everything |
| Triangle | 2 | a second triangle, turned half round: a square |
| Gable, Wedge | 2, 1 | gable + a wedge on each side: a square |
| Low gable | 1 | two triangles of the next smaller size: a strip |
| Diamond | 2 | four triangles of the next smaller size: a square |
| Circle | 3 | four spandrels of the next smaller size: a square |
| Half circle | 2 | two smaller spandrels: a strip |
| Quarter circle, Spandrel | 3, 1 | each other: a square |
| Round arch | 4 | two smaller spandrels: a square |
| Pointed arch, Arch spandrel | 3, 1 | an arch spandrel on each side: a square |
A 50 cm or 25 cm pane always costs 1 glass. Fine work costs a little more per square metre.
Picture windows
Five finished windows in a dressed stone frame, built in one piece:
| Window | Size | Cost |
|---|---|---|
| Allfather window: Odin with his spear Gungnir, Huginn and Muninn | 2 × 4 m, pointed arch | 4 Crystal, 3 Tin, 10 Stone, 8 Blueberries, 4 Dandelion, 4 Raspberries |
| Yggdrasil rose: the world tree over its three wells | 3 m round | 4 Crystal, 3 Tin, 12 Stone, 6 Blueberries, 4 Dandelion, 3 Guck |
| Thunderer window: Thor fishing for the Midgard Serpent | 2 × 4 m, pointed arch | 4 Crystal, 3 Tin, 10 Stone, 8 Blueberries, 4 Raspberries, 3 Dandelion |
| Longship window: a dragon ship sailing into the sunrise | 3 × 3 m, round arch | 4 Crystal, 3 Tin, 12 Stone, 8 Blueberries, 5 Dandelion, 5 Raspberries |
| Fenrir window: the bound wolf howling at the moon | 2 × 4 m, pointed arch | 4 Crystal, 3 Tin, 10 Stone, 6 Blueberries, 6 Bone fragments, 3 Thistle |
The sizes include the frame, so the windows sit in a wall on the vanilla 2 m grid. Turn them with the mouse wheel and tilt them with J like panes.
Light
- Coloured sunlight. When the sun reaches a window, it throws the window onto floor and walls in its colours, lead lines included. The patch moves with the sun: short and steep at noon, long in the morning and evening. No sun, no colours: when clouds, a roof or a mountain shade the window, the light fades. At night the moon throws a faint, blue-tinged copy.
- Glow. Glass glows with the light behind it. Seen from a dark room the window lights up. Seen from outside by day it stays dark and reflects the sky, as real church windows do.
- No white light through coloured glass. Panes cast the sun's shadow, so only coloured light falls through them.
- Panes that touch in one plane form one window. The nearest windows (8 by default) get their light; each uses three lights.
- Light without walls. The coloured beam is not stopped by floors or walls behind the room: under a window high up it also reaches the storey below. Glass in its path counts as clear.
The real thing
Coloured glass is a filter. It lets through a share of each colour of light and swallows the rest. So does the glass here. What you see through a pane is the world behind it multiplied by the glass colour. The patch on the floor is the sunlight multiplied by the glass the ray passed through.
The game cannot colour a light beam by a picture. A light can be cut to a shape by a grey mask, though. So every window gets three lights from the sun's direction, one red, one green and one blue. Each is masked by how much of its colour the glass lets through. Added up on the floor they give the full picture:
light on the floor = sun × (red share, green share, blue share) of the glass the ray crossed
The lights stand 20 m out towards the sun, so the rays are almost parallel, as sunlight is. Leaded glass is set the same way as here: pieces cut to shape, each held in an H-shaped lead came. The lead line between two panes is one came shared by both.
Configuration
BepInEx/config/zap.churchglass.cfg
Building (server-synced, admin only): StationGlass (forge), StationPanes and StationPictures (stonecutter), MeltBase (Crystal:1,Tin:1), MeltYield (20), PaneHealth (20), PictureHealth (300), one Dye_<colour> per colour, one Recipe_<picture> per picture window.
Client: SunLight (on), LightStrength (1), GlowStrength (1), LitWindows (8), ShowPalette (on), WheelColor (Left Alt + wheel, on), KeyColor (N), KeyTurn (H), KeyTilt (J), KeyRecolor (K).
Multiplayer and compatibility
- Everyone needs the mod. The pane's colour is stored in the world and everyone sees the same. Recolouring respects wards.
- Glass needs no support and gives none. It hangs in its lead, so it never collapses a building, and nothing rests on it.
- Placing hooks into the vanilla ghost rotation and snapping. Gamepads place panes, but colour, turn and tilt have keyboard keys only.
- The coloured light is drawn on each client. With
SunLight = falsethe glass still looks and glows the same.
Deutsch
Kirchenglas – farbige Fenster, Stück für Stück. Du schmilzt farbiges Glas an der Schmiede und setzt es Scheibe für Scheibe mit dem Hammer: Quadrate, Dreiecke, Kreise, Bögen und mehr, in drei Größen und zwanzig Farben, jede Scheibe in ihrer Bleifassung. Das Glas färbt das Licht dahinter, leuchtet, wenn Tageslicht dahinter liegt, und die Sonne wirft dein Fenster als farbiges Bild auf den Boden, im wirklichen Sonnenwinkel. Dazu gibt es fünf fertige Glasbilder: Odin der Allvater, Yggdrasil, Thor mit der Midgardschlange, ein Langschiff im Sonnenaufgang und Fenrir.
Glas schmelzen an der Schmiede: 1 Kristall, 1 Zinn und ein Farbstoff ergeben 20 Stück Glas. Beeren, Löwenzahn, Distel, Harz, Honig, Kohle, Glibber und Knochenfragmente färben, Mischfarben brauchen zwei Farbstoffe. Eine 1-m-Scheibe kostet 4 Stück, jede 50- und 25-cm-Scheibe 1 Stück.
Scheiben setzen (Hammer → Kirchenglas, Steinmetzbank): Linke Alt-Taste + Mausrad oder N wählt die Farbe, eine Farbleiste zeigt alle zwanzig. H dreht die Scheibe um eine Vierteldrehung in ihrer Ebene, J neigt sie (aufrecht, 26°, 45°, flach). Mit Umschalt geht es jeweils zurück. Das Mausrad dreht wie gewohnt um die Senkrechte; umgedreht ist eine Scheibe ihr eigenes Spiegelbild. Die Scheiben rasten alle 25 cm ein, alle drei Größen passen zusammen. K färbt die angesehene Scheibe um und tauscht das Glas im Inventar. Kopieren (Umschalt + mittlere Maustaste) übernimmt Farbe, Drehung und Neigung.
Glasbilder (Hammer → Glasbilder, Steinmetzbank) stehen fertig im Steinrahmen und passen ins 2-m-Raster der Wände.
Licht: Scheint die Sonne aufs Fenster, liegt sein Bild farbig auf Boden und Wänden und wandert mit der Sonne. Ohne Sonne gibt es keine Farben, nachts nur einen schwachen Abglanz des Mondes. Von innen leuchtet das Glas, von außen bleibt es tagsüber dunkel und spiegelt. Glas braucht keine Stütze und trägt nichts. Alle Spieler brauchen den Mod. Farbe, Drehen und Neigen gehen nur mit der Tastatur.