2013-02-24 19:09:02 +01:00
|
|
|
--[[
|
|
|
|
|
2013-08-26 04:53:16 +02:00
|
|
|
Stained Glass 1.5
|
2013-02-24 19:09:02 +01:00
|
|
|
|
|
|
|
This mod provides luminescent stained glass blocks for Minetest 0.4.x.
|
|
|
|
|
|
|
|
Depends:
|
|
|
|
[moreblocks] by Calinou
|
|
|
|
[unifieddyes] by VanessaE
|
|
|
|
|
|
|
|
==============================================================================
|
2013-05-04 19:54:07 +02:00
|
|
|
Sat 04 May 2013 01:52:35 PM EDT
|
2013-02-24 19:09:02 +01:00
|
|
|
|
|
|
|
Copyright (C) 2013, Eli Innis
|
|
|
|
Email: doyousketch2 @ yahoo.com
|
|
|
|
|
|
|
|
Unified Dyes was released under GNU-GPL 2.0, see LICENSE for info.
|
|
|
|
More Blocks was released under zlib/libpng for code and CC BY-SA 3.0 Unported for textures, see LICENSE.txt for info.
|
|
|
|
|
2013-08-21 02:39:32 +02:00
|
|
|
Additional changes by VanessaEzekowitz in July 2013 to take all items
|
|
|
|
out of creative inventory.
|
|
|
|
|
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-21 06:12:34 +02:00
|
|
|
August 2013 -- Jeremy Anderson tries to get this working after the new color
|
|
|
|
changes, and to resurrect the craft recipes. Still GPL'd as far as I'm concerned.
|
|
|
|
|
2013-08-26 11:23:35 +02:00
|
|
|
|
|
|
|
August 2013 -- rewritten a bit by VanessaEzekowitz to further condense the code.
|
|
|
|
|
2013-02-24 19:09:02 +01:00
|
|
|
==============================================================================
|
|
|
|
|
|
|
|
|
|
|
|
Recipe for standard colors:
|
|
|
|
|
|
|
|
dye
|
|
|
|
super glow glass
|
|
|
|
super glow glass
|
|
|
|
super glow glass
|
|
|
|
|
|
|
|
|
|
|
|
Recipe for pastel colors:
|
|
|
|
|
|
|
|
light dye
|
|
|
|
white paint
|
|
|
|
super glow glass
|
|
|
|
super glow glass
|
|
|
|
super glow glass
|
|
|
|
|
|
|
|
|
|
|
|
Recipe for faint colors:
|
|
|
|
|
|
|
|
light dye
|
|
|
|
white paint
|
|
|
|
white paint
|
|
|
|
super glow glass
|
|
|
|
super glow glass
|
|
|
|
super glow glass
|
|
|
|
|
2013-08-26 04:53:16 +02:00
|
|
|
recipe for low-glow-stained-glass:
|
|
|
|
as above, but substitute 'glow glass' for super glow glass.
|
|
|
|
|
|
|
|
recipe for no-glow-stained-glass:
|
|
|
|
as regular stained glass, but substitute plain 'glass' for super glow glass
|
|
|
|
|
2013-02-24 19:09:02 +01:00
|
|
|
|
2013-08-26 11:23:35 +02:00
|
|
|
All recipes produce three stained glass blocks.
|
2013-02-24 19:09:02 +01:00
|
|
|
|
|
|
|
==============================================================================
|
|
|
|
]]--
|
|
|
|
|
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-21 06:12:34 +02:00
|
|
|
function makenode(arg)
|
|
|
|
name=arg.blockname
|
2013-08-26 11:23:35 +02:00
|
|
|
|
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-21 06:12:34 +02:00
|
|
|
--register item attributes
|
|
|
|
|
2013-08-26 11:23:35 +02:00
|
|
|
minetest.register_node("stained_glass:"..arg.prefix..name, {
|
|
|
|
description = "Stained Glass - "..arg.prefix..name,
|
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-21 06:12:34 +02:00
|
|
|
drawtype = "glasslike",
|
|
|
|
tiles = {"stained_glass_" .. name .. ".png"},
|
|
|
|
paramtype = "light",
|
|
|
|
sunlight_propagates = true,
|
|
|
|
use_texture_alpha = true,
|
2013-08-26 11:23:35 +02:00
|
|
|
light_source = arg.light,
|
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-21 06:12:34 +02:00
|
|
|
is_ground_content = true,
|
|
|
|
groups = {snappy=2,cracky=3,oddly_breakable_by_hand=3, not_in_creative_inventory=1},
|
|
|
|
sounds = default.node_sound_glass_defaults()
|
|
|
|
})
|
|
|
|
end
|
|
|
|
|
2013-08-26 11:23:35 +02:00
|
|
|
|
|
|
|
-- the purpose of this is to abstract out all the registration
|
|
|
|
-- stuff - duplicated code is bad mmmmmkay? At least where one can avoid it
|
|
|
|
|
|
|
|
-- so, instead of 4 loops that each have craft registrations,
|
|
|
|
-- we'll have one block that does registrations, and just call
|
|
|
|
-- the procedure repeatedly
|
|
|
|
--
|
|
|
|
|
|
|
|
function stained_glass_define_regular(arg)
|
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-21 06:12:34 +02:00
|
|
|
code=arg.colorcode
|
|
|
|
name=arg.colorname
|
|
|
|
mydye=arg.recipe
|
2013-08-26 11:23:35 +02:00
|
|
|
myprefix = arg.prefix
|
|
|
|
glasstype = arg.glasstype
|
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-21 06:12:34 +02:00
|
|
|
|
|
|
|
minetest.register_craft({
|
|
|
|
type = "shapeless",
|
2013-08-26 11:23:35 +02:00
|
|
|
output = "stained_glass:"..myprefix..name.." 3",
|
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-21 06:12:34 +02:00
|
|
|
recipe = {
|
|
|
|
mydye,
|
2013-08-26 11:23:35 +02:00
|
|
|
glasstype,
|
|
|
|
glasstype,
|
|
|
|
glasstype,
|
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-21 06:12:34 +02:00
|
|
|
},
|
|
|
|
})
|
|
|
|
|
2013-08-26 11:23:35 +02:00
|
|
|
makenode{blockname=name, light=arg.light, prefix=myprefix}
|
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-21 06:12:34 +02:00
|
|
|
|
2013-08-26 11:23:35 +02:00
|
|
|
if myprefix == "" then
|
|
|
|
minetest.register_alias( "stained_glass:" .. code, "stained_glass:" .. name)
|
|
|
|
end
|
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-21 06:12:34 +02:00
|
|
|
-- and an alias from the numeric to the named block
|
|
|
|
-- we need to keep the numeric block for all the people that used
|
|
|
|
-- pre-v1.4 blocks in their worlds.
|
|
|
|
|
|
|
|
end
|
|
|
|
|
2013-08-26 11:23:35 +02:00
|
|
|
function stained_glass_define_pastel(arg)
|
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-21 06:12:34 +02:00
|
|
|
code=arg.colorcode
|
|
|
|
name=arg.colorname
|
|
|
|
mydye=arg.recipe
|
2013-08-26 11:23:35 +02:00
|
|
|
myprefix = arg.prefix
|
|
|
|
glasstype = arg.glasstype
|
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-21 06:12:34 +02:00
|
|
|
|
|
|
|
minetest.register_craft({
|
|
|
|
type = "shapeless",
|
2013-08-26 11:23:35 +02:00
|
|
|
output = "stained_glass:"..myprefix..name .." 3",
|
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-21 06:12:34 +02:00
|
|
|
recipe = {
|
|
|
|
mydye,
|
|
|
|
"dye:white",
|
2013-08-26 11:23:35 +02:00
|
|
|
glasstype,
|
|
|
|
glasstype,
|
|
|
|
glasstype,
|
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-21 06:12:34 +02:00
|
|
|
},
|
|
|
|
})
|
2013-08-26 11:23:35 +02:00
|
|
|
|
|
|
|
makenode{blockname=name,light=arg.light, prefix=myprefix}
|
|
|
|
|
|
|
|
if myprefix == "" then
|
|
|
|
minetest.register_alias( "stained_glass:" .. code, "stained_glass:" .. name)
|
|
|
|
end
|
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-21 06:12:34 +02:00
|
|
|
end
|
|
|
|
|
2013-08-26 11:23:35 +02:00
|
|
|
function stained_glass_define_faint(arg)
|
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-21 06:12:34 +02:00
|
|
|
code=arg.colorcode
|
|
|
|
name=arg.colorname
|
2013-08-26 11:23:35 +02:00
|
|
|
mydye=arg.recipe
|
|
|
|
myprefix = arg.prefix
|
|
|
|
glasstype = arg.glasstype
|
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-21 06:12:34 +02:00
|
|
|
|
|
|
|
minetest.register_craft({
|
|
|
|
type = "shapeless",
|
2013-08-26 11:23:35 +02:00
|
|
|
output = "stained_glass:"..myprefix..name.." 3",
|
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-21 06:12:34 +02:00
|
|
|
recipe = {
|
|
|
|
mydye,
|
|
|
|
"dye:white",
|
|
|
|
"dye:white",
|
2013-08-26 11:23:35 +02:00
|
|
|
glasstype,
|
|
|
|
glasstype,
|
|
|
|
glasstype,
|
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-21 06:12:34 +02:00
|
|
|
},
|
|
|
|
})
|
|
|
|
|
|
|
|
--register item attributes
|
|
|
|
--
|
2013-08-26 11:23:35 +02:00
|
|
|
makenode{blockname=name,light=arg.light, prefix=myprefix}
|
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-21 06:12:34 +02:00
|
|
|
|
2013-08-26 11:23:35 +02:00
|
|
|
if myprefix == "" then
|
|
|
|
minetest.register_alias( "stained_glass:" .. code, "stained_glass:" .. name)
|
|
|
|
end
|
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-21 06:12:34 +02:00
|
|
|
end
|
|
|
|
|
2013-08-26 11:23:35 +02:00
|
|
|
-- true means this color's recipe must use a direct "dye:xxxxx" item name
|
|
|
|
-- (perhaps because the related groups overlap two or more distinct colors)
|
|
|
|
-- false means the recipe uses "group:dye,unicolor_xxxxx"
|
|
|
|
|
|
|
|
stained_glass_hues = {
|
|
|
|
{ "yellow", true },
|
|
|
|
{ "lime", false },
|
|
|
|
{ "green", true },
|
|
|
|
{ "aqua", false },
|
|
|
|
{ "cyan", false },
|
|
|
|
{ "skyblue", false },
|
|
|
|
{ "blue", false },
|
|
|
|
{ "violet", true },
|
|
|
|
{ "magenta", true },
|
|
|
|
{ "redviolet", true },
|
|
|
|
{ "red", true },
|
|
|
|
{ "orange", false },
|
|
|
|
}
|
|
|
|
|
|
|
|
stained_glass_shades = {
|
|
|
|
{"dark_", 3 },
|
|
|
|
{"medium_", 4 },
|
|
|
|
{"", 5 }, -- full brightness
|
|
|
|
{"light_", 8 },
|
|
|
|
{"pastel_", 9 },
|
|
|
|
{"faint_", 91 }
|
|
|
|
}
|
|
|
|
|
|
|
|
dofile(minetest.get_modpath("stained_glass").."/high_glow.lua")
|
|
|
|
dofile(minetest.get_modpath("stained_glass").."/low_glow.lua")
|
|
|
|
dofile(minetest.get_modpath("stained_glass").."/no_glow.lua")
|
2013-02-24 19:09:02 +01:00
|
|
|
|
2013-08-26 04:53:16 +02:00
|
|
|
dofile(minetest.get_modpath("stained_glass").."/noglow.lua")
|
|
|
|
dofile(minetest.get_modpath("stained_glass").."/lowglow.lua")
|
|
|
|
|
2013-02-24 19:09:02 +01:00
|
|
|
print("[stained_glass] Loaded!")
|
|
|
|
|
|
|
|
|