You are viewing a potentially older version of this package. View all versions.
ZAP-Church_Glass-1.1.0 icon

Church Glass

Church windows of stained glass: melt twenty glass colours, set them as panes and cut them to shape with straight edge, compass and window templates. Five painted picture windows. The sun throws them onto the floor in colour.

By ZAP
Date uploaded 4 hours ago
Version 1.1.0
Download link ZAP-Church_Glass-1.1.0.zip
Downloads 13
Dependency string ZAP-Church_Glass-1.1.0

This mod requires the following mods to function

ValheimModding-Jotunn-2.30.2 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.2
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

README

Church Glass – coloured windows, cut to shape

Melt coloured glass at the forge, set it as plain panes with the hammer, and cut the panes to shape where they stand: with a straight edge, a compass, or a template for a whole window. Every piece is a pane of its own that you can recolour, cut again or take down, and because every cut runs through the whole window, the pieces always fit. 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. Five finished picture windows are in the hammer too: 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 (one per colour) Hammer → Church glass, stonecutter glass of that colour, 1 piece per quarter square metre
Glass cutters (straight edge, compass, template) Hammer → Church glass, stonecutter nothing
Picture windows (5) Hammer → Glass pictures, stonecutter Crystal, Tin, Stone and dyes (see below)

Panes and cutters 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.

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

  1. Take the hammer and open Church glass. After the three cutters come the twenty glasses, one pane each.
  2. Choose the size with H (Shift + H goes back): 1 × 1 m, 2 × 2 m, 1 × 2 m, 2 × 1 m, 50 × 50 cm, 50 cm × 1 m, 1 m × 50 cm, 25 × 25 cm. The pane costs 1 glass per quarter square metre (a 1 m pane 4, a 2 m pane 16), at least 1.
  3. J tilts the pane from upright to 26°, 45° and flat, for roof lights and glass floors. The mouse wheel turns it about the vertical as usual.
  4. Place it like a wall. Panes snap to each other and to vanilla walls and beams at their corners and the middle of their sides, and you can set a pane while aiming at another one. Shift held places without snapping, as for any piece.

Snapping with Q and E

As with vanilla pieces, Q and E step through the pane's snap points, and the game names the one you chose. The help above the build bar shows it too (snaps at: bottom left corner).

Order Snap point
1–4 bottom left, bottom right, top left, top right corner
5–8 middle of the bottom, top, left and right side (on sides of 1 m and more)

The order is the same for every size, and the chosen point stays chosen when you change the size or the glass. That makes a glass front quick:

  1. Press E once: bottom left corner.
  2. Aim at the lower right corner of the wall, beam or pane you build on and click. The new pane's bottom left corner sits exactly on it.
  3. Aim at the lower right corner of the pane you just set and click again, and so on along the front.
  4. For the next row, aim just below the top left corner of the pane underneath. Switch glass or size whenever you like; the corner stays chosen.

With Q back to nearest point, a pane snaps with whichever of its points is closest, as vanilla pieces do.

Fill a window opening with panes of one colour, or several. Everything else is cutting.

Cutting

Select a glass cutter and look at a window. The cut shows as a glowing line on the glass before you make it, and the help above the build bar says how many pieces it would make. Click to cut. The cut lands where the glass is: each pane it runs through falls into pieces of its colour, each a pane of its own.

  • Straight edge: a line through the point you aim at. The mouse wheel turns it through sixteen angles: level, 1:2, 45°, 2:1, upright and back, and those of the rose and the hexagon (22.5°, 30°, 60°, 67.5°).
  • Compass: a circle around the point you aim at. The mouse wheel sets the radius in eighths of a metre, from 12.5 cm to 4 m (with Ctrl in half metres). For a centre beside the glass, aim beside it: the cutter keeps to the plane of the window you last looked at.
  • Template: lays a shape over the whole window. The mouse wheel picks it:
Template What it cuts
Round arch a half circle on the full width, its crown on the top edge
Pointed arch the gothic arch: each side drawn from the opposite springing point
Round window the largest circle that fits, in the middle
Rose a round boss, eight segments around it and sixteen outside
Border a band 12.5 cm wide all round
Cross a level and an upright line through the middle
  • H switches between the whole window (every pane touching in one plane) and this pane only (the pane in view with all pieces cut from it). A diamond field in the lower pane only, then a border through the whole window: that is a gothic light.
  • Points snap to an eighth-metre grid and to the corners of the pieces within 5 cm, so cuts meet each other and the edges. Hold Shift to place the point freely.
  • A cut must run through: one that ends in the glass does nothing there. A circle wholly inside one pane would leave a hole, which glass cannot have, so its lead is carried out sideways to the edge.
  • Parts thinner than 4 mm vanish under the lead.

Recolour a piece: select the glass you want in the hammer, look at the piece and press K. The new glass comes out of your bag, the old goes back in. Take a piece down with the hammer as usual. Copy (Shift + middle mouse) on a piece selects its glass, its size if it is still a whole pane, and its tilt.

The glass is shared out. A pane's glass is divided among its pieces by area. Taking all of them down gives back exactly what the pane cost; small offcuts give nothing on their own.

Building a gothic light

  1. Set two 2 × 2 m panes of cobalt glass, one above the other, into a 2 × 4 m opening.
  2. Template Pointed arch on the window. The top corners are now pieces of their own: recolour them dark, or take them down.
  3. Straight edge at 2:1 and 1:2, this pane only, on the lower pane every metre: a diamond field.
  4. Straight edge, whole window: upright at a quarter metre from each side, level a quarter metre above the sill. That is the border.
  5. Compass in the arch: 75 cm, then 37.5 cm around the same point. A medallion with a ring.
  6. Recolour the pieces: gold medallion, ruby ring, amber border, sky and turquoise diamonds.

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. A change to a window rebuilds only that window's light.
  • 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 camera looks through glass. Standing beside a window, the camera no longer jumps in front of every pane between it and you. Walls and everything else stop it as before.

The real thing

Leaded glass is made the way the cutters work. The glazier lays out the window full size, scores each piece with a straight edge or a compass, and breaks the glass along the score. A score has to run from edge to edge: glass breaks along it, it cannot be cut out from the middle. The pieces are then set in H-shaped lead cames, and the lead line between two pieces is one came shared by both. A circle in the middle of a pane is always held by lead lines that run on to the edge.

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.

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), CameraThroughGlass (on), ShowHelp (on), KeySize (H), KeyTilt (J), KeyRecolor (K), KeyScope (H, with a cutter).

Multiplayer and compatibility

  • Everyone needs the mod. Outline, colour and glass of every piece are stored in the world, and everyone sees the same. Cutting and recolouring respect wards and need the stonecutter near, like taking a piece down.
  • Updating from 1.0: the shaped panes you set stay as they are. They are no longer in the hammer, but you can recolour, cut and take them down like new panes.
  • Glass needs no support and gives none. It hangs in its lead, so it never collapses a building, and nothing rests on it. It does not weather in the rain.
  • Placing hooks into the vanilla ghost rotation and snapping. Gamepads place panes, but size, tilt and the cutter settings have keyboard keys and the mouse wheel only.
  • The coloured light is drawn on each client. With SunLight = false the glass still looks and glows the same.

Deutsch

Kirchenglas – farbige Fenster, zugeschnitten. Du schmilzt farbiges Glas an der Schmiede, setzt es als einfache Scheiben mit dem Hammer und schneidest die Scheiben dort zu, wo sie stehen: mit Lineal, Zirkel oder einer Schablone fürs ganze Fenster. Jedes Stück ist danach eine eigene Scheibe, die du umfärben, weiter schneiden oder abbauen kannst. Weil jeder Schnitt durch das ganze Fenster läuft, passen die Stücke immer zusammen. Das Glas färbt das Licht dahinter, leuchtet, wenn Tageslicht dahinter liegt, und die Sonne wirft dein Fenster farbig auf den Boden. Dazu gibt es fünf fertige Glasbilder: Odin, Yggdrasil, Thor mit der Midgardschlange, ein Langschiff 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.

Scheiben setzen (Hammer → Kirchenglas, Steinmetzbank): Für jede der zwanzig Farben gibt es eine Scheibe. H wählt die Größe (1 × 1, 2 × 2, 1 × 2, 2 × 1 m, 50 × 50 cm, 50 cm × 1 m, 1 m × 50 cm, 25 × 25 cm), J neigt sie (aufrecht, 26°, 45°, flach). Eine Scheibe kostet 1 Glas je Viertelquadratmeter. Scheiben rasten an Ecken und Seitenmitten ein und lassen sich auch setzen, wenn du auf eine andere Scheibe zielst. Wie bei Vanilla schalten Q/E den Einrastpunkt durch (Ecke unten links, unten rechts, oben links, oben rechts, dann die Seitenmitten); der Name steht in der Hilfe. Die Reihenfolge ist für jede Größe gleich und bleibt beim Wechsel von Größe oder Glas erhalten. Für eine Glasfront: einmal E (Ecke unten links), dann jeweils auf die untere rechte Ecke dessen zielen, woran du anbaust, und klicken. Umschalt gedrückt setzt ohne Einrasten.

Zuschneiden: Wähle einen Glasschneider und schau auf ein Fenster. Der Schnitt leuchtet vorher als Linie auf dem Glas, die Hilfe zeigt, wie viele Stücke entstehen. Klick schneidet. Lineal: eine Gerade durch den Zielpunkt, das Mausrad dreht sie in 16 Winkeln. Zirkel: ein Kreis um den Zielpunkt, das Mausrad stellt den Halbmesser von 12,5 cm bis 4 m ein (mit Strg in halben Metern); für einen Mittelpunkt neben dem Glas zielst du daneben. Schablone: Rundbogen, Spitzbogen, Rundfenster, Rose, Rand oder Kreuz, eingepasst ins ganze Fenster. H schaltet zwischen ganzem Fenster und nur dieser Scheibe (samt ihren Stücken) um. Alles rastet im Achtelmeter-Raster und an den Ecken der Stücke ein, mit Umschalt frei. Ein Schnitt muss durchgehen; ein Kreis ganz in einer Scheibe bekommt Bleilinien zur Seite, denn Glas hat keine Löcher.

Umfärben: Glas im Hammer wählen, auf das Stück schauen, K drücken; das Glas wird im Inventar getauscht. Abbauen wie gewohnt. Das Glas einer Scheibe wird nach Fläche auf ihre Stücke verteilt: Alle Stücke zusammen geben genau zurück, was die Scheibe gekostet hat.

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. Die Kamera schaut durch Glas, statt neben Fenstern hin und her zu springen (CameraThroughGlass). Scheiben aus 1.0 bleiben in deiner Welt erhalten und lassen sich ebenso umfärben und schneiden. Alle Spieler brauchen den Mod.

CHANGELOG

Changelog

1.1.0

  • Glass is now set as plain panes and cut to shape with the hammer. The hammer lists one pane per glass colour (twenty, placed like the vanilla glass wall) and three glass cutters; the fifteen fixed shapes are gone from the menu.
  • Pane sizes while placing (H): 1 × 1, 2 × 2, 1 × 2, 2 × 1 m, 50 × 50 cm, 50 cm × 1 m, 1 m × 50 cm, 25 × 25 cm. Tilt stays on J.
  • Glass cutter: straight edge. A line through the point you aim at, sixteen angles on the mouse wheel (level, 1:2, 45°, 2:1, upright, and the angles of rose and hexagon).
  • Glass cutter: compass. A circle around the point you aim at, radius 12.5 cm to 4 m on the mouse wheel. One circle runs through every pane of the window, so the arcs meet exactly: a circle can now be closed from any number of panes.
  • Glass cutter: template. Round arch, pointed arch, round window, rose, border and cross, fitted to the whole window.
  • Snapping like vanilla pieces: Q/E step through named snap points (bottom left, bottom right, top left, top right corner, then the middle of each side), in the same order for every size; the chosen point stays chosen when you switch size or glass. A glass front is set corner to corner with one press of E.
  • Every cut shows first as a glowing line on the glass, with the number of pieces it makes. H switches between the whole window and the pane in view; a click cuts. All cuts snap to an eighth-metre grid and to the corners of the pieces; Shift held cuts freely.
  • Every piece is a pane of its own: recolour it with K (with the glass selected in the hammer), cut it again, or take it down. A pane's glass is shared out among its pieces by area, so nothing is gained or lost.
  • A circle inside one pane carries its lead out to the edges, as a real glazier must: glass has no holes.
  • Fixed: the camera jumped back and forth beside windows. It now looks through glass (CameraThroughGlass, on by default).
  • Fixed: setting a pane while aiming at another pane was refused.
  • Fixed: glass wore down in the rain.
  • Faster: a change to a window rebuilds only that window's light (1.7 ms instead of 11 ms in the test chapel).
  • Panes from 1.0 stay as they are in your world; they can be recoloured and cut like new ones.

1.0.0

  • First release: stained glass windows, set pane by pane with the hammer or built whole.
  • Twenty glass colours, melted at the forge from crystal, tin and a dye (berries, flowers, resin, honey, coal, bone, guck); 20 pieces per melt.
  • Fifteen pane shapes in 1 m, 50 cm and 25 cm that fit each other: squares, strips, triangles, gables, wedges, diamonds, circles, arches and spandrels, each in its lead came, snapping every 25 cm.
  • Colour, quarter turn and tilt are chosen while placing (Alt + wheel or N, H, J) with an on-screen palette; recolour with K, copy colour and turn with the vanilla copy.
  • Five picture windows in a stone frame: Odin, Yggdrasil, Thor and the Midgard Serpent, a longship, Fenrir.
  • The sun throws each window onto floors and walls in its colours, at its real angle, while it reaches the window; glass glows with the light behind it and filters what is seen through it.
  • English and German.