Stained Glass mod for Minetest
Go to file
andersje 02ec406eb7 now tested with blocks created by previous versions of the mod. should be safe for worlds created before these changes.
superglowglass changed to super_glow_glass.
attempts at setting the hues and dyes and whatnot to fix the craft recipes, since changes to default dyes and unifieddyes broke them some time ago.

manual initialization for blocks and recipes. DON'T USE THIS YET, I'm still working on it.

WORKING:  craft recipes, most blocks, use of new color palette
UNTESTED:  mapping of old blocks to these new blocks
NOT WORKING:  faint, pastel type blocks

much cleaner code.  it LOOKS like the light/pastel blocks should be working perfectly, even when digging through the debug logs...however, they aren't craftable.  I'm not sure why this is.  hopefully, someone can point me in the right direction

dark green, magenta all sorted out now, thanks to vanessaE.
Still, this makes me wonder if I should be using exact dye names everywhere.
also, brown will no longer map to yellow stained glass.

uuuuugh, ugly hack -- had to define separate subs for pastel and faint blocks.  could be worse I suppose.
This is now working for new worlds, but be careful on existing worlds -- it isn't tested there yet, though it SHOULD work.

updates to copyright and usage of the mod.

changelog updated.

doyousketch2 has returned!  fixes to README file, since this is still his baby.

leftover temp file...didn't need to be here.
2013-08-23 11:06:04 -05:00
textures Alpha channel support, don't use inventory cubes 2013-04-28 07:24:02 -04:00
changelog.txt now tested with blocks created by previous versions of the mod. should be safe for worlds created before these changes. 2013-08-23 11:06:04 -05:00
colors.txt First commit 2013-02-24 13:09:02 -05:00
depends.txt First commit 2013-02-24 13:09:02 -05:00
init.lua now tested with blocks created by previous versions of the mod. should be safe for worlds created before these changes. 2013-08-23 11:06:04 -05:00
LICENSE First commit 2013-02-24 13:09:02 -05:00
LICENSE.txt First commit 2013-02-24 13:09:02 -05:00
README.md now tested with blocks created by previous versions of the mod. should be safe for worlds created before these changes. 2013-08-23 11:06:04 -05:00

Doyousketch2's Stained Glass mod ver 1.4

Image: http://oi47.tinypic.com/hst6s3.jpg

With alpha enabled: http://oi44.tinypic.com/5vraxf.jpg

============================================================================== Originally developed by Eli Innes/Doyousketch2, and distributed under GPL v2. Further changes by VanessaE (removing from creative inventory) and Jeremy Anderson (fixing craft recipes, renaming blocks)

==============================================================================

Dependencies: VanessaE's Unified Dyes, Calinou's More Blocks

to Install:

Unzip the mod file you just downloaded.

it should be something like: Doyousketch2-stained_glass-1.1.zip or stained_glass-master.zip, depending on where you downloaded it from

rename the new folder that looks like: Doyousketch2-stained_glass-1.1 -or- stained_glass-master to simply read "stained_glass"

then move it into your Minetest mods folder.

Even better, get stained_glass from one of the github pages: https://github.com/doyousketch2/stained_glass https://github.com/VanessaE/stained_glass https://github.com/andersje/stained_glass

-- this will get you the latest version of the code, and you can update at any time by doing a git pull

==============================================================================

Recipe for standard colors:

image: http://oi50.tinypic.com/1ibs7c.jpg

dye
super glow glass
super glow glass
super glow glass

Recipe for pastel colors:

image: http://oi45.tinypic.com/2wbvkti.jpg

light dye
white paint
super glow glass
super glow glass
super glow glass

Recipe for faint colors:

image: http://oi45.tinypic.com/2wbvkti.jpg

light dye
white paint
white paint
super glow glass
super glow glass
super glow glass

All recipes produce three glowing stained glass blocks.

==============================================================================

The Palette includes:

red, orange, yellow, lime, green, aqua
cyan, skyblue, blue, violet, magenta, redviolet

Full & half-saturation, medium and dark shades have been included as well as light, pastel, and faint tints.

==============================================================================

Misc. Notes

Blocks are now available by name:
e.g. /giveme stained_glass:orange 3 # get 3 orange sg blocks or /giveme stained_glass:light_yellow or /giveme stained_glass:pastel_yellow or /giveme stained_glass:faint_yellow or /giveme stained_glass:yellow

You get the idea.

NUMERIC CODES FOR BLOCKS (this is the old way of coding these blocks developed by Doyousketch2)

Please don't try to use /give commands, the items are now in numerical format, and it would be tough to try to explain it.

If you really want to try, it goes like this:

yellow = 1 lime = 2 green = 3 aqua = 4 cyan = 5 skyblue = 6 blue = 7 violet = 8 magenta = 9 redviolet = 10 red = 11 orange = 12

however, minetest sees it in the order 10, 11, 12, 1, 2, 3... so redviolet actually comes first.

and for whatever reason, minetest doesn't take blank spaces _ into consideration. so the attributes just act like the next column of digits.

I had to offset them to keep it all in order.

Brightness:

dark = 3 medium = 4 full = 5

Saturation:

50% = 6 full = 7

so "Red, dark 50%" would be: stained_glass:11_3_6 "Blue, medium full-saturation" is: stained_glass:7_4_7

then we get to the bright colors.

same hue numbers, 1 - 12 but the attributes are:

light = 8 pastel = 9 faint = 91

so "Violet, light" is: stained_glass:8_8 and ""Orange, faint" is: stained_glass:12_91

I think this is too much to keep track of, but I hope this explains things in case anybody else is developing code. For everyday purposes, let the computer keep track of the registered nodes, and just pick them out with the menu instead.

==============================================================================