Initial commit
75
README
Normal file
@ -0,0 +1,75 @@
|
||||
Vanessa's Colored Woods mod
|
||||
===========================
|
||||
|
||||
This mod provides a multitude of colors of wood, sticks, and fences to
|
||||
Minetest, as per the palette outlined by my Unified Dyes mod.
|
||||
|
||||
Requires unifieddyes and flowers if you want to craft the various items. If
|
||||
you don't have (or don't want to use) those two mods, you can also use /giveme
|
||||
to get the items you want.
|
||||
|
||||
Objects and their texture files are named using the same scheme as UnifiedDyes:
|
||||
|
||||
coloredwood:wood_red
|
||||
coloredwood:stick_dark_green
|
||||
coloredwood:fence_medium_blue_s50
|
||||
|
||||
And so on.
|
||||
|
||||
|
||||
Crafting
|
||||
========
|
||||
|
||||
Colored wood blocks
|
||||
-------------------
|
||||
|
||||
Place two regular wood blocks and one portion of the desired dye or paint color
|
||||
into the crafting grid, in any position. Yields two colored wood blocks. Use
|
||||
these directly to build with, or craft them into sticks.
|
||||
|
||||
|
||||
Colored sticks
|
||||
--------------
|
||||
|
||||
Just drop a colored wood block into the crafting grid as you would with an
|
||||
uncolored wood block. Yields 4 sticks of the same color as the wood block.
|
||||
|
||||
While you cannot directly dye uncolored sticks, you can use them to craft
|
||||
colored fences.
|
||||
|
||||
|
||||
Colored fences
|
||||
--------------
|
||||
|
||||
Lay out six of the above colored sticks (must be all the same color) in the
|
||||
usual two-row fence-crafting pattern. Yields two colored fenceposts).
|
||||
|
||||
---- ---- ----
|
||||
CStick CStick CStick
|
||||
CStick CStick CStick
|
||||
|
||||
OR: Lay out six regular sticks in the usual fence-crafting pattern, plus one
|
||||
portion of the desired dye color in the upper left corner of the grid (yields
|
||||
two colored fenceposts):
|
||||
|
||||
Dye --- ---
|
||||
Stick Stick Stick
|
||||
Stick Stick Stick
|
||||
|
||||
OR: Place two regular wooden fenceposts into the crafting grid along with one
|
||||
portion of the desired dye color, in any position. Yields two colored
|
||||
fenceposts.
|
||||
|
||||
|
||||
Ladders
|
||||
-------
|
||||
|
||||
Finally, if you find yourself short on uncolored sticks to make ladders out of,
|
||||
and you have a surplus of one or more colors, you can craft them into regular,
|
||||
uncolored ladders. Place any colored sticks you want, in any combination, into
|
||||
the crafting grid in the standard ladder pattern. Yields two colored ladders
|
||||
(to try to make up for the wasted dye).
|
||||
|
||||
CStick ---- CStick
|
||||
CStick CStick CStick
|
||||
CStick ---- CStick
|
2
depends.txt
Normal file
@ -0,0 +1,2 @@
|
||||
default
|
||||
unifieddyes
|
330
fence.lua
Normal file
@ -0,0 +1,330 @@
|
||||
-- Fences portion of Colored Wood mod by Vanessa Ezekowitz ~~ 2012-07-17
|
||||
-- based on my unified dyes modding template.
|
||||
--
|
||||
-- License: WTFPL
|
||||
|
||||
colored_block_modname = "coloredwood"
|
||||
colored_block_description = "Wooden Fence"
|
||||
neutral_block = "default:fence_wood"
|
||||
colored_block_sunlight = "false"
|
||||
colored_block_walkable = "true"
|
||||
colored_block_groups = {snappy=1,choppy=2,oddly_breakable_by_hand=2,flammable=2}
|
||||
colored_block_sound = "default.node_sound_wood_defaults()"
|
||||
|
||||
-- ------------------------------------------------------------------
|
||||
-- Generate all of the base color node definitions and all variations
|
||||
-- except for the greyscale stuff.
|
||||
|
||||
-- Hues are on a 30 degree spacing starting at red = 0 degrees.
|
||||
-- "s50" in a file/item name means "saturation: 50%".
|
||||
-- Texture brightness levels for the colors are 100%, 66% ("medium"),
|
||||
-- and 33% ("dark").
|
||||
|
||||
shades = {
|
||||
"dark_",
|
||||
"medium_",
|
||||
"" -- represents "no special shade name", e.g. bright.
|
||||
}
|
||||
|
||||
shades2 = {
|
||||
"Dark ",
|
||||
"Medium ",
|
||||
"" -- represents "no special shade name", e.g. bright.
|
||||
}
|
||||
|
||||
hues = {
|
||||
"red",
|
||||
"orange",
|
||||
"yellow",
|
||||
"lime",
|
||||
"green",
|
||||
"aqua",
|
||||
"cyan",
|
||||
"skyblue",
|
||||
"blue",
|
||||
"violet",
|
||||
"magenta",
|
||||
"redviolet"
|
||||
}
|
||||
|
||||
hues2 = {
|
||||
"Red ",
|
||||
"Orange ",
|
||||
"Yellow ",
|
||||
"Lime ",
|
||||
"Green ",
|
||||
"Aqua ",
|
||||
"Cyan ",
|
||||
"Sky Blue ",
|
||||
"Blue ",
|
||||
"Violet ",
|
||||
"Magenta ",
|
||||
"Red-violet "
|
||||
}
|
||||
|
||||
greys = {
|
||||
"black",
|
||||
"darkgrey",
|
||||
"grey",
|
||||
"lightgrey",
|
||||
"white"
|
||||
}
|
||||
|
||||
greys2 = {
|
||||
"Black ",
|
||||
"Dark Grey ",
|
||||
"Medium Grey ",
|
||||
"Light Grey ",
|
||||
"White "
|
||||
}
|
||||
|
||||
greys3 = {
|
||||
"black",
|
||||
"darkgrey_paint",
|
||||
"mediumgrey_paint",
|
||||
"lightgrey_paint",
|
||||
"white_paint"
|
||||
}
|
||||
|
||||
for shade = 1, 3 do
|
||||
|
||||
shadename = shades[shade]
|
||||
shadename2 = shades2[shade]
|
||||
|
||||
for hue = 1, 12 do
|
||||
|
||||
huename = hues[hue]
|
||||
huename2 = hues2[hue]
|
||||
|
||||
colorname = colored_block_modname..":fence_"..shadename..huename
|
||||
pngnameinv = colored_block_modname.."_fence_"..shadename..huename..".png"
|
||||
pngname = colored_block_modname.."_wood_"..shadename..huename..".png"
|
||||
nodedesc = shadename2..huename2..colored_block_description
|
||||
stickname = colored_block_modname..":stick_"..shadename..huename
|
||||
|
||||
s50colorname = colored_block_modname..":fence_"..shadename..huename.."_s50"
|
||||
s50pngname = colored_block_modname.."_wood_"..shadename..huename.."_s50.png"
|
||||
s50pngnameinv = colored_block_modname.."_fence_"..shadename..huename.."_s50.png"
|
||||
s50nodedesc = shadename2..huename2..colored_block_description.." (50% Saturation)"
|
||||
s50stickname = colored_block_modname..":stick_"..shadename..huename.."_s50"
|
||||
|
||||
minetest.register_node(colorname, {
|
||||
drawtype = "fencelike",
|
||||
description = nodedesc,
|
||||
tiles = { pngname },
|
||||
inventory_image = pngnameinv,
|
||||
wield_image = pngnameinv,
|
||||
sunlight_propagates = colored_block_sunlight,
|
||||
paramtype = "light",
|
||||
walkable = colored_block_walkable,
|
||||
groups = colored_block_groups,
|
||||
sounds = colored_block_sound
|
||||
})
|
||||
|
||||
minetest.register_node(s50colorname, {
|
||||
drawtype = "fencelike",
|
||||
description = s50nodedesc,
|
||||
tiles = { s50pngname },
|
||||
inventory_image = s50pngnameinv,
|
||||
wield_image = s50pngnameinv,
|
||||
sunlight_propagates = colored_block_sunlight,
|
||||
paramtype = "light",
|
||||
walkable = colored_block_walkable,
|
||||
groups = colored_block_groups,
|
||||
sounds = colored_block_sound
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
type = "fuel",
|
||||
recipe = colorname,
|
||||
burntime = 7,
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
type = "fuel",
|
||||
recipe = s50colorname,
|
||||
burntime = 7,
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
output = colorname.." 2" ,
|
||||
recipe = {
|
||||
{stickname, stickname, stickname },
|
||||
{stickname, stickname, stickname }
|
||||
}
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
output = s50colorname.." 2",
|
||||
recipe = {
|
||||
{s50stickname, s50stickname, s50stickname },
|
||||
{s50stickname, s50stickname, s50stickname }
|
||||
}
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
output = colorname.." 2",
|
||||
recipe = {
|
||||
{ "unifieddyes:"..shadename..huename, "", "" },
|
||||
{"default:stick", "default:stick", "default:stick"},
|
||||
{"default:stick", "default:stick", "default:stick"},
|
||||
}
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
output = s50colorname.." 2",
|
||||
recipe = {
|
||||
{ "unifieddyes:"..shadename..huename.."_s50", "", "" },
|
||||
{"default:stick", "default:stick", "default:stick"},
|
||||
{"default:stick", "default:stick", "default:stick"},
|
||||
}
|
||||
})
|
||||
|
||||
minetest.register_craft( {
|
||||
type = "shapeless",
|
||||
output = colorname.." 2",
|
||||
recipe = {
|
||||
neutral_block,
|
||||
neutral_block,
|
||||
"unifieddyes:"..shadename..huename
|
||||
}
|
||||
})
|
||||
|
||||
minetest.register_craft( {
|
||||
type = "shapeless",
|
||||
output = colorname.." 2",
|
||||
recipe = {
|
||||
neutral_block,
|
||||
neutral_block,
|
||||
"unifieddyes:"..shadename..huename.."_s50"
|
||||
}
|
||||
})
|
||||
|
||||
end
|
||||
end
|
||||
|
||||
-- Generate the "light" shades separately, since they don"t have a low-sat version.
|
||||
|
||||
for hue = 1, 12 do
|
||||
huename = hues[hue]
|
||||
huename2 = hues2[hue]
|
||||
colorname = colored_block_modname..":fence_light_"..huename
|
||||
pngname = colored_block_modname.."_wood_light_"..huename..".png"
|
||||
pngnameinv = colored_block_modname.."_fence_light_"..huename..".png"
|
||||
nodedesc = "Light "..huename2..colored_block_description
|
||||
stickname = colored_block_modname..":stick_light_"..shadename..huename
|
||||
|
||||
minetest.register_node(colorname, {
|
||||
drawtype = "fencelike",
|
||||
description = nodedesc,
|
||||
tiles = { pngname },
|
||||
inventory_image = pngnameinv,
|
||||
wield_image = pngnameinv,
|
||||
sunlight_propagates = colored_block_sunlight,
|
||||
paramtype = "light",
|
||||
walkable = colored_block_walkable,
|
||||
groups = colored_block_groups,
|
||||
sounds = colored_block_sound
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
type = "fuel",
|
||||
recipe = colorname,
|
||||
burntime = 7,
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
output = colorname.." 2",
|
||||
recipe = {
|
||||
{stickname, stickname, stickname },
|
||||
{stickname, stickname, stickname }
|
||||
}
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
output = colorname.." 2",
|
||||
recipe = {
|
||||
{ "unifieddyes:light_"..huename, "", "" },
|
||||
{"default:stick", "default:stick", "default:stick"},
|
||||
{"default:stick", "default:stick", "default:stick"},
|
||||
}
|
||||
})
|
||||
|
||||
minetest.register_craft( {
|
||||
type = "shapeless",
|
||||
output = colorname.." 2",
|
||||
recipe = {
|
||||
neutral_block,
|
||||
neutral_block,
|
||||
"unifieddyes:light_"..huename
|
||||
}
|
||||
})
|
||||
end
|
||||
|
||||
|
||||
-- ============================================================
|
||||
-- The 5 levels of greyscale.
|
||||
--
|
||||
-- Oficially these are 0, 25, 50, 75, and 100% relative to white,
|
||||
-- but in practice, they"re actually 7.5%, 25%, 50%, 75%, and 95%.
|
||||
-- (otherwise black and white would wash out).
|
||||
|
||||
for grey = 1,5 do
|
||||
|
||||
greyname = greys[grey]
|
||||
greyname2 = greys2[grey]
|
||||
greyname3 = greys3[grey]
|
||||
|
||||
greyshadename = colored_block_modname..":fence_"..greyname
|
||||
pngname = colored_block_modname.."_wood_"..greyname..".png"
|
||||
pngnameinv = colored_block_modname.."_fence_"..greyname..".png"
|
||||
nodedesc = greyname2..colored_block_description
|
||||
stickname = colored_block_modname..":stick_"..greyname
|
||||
|
||||
minetest.register_node(greyshadename, {
|
||||
drawtype = "fencelike",
|
||||
description = nodedesc,
|
||||
tiles = { pngname },
|
||||
inventory_image = pngnameinv,
|
||||
wield_image = pngnameinv,
|
||||
sunlight_propagates = colored_block_sunlight,
|
||||
paramtype = "light",
|
||||
walkable = colored_block_walkable,
|
||||
groups = colored_block_groups,
|
||||
sounds = colored_block_sound
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
type = "fuel",
|
||||
recipe = greyshadename,
|
||||
burntime = 7,
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
output = greyshadename.." 2",
|
||||
recipe = {
|
||||
{stickname, stickname, stickname },
|
||||
{stickname, stickname, stickname }
|
||||
}
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
output = greyshadename.." 2",
|
||||
recipe = {
|
||||
{ "unifieddyes:"..greyname, "", "" },
|
||||
{"default:stick", "default:stick", "default:stick"},
|
||||
{"default:stick", "default:stick", "default:stick"},
|
||||
}
|
||||
})
|
||||
|
||||
minetest.register_craft( {
|
||||
type = "shapeless",
|
||||
output = greyshadename.." 2",
|
||||
recipe = {
|
||||
neutral_block,
|
||||
neutral_block,
|
||||
"unifieddyes:"..greyname3
|
||||
}
|
||||
})
|
||||
|
||||
end
|
326
fence.lua~
Normal file
@ -0,0 +1,326 @@
|
||||
-- Fences portion of Colored Wood mod by Vanessa Ezekowitz ~~ 2012-07-17
|
||||
-- based on my unified dyes modding template.
|
||||
--
|
||||
-- License: WTFPL
|
||||
|
||||
colored_block_modname = "coloredwood"
|
||||
colored_block_description = "Wooden Fence"
|
||||
neutral_block = "default:fence_wood"
|
||||
colored_block_sunlight = "false"
|
||||
colored_block_walkable = "true"
|
||||
colored_block_groups = {snappy=1,choppy=2,oddly_breakable_by_hand=2,flammable=2}
|
||||
colored_block_sound = "default.node_sound_wood_defaults()"
|
||||
|
||||
-- ------------------------------------------------------------------
|
||||
-- Generate all of the base color node definitions and all variations
|
||||
-- except for the greyscale stuff.
|
||||
|
||||
-- Hues are on a 30 degree spacing starting at red = 0 degrees.
|
||||
-- "s50" in a file/item name means "saturation: 50%".
|
||||
-- Texture brightness levels for the colors are 100%, 66% ("medium"),
|
||||
-- and 33% ("dark").
|
||||
|
||||
shades = {
|
||||
"dark_",
|
||||
"medium_",
|
||||
"" -- represents "no special shade name", e.g. bright.
|
||||
}
|
||||
|
||||
shades2 = {
|
||||
"Dark ",
|
||||
"Medium ",
|
||||
"" -- represents "no special shade name", e.g. bright.
|
||||
}
|
||||
|
||||
hues = {
|
||||
"red",
|
||||
"orange",
|
||||
"yellow",
|
||||
"lime",
|
||||
"green",
|
||||
"aqua",
|
||||
"cyan",
|
||||
"skyblue",
|
||||
"blue",
|
||||
"violet",
|
||||
"magenta",
|
||||
"redviolet"
|
||||
}
|
||||
|
||||
hues2 = {
|
||||
"Red ",
|
||||
"Orange ",
|
||||
"Yellow ",
|
||||
"Lime ",
|
||||
"Green ",
|
||||
"Aqua ",
|
||||
"Cyan ",
|
||||
"Sky Blue ",
|
||||
"Blue ",
|
||||
"Violet ",
|
||||
"Magenta ",
|
||||
"Red-violet "
|
||||
}
|
||||
|
||||
greys = {
|
||||
"black",
|
||||
"darkgrey",
|
||||
"grey",
|
||||
"lightgrey",
|
||||
"white"
|
||||
}
|
||||
|
||||
greys2 = {
|
||||
"Black ",
|
||||
"Dark Grey ",
|
||||
"Medium Grey ",
|
||||
"Light Grey ",
|
||||
"White "
|
||||
}
|
||||
|
||||
greys3 = {
|
||||
"black",
|
||||
"darkgrey_paint",
|
||||
"mediumgrey_paint",
|
||||
"lightgrey_paint",
|
||||
"white_paint"
|
||||
}
|
||||
|
||||
for shade = 1, 3 do
|
||||
|
||||
shadename = shades[shade]
|
||||
shadename2 = shades2[shade]
|
||||
|
||||
for hue = 1, 12 do
|
||||
|
||||
huename = hues[hue]
|
||||
huename2 = hues2[hue]
|
||||
|
||||
colorname = colored_block_modname..":fence_"..shadename..huename
|
||||
pngname = colored_block_modname.."_fence_"..shadename..huename..".png"
|
||||
nodedesc = shadename2..huename2..colored_block_description
|
||||
stickname = colored_block_modname..":stick_"..shadename..huename
|
||||
|
||||
s50colorname = colored_block_modname..":fence_"..shadename..huename.."_s50"
|
||||
s50pngname = colored_block_modname.."_fence_"..shadename..huename.."_s50.png"
|
||||
s50nodedesc = shadename2..huename2..colored_block_description.." (50% Saturation)"
|
||||
s50stickname = colored_block_modname..":stick_"..shadename..huename.."_s50"
|
||||
|
||||
minetest.register_node(colorname, {
|
||||
drawtype = "fencelike",
|
||||
description = nodedesc,
|
||||
tiles = { pngname },
|
||||
inventory_image = pngname,
|
||||
wield_image = pngname,
|
||||
sunlight_propagates = colored_block_sunlight,
|
||||
paramtype = "light",
|
||||
walkable = colored_block_walkable,
|
||||
groups = colored_block_groups,
|
||||
sounds = colored_block_sound
|
||||
})
|
||||
|
||||
minetest.register_node(s50colorname, {
|
||||
drawtype = "fencelike",
|
||||
description = s50nodedesc,
|
||||
tiles = { s50pngname },
|
||||
inventory_image = s50pngname,
|
||||
wield_image = s50pngname,
|
||||
sunlight_propagates = colored_block_sunlight,
|
||||
paramtype = "light",
|
||||
walkable = colored_block_walkable,
|
||||
groups = colored_block_groups,
|
||||
sounds = colored_block_sound
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
type = "fuel",
|
||||
recipe = colorname,
|
||||
burntime = 7,
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
type = "fuel",
|
||||
recipe = s50colorname,
|
||||
burntime = 7,
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
output = colorname.." 2" ,
|
||||
recipe = {
|
||||
{stickname, stickname, stickname },
|
||||
{stickname, stickname, stickname }
|
||||
}
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
output = s50colorname.." 2",
|
||||
recipe = {
|
||||
{s50stickname, s50stickname, s50stickname },
|
||||
{s50stickname, s50stickname, s50stickname }
|
||||
}
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
output = colorname.." 2",
|
||||
recipe = {
|
||||
{ "unifieddyes:"..shadename..huename, "", "" },
|
||||
{"default:stick", "default:stick", "default:stick"},
|
||||
{"default:stick", "default:stick", "default:stick"},
|
||||
}
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
output = s50colorname.." 2",
|
||||
recipe = {
|
||||
{ "unifieddyes:"..shadename..huename.."_s50", "", "" },
|
||||
{"default:stick", "default:stick", "default:stick"},
|
||||
{"default:stick", "default:stick", "default:stick"},
|
||||
}
|
||||
})
|
||||
|
||||
minetest.register_craft( {
|
||||
type = "shapeless",
|
||||
output = colorname.." 2",
|
||||
recipe = {
|
||||
neutral_block,
|
||||
neutral_block,
|
||||
"unifieddyes:"..shadename..huename
|
||||
}
|
||||
})
|
||||
|
||||
minetest.register_craft( {
|
||||
type = "shapeless",
|
||||
output = colorname.." 2",
|
||||
recipe = {
|
||||
neutral_block,
|
||||
neutral_block,
|
||||
"unifieddyes:"..shadename..huename.."_s50"
|
||||
}
|
||||
})
|
||||
|
||||
end
|
||||
end
|
||||
|
||||
-- Generate the "light" shades separately, since they don"t have a low-sat version.
|
||||
|
||||
for hue = 1, 12 do
|
||||
huename = hues[hue]
|
||||
huename2 = hues2[hue]
|
||||
colorname = colored_block_modname..":fence_light_"..huename
|
||||
pngname = colored_block_modname.."_fence_light_"..huename..".png"
|
||||
nodedesc = "Light "..huename2..colored_block_description
|
||||
stickname = colored_block_modname..":stick_light_"..shadename..huename
|
||||
|
||||
minetest.register_node(colorname, {
|
||||
drawtype = "fencelike",
|
||||
description = nodedesc,
|
||||
tiles = { pngname },
|
||||
inventory_image = pngname,
|
||||
wield_image = pngname,
|
||||
sunlight_propagates = colored_block_sunlight,
|
||||
paramtype = "light",
|
||||
walkable = colored_block_walkable,
|
||||
groups = colored_block_groups,
|
||||
sounds = colored_block_sound
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
type = "fuel",
|
||||
recipe = colorname,
|
||||
burntime = 7,
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
output = colorname.." 2",
|
||||
recipe = {
|
||||
{stickname, stickname, stickname },
|
||||
{stickname, stickname, stickname }
|
||||
}
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
output = colorname.." 2",
|
||||
recipe = {
|
||||
{ "unifieddyes:light_"..huename, "", "" },
|
||||
{"default:stick", "default:stick", "default:stick"},
|
||||
{"default:stick", "default:stick", "default:stick"},
|
||||
}
|
||||
})
|
||||
|
||||
minetest.register_craft( {
|
||||
type = "shapeless",
|
||||
output = colorname.." 2",
|
||||
recipe = {
|
||||
neutral_block,
|
||||
neutral_block,
|
||||
"unifieddyes:light_"..huename
|
||||
}
|
||||
})
|
||||
end
|
||||
|
||||
|
||||
-- ============================================================
|
||||
-- The 5 levels of greyscale.
|
||||
--
|
||||
-- Oficially these are 0, 25, 50, 75, and 100% relative to white,
|
||||
-- but in practice, they"re actually 7.5%, 25%, 50%, 75%, and 95%.
|
||||
-- (otherwise black and white would wash out).
|
||||
|
||||
for grey = 1,5 do
|
||||
|
||||
greyname = greys[grey]
|
||||
greyname2 = greys2[grey]
|
||||
greyname3 = greys3[grey]
|
||||
|
||||
greyshadename = colored_block_modname..":fence_"..greyname
|
||||
pngname = colored_block_modname.."_fence_"..greyname..".png"
|
||||
nodedesc = greyname2..colored_block_description
|
||||
stickname = colored_block_modname..":stick_"..greyname
|
||||
|
||||
minetest.register_node(greyshadename, {
|
||||
drawtype = "fencelike",
|
||||
description = nodedesc,
|
||||
tiles = { pngname },
|
||||
inventory_image = pngname,
|
||||
wield_image = pngname,
|
||||
sunlight_propagates = colored_block_sunlight,
|
||||
paramtype = "light",
|
||||
walkable = colored_block_walkable,
|
||||
groups = colored_block_groups,
|
||||
sounds = colored_block_sound
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
type = "fuel",
|
||||
recipe = greyshadename,
|
||||
burntime = 7,
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
output = greyshadename.." 2",
|
||||
recipe = {
|
||||
{stickname, stickname, stickname },
|
||||
{stickname, stickname, stickname }
|
||||
}
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
output = greyshadename.." 2",
|
||||
recipe = {
|
||||
{ "unifieddyes:"..greyname, "", "" },
|
||||
{"default:stick", "default:stick", "default:stick"},
|
||||
{"default:stick", "default:stick", "default:stick"},
|
||||
}
|
||||
})
|
||||
|
||||
minetest.register_craft( {
|
||||
type = "shapeless",
|
||||
output = greyshadename.." 2",
|
||||
recipe = {
|
||||
neutral_block,
|
||||
neutral_block,
|
||||
"unifieddyes:"..greyname3
|
||||
}
|
||||
})
|
||||
|
||||
end
|
49
init.lua
Normal file
@ -0,0 +1,49 @@
|
||||
-- Colored Wood mod by Vanessa Ezekowitz ~~ 2012-07-17
|
||||
-- based on my unifieddyes template.
|
||||
--
|
||||
-- License: WTFPL
|
||||
--
|
||||
-- This mod provides 89 colors of wood, fences, and sticks, and enough
|
||||
-- cross-compatible recipes to make everything fit together naturally.
|
||||
--
|
||||
-- Colored wood is crafted by putting two regular wood blocks into the
|
||||
-- grid along with one dye color, in any order and position. The result
|
||||
-- is two colored wood blocks.
|
||||
--
|
||||
-- Colored sticks are crafted from colored wood blocks only - one colored
|
||||
-- wood block in any position yields 4 colored sticks as usual.
|
||||
--
|
||||
-- Uncolored sticks cannot be dyed separately, but they can still be used
|
||||
-- to build colored wooden fences. These are crafted either by placing six
|
||||
-- plain, uncolored sticks into the crafting grid in the usual manner, plus
|
||||
-- one portion of dye or paint in the upper-left corner of the grid
|
||||
-- (D = dye or paint, S = uncolored stick):
|
||||
--
|
||||
-- D - -
|
||||
-- S S S
|
||||
-- S S S
|
||||
--
|
||||
-- You can also craft a colored fence by using colored sticks derived from
|
||||
-- colored wood. Just place six of them in the same manner as with plain
|
||||
-- fences (CS = colored stick):
|
||||
--
|
||||
-- -- -- --
|
||||
-- CS CS CS
|
||||
-- CS CS CS
|
||||
--
|
||||
-- If you find yourself with too many colors of sticks and not enough,
|
||||
-- ladders, you can use any color (as long as they"re all the same) to
|
||||
-- create a ladder, but it"ll always result in a plain, uncolored ladder.
|
||||
-- This practice isn"t recommended of course, since it wastes dye.
|
||||
--
|
||||
-- All materials are flammable and can be used as fuel.
|
||||
|
||||
-- All of the actual code is contained in separate lua files:
|
||||
|
||||
dofile(minetest.get_modpath("coloredwood").."/wood.lua")
|
||||
dofile(minetest.get_modpath("coloredwood").."/fence.lua")
|
||||
dofile(minetest.get_modpath("coloredwood").."/stick.lua")
|
||||
--dofile(minetest.get_modpath("coloredwood").."/ladder.lua")
|
||||
|
||||
print("[Colored Wood] Loaded!")
|
||||
|
49
init.lua~
Normal file
@ -0,0 +1,49 @@
|
||||
-- Colored Wood mod by Vanessa Ezekowitz ~~ 2012-07-17
|
||||
-- based on my unifieddyes template.
|
||||
--
|
||||
-- License: WTFPL
|
||||
--
|
||||
-- This mod provides 89 colors of wood, fences, and sticks, and enough
|
||||
-- cross-compatible recipes to make everything fit together naturally.
|
||||
--
|
||||
-- Colored wood is crafted by putting two regular wood blocks into the
|
||||
-- grid along with one dye color, in any order and position. The result
|
||||
-- is two colored wood blocks.
|
||||
--
|
||||
-- Colored sticks are crafted from colored wood blocks only - one colored
|
||||
-- wood block in any position yields 4 colored sticks as usual.
|
||||
--
|
||||
-- Uncolored sticks cannot be dyed separately, but they can still be used
|
||||
-- to build colored wooden fences. These are crafted either by placing six
|
||||
-- plain, uncolored sticks into the crafting grid in the usual manner, plus
|
||||
-- one portion of dye or paint in the upper-left corner of the grid
|
||||
-- (D = dye or paint, S = uncolored stick):
|
||||
--
|
||||
-- D - -
|
||||
-- S S S
|
||||
-- S S S
|
||||
--
|
||||
-- You can also craft a colored fence by using colored sticks derived from
|
||||
-- colored wood. Just place six of them in the same manner as with plain
|
||||
-- fences (CS = colored stick):
|
||||
--
|
||||
-- -- -- --
|
||||
-- CS CS CS
|
||||
-- CS CS CS
|
||||
--
|
||||
-- If you find yourself with too many colors of sticks and not enough,
|
||||
-- ladders, you can use any color (as long as they"re all the same) to
|
||||
-- create a ladder, but it"ll always result in a plain, uncolored ladder.
|
||||
-- This practice isn"t recommended of course, since it wastes dye.
|
||||
--
|
||||
-- All materials are flammable and can be used as fuel.
|
||||
|
||||
-- All of the actual code is contained in separate lua files:
|
||||
|
||||
dofile(minetest.get_modpath("coloredwood").."/wood.lua")
|
||||
dofile(minetest.get_modpath("coloredwood").."/fence.lua")
|
||||
dofile(minetest.get_modpath("coloredwood").."/stick.lua")
|
||||
dofile(minetest.get_modpath("coloredwood").."/ladder.lua")
|
||||
|
||||
print("[Colored Wood] Loaded!")
|
||||
|
113
ladder.lua~
Normal file
@ -0,0 +1,113 @@
|
||||
-- Ladders portion of Colored Wood mod by Vanessa Ezekowitz ~~ 2012-07-17
|
||||
-- based on my unified dyes modding template.
|
||||
--
|
||||
-- License: WTFPL
|
||||
--
|
||||
-- All this part does is register all the alternate crafts to turn
|
||||
-- any stick color into a standard ladder. To compensate for having
|
||||
-- used up a portion of dye, 7 sticks gives 2 ladders instead of just
|
||||
-- one. Ladders are still crafted in the usual manner, but all 7
|
||||
-- sticks must be the same color.
|
||||
--
|
||||
-- CS -- CS
|
||||
-- CS CS CS
|
||||
-- CS -- CS
|
||||
--
|
||||
|
||||
-- =================================================
|
||||
-- All variants and shades, except "light" and greys.
|
||||
|
||||
shades = {
|
||||
"dark_",
|
||||
"medium_",
|
||||
"" -- represents "no special shade name", e.g. bright.
|
||||
}
|
||||
|
||||
hues = {
|
||||
"red",
|
||||
"orange",
|
||||
"yellow",
|
||||
"lime",
|
||||
"green",
|
||||
"aqua",
|
||||
"cyan",
|
||||
"skyblue",
|
||||
"blue",
|
||||
"violet",
|
||||
"magenta",
|
||||
"redviolet"
|
||||
}
|
||||
|
||||
greys = {
|
||||
"black",
|
||||
"darkgrey",
|
||||
"mediumgrey",
|
||||
"lightgrey",
|
||||
"white"
|
||||
}
|
||||
|
||||
for shade = 1, 3 do
|
||||
|
||||
shadename = shades[shade]
|
||||
|
||||
for hue = 1, 12 do
|
||||
|
||||
stickname = colored_block_modname..":stick_"..shadename..hues[hue]
|
||||
s50stickname = colored_block_modname..":stick_"..shadename..hues[hue].."_s50"
|
||||
|
||||
minetest.register_craft({
|
||||
output = "default:ladder 2" ,
|
||||
recipe = {
|
||||
{stickname, "" , stickname },
|
||||
{stickname, stickname, stickname },
|
||||
{stickname, "" , stickname }
|
||||
}
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
output = "default:ladder 2" ,
|
||||
recipe = {
|
||||
{s50stickname, "" , s50stickname },
|
||||
{s50stickname, s50stickname, s50stickname },
|
||||
{s50stickname, "" , s50stickname }
|
||||
}
|
||||
})
|
||||
|
||||
|
||||
end
|
||||
end
|
||||
|
||||
-- ===========
|
||||
-- Light shades
|
||||
|
||||
for hue = 1, 12 do
|
||||
stickname = colored_block_modname..":stick_light_"..hues[hue]
|
||||
|
||||
minetest.register_craft({
|
||||
output = "default:ladder 2" ,
|
||||
recipe = {
|
||||
{stickname, "" , stickname },
|
||||
{stickname, stickname, stickname },
|
||||
{stickname, "" , stickname }
|
||||
}
|
||||
})
|
||||
end
|
||||
|
||||
|
||||
-- =====
|
||||
-- Greys
|
||||
|
||||
for grey = 1,5 do
|
||||
|
||||
stickname = colored_block_modname..":stick_"..greys[grey]
|
||||
|
||||
minetest.register_craft({
|
||||
output = "default:ladder 2" ,
|
||||
recipe = {
|
||||
{stickname, "" , stickname },
|
||||
{stickname, stickname, stickname },
|
||||
{stickname, "" , stickname }
|
||||
}
|
||||
})
|
||||
|
||||
end
|
229
stick.lua
Normal file
@ -0,0 +1,229 @@
|
||||
-- Sticks portion of Colored Wood mod by Vanessa Ezekowitz ~~ 2012-07-17
|
||||
-- based on my unified dyes modding template.
|
||||
--
|
||||
-- License: WTFPL
|
||||
|
||||
colored_block_modname = "coloredwood"
|
||||
colored_block_description = "Stick"
|
||||
neutral_block = "default:stick"
|
||||
|
||||
-- ------------------------------------------------------------------
|
||||
-- Generate all of the base color node definitions and all variations
|
||||
-- except for the greyscale stuff.
|
||||
|
||||
-- Hues are on a 30 degree spacing starting at red = 0 degrees.
|
||||
-- "s50" in a file/item name means "saturation: 50%".
|
||||
-- Texture brightness levels for the colors are 100%, 66% ("medium"),
|
||||
-- and 33% ("dark").
|
||||
|
||||
shades = {
|
||||
"dark_",
|
||||
"medium_",
|
||||
"" -- represents "no special shade name", e.g. bright.
|
||||
}
|
||||
|
||||
shades2 = {
|
||||
"Dark ",
|
||||
"Medium ",
|
||||
"" -- represents "no special shade name", e.g. bright.
|
||||
}
|
||||
|
||||
hues = {
|
||||
"red",
|
||||
"orange",
|
||||
"yellow",
|
||||
"lime",
|
||||
"green",
|
||||
"aqua",
|
||||
"cyan",
|
||||
"skyblue",
|
||||
"blue",
|
||||
"violet",
|
||||
"magenta",
|
||||
"redviolet"
|
||||
}
|
||||
|
||||
hues2 = {
|
||||
"Red ",
|
||||
"Orange ",
|
||||
"Yellow ",
|
||||
"Lime ",
|
||||
"Green ",
|
||||
"Aqua ",
|
||||
"Cyan ",
|
||||
"Sky Blue ",
|
||||
"Blue ",
|
||||
"Violet ",
|
||||
"Magenta ",
|
||||
"Red-violet "
|
||||
}
|
||||
|
||||
greys = {
|
||||
"black",
|
||||
"darkgrey",
|
||||
"grey",
|
||||
"lightgrey",
|
||||
"white"
|
||||
}
|
||||
|
||||
greys2 = {
|
||||
"Black ",
|
||||
"Dark Grey ",
|
||||
"Medium Grey ",
|
||||
"Light Grey ",
|
||||
"White "
|
||||
}
|
||||
|
||||
greys3 = {
|
||||
"black",
|
||||
"darkgrey_paint",
|
||||
"mediumgrey_paint",
|
||||
"lightgrey_paint",
|
||||
"white_paint"
|
||||
}
|
||||
|
||||
for shade = 1, 3 do
|
||||
|
||||
shadename = shades[shade]
|
||||
shadename2 = shades2[shade]
|
||||
|
||||
for hue = 1, 12 do
|
||||
|
||||
huename = hues[hue]
|
||||
huename2 = hues2[hue]
|
||||
|
||||
colorname = colored_block_modname..":stick_"..shadename..huename
|
||||
pngname = colored_block_modname.."_stick_"..shadename..huename..".png"
|
||||
itemdesc = shadename2..huename2..colored_block_description
|
||||
woodname = colored_block_modname..":wood_"..shadename..huename
|
||||
s50colorname = colored_block_modname..":stick_"..shadename..huename.."_s50"
|
||||
s50pngname = colored_block_modname.."_stick_"..shadename..huename.."_s50.png"
|
||||
s50itemdesc = shadename2..huename2..colored_block_description.." (50% Saturation)"
|
||||
s50woodkname = colored_block_modname..":wood_"..shadename..huename.."_s50"
|
||||
|
||||
minetest.register_craft({
|
||||
type = "fuel",
|
||||
recipe = colorname,
|
||||
burntime = 7,
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
type = "fuel",
|
||||
recipe = s50colorname,
|
||||
burntime = 7,
|
||||
})
|
||||
|
||||
minetest.register_craftitem(colorname, {
|
||||
description = itemdesc,
|
||||
inventory_image = pngname,
|
||||
groups = { coloredsticks=1 }
|
||||
})
|
||||
|
||||
minetest.register_craftitem(s50colorname, {
|
||||
description = s50itemdesc,
|
||||
inventory_image = s50pngname,
|
||||
groups = { coloredsticks=1 }
|
||||
})
|
||||
|
||||
minetest.register_craft( {
|
||||
type = "shapeless",
|
||||
output = colorname.." 4",
|
||||
recipe = {
|
||||
woodname
|
||||
}
|
||||
})
|
||||
|
||||
minetest.register_craft( {
|
||||
type = "shapeless",
|
||||
output = s50colorname.." 4",
|
||||
recipe = {
|
||||
s50woodname
|
||||
}
|
||||
})
|
||||
|
||||
end
|
||||
end
|
||||
|
||||
-- Generate the "light" shades separately, since they don"t have a low-sat version.
|
||||
|
||||
for hue = 1, 12 do
|
||||
huename = hues[hue]
|
||||
huename2 = hues2[hue]
|
||||
colorname = colored_block_modname..":stick_light_"..huename
|
||||
pngname = colored_block_modname.."_stick_light_"..huename..".png"
|
||||
itemdesc = "Light "..huename2..colored_block_description
|
||||
woodname = colored_block_modname..":wood_light_"..huename
|
||||
|
||||
minetest.register_craftitem(colorname, {
|
||||
description = itemdesc,
|
||||
inventory_image = pngname,
|
||||
groups = { coloredsticks=1 }
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
type = "fuel",
|
||||
recipe = colorname,
|
||||
burntime = 7,
|
||||
})
|
||||
|
||||
minetest.register_craft( {
|
||||
type = "shapeless",
|
||||
output = colorname.." 4",
|
||||
recipe = {
|
||||
woodname
|
||||
}
|
||||
})
|
||||
end
|
||||
|
||||
|
||||
-- ============================================================
|
||||
-- The 5 levels of greyscale.
|
||||
--
|
||||
-- Oficially these are 0, 25, 50, 75, and 100% relative to white,
|
||||
-- but in practice, they"re actually 7.5%, 25%, 50%, 75%, and 95%.
|
||||
-- (otherwise black and white would wash out).
|
||||
|
||||
for grey = 1,5 do
|
||||
|
||||
greyname = greys[grey]
|
||||
greyname2 = greys2[grey]
|
||||
greyname3 = greys3[grey]
|
||||
|
||||
greyshadename = colored_block_modname..":stick_"..greyname
|
||||
pngname = colored_block_modname.."_stick_"..greyname..".png"
|
||||
itemdesc = greyname2..colored_block_description
|
||||
greywoodname = colored_block_modname..":wood_"..greyname
|
||||
|
||||
minetest.register_craftitem(greyshadename, {
|
||||
description = itemdesc,
|
||||
inventory_image = pngname,
|
||||
groups = { coloredsticks=1 }
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
type = "fuel",
|
||||
recipe = greyshadename,
|
||||
burntime = 7,
|
||||
})
|
||||
|
||||
minetest.register_craft( {
|
||||
type = "shapeless",
|
||||
output = greyshadename.." 4",
|
||||
recipe = {
|
||||
greywoodname
|
||||
}
|
||||
})
|
||||
|
||||
end
|
||||
|
||||
-- ====================================================================
|
||||
-- This recipe causes all colored sticks to be usable to craft ladders.
|
||||
|
||||
minetest.register_craft({
|
||||
output = "default:ladder 2" ,
|
||||
recipe = {
|
||||
{"group:coloredsticks", "" , "group:coloredsticks" },
|
||||
{"group:coloredsticks", "group:coloredsticks", "group:coloredsticks" },
|
||||
{"group:coloredsticks", "" , "group:coloredsticks" }
|
||||
}
|
||||
})
|
229
stick.lua~
Normal file
@ -0,0 +1,229 @@
|
||||
-- Sticks portion of Colored Wood mod by Vanessa Ezekowitz ~~ 2012-07-17
|
||||
-- based on my unified dyes modding template.
|
||||
--
|
||||
-- License: WTFPL
|
||||
|
||||
colored_block_modname = "coloredwood"
|
||||
colored_block_description = "Stick"
|
||||
neutral_block = "default:stick"
|
||||
|
||||
-- ------------------------------------------------------------------
|
||||
-- Generate all of the base color node definitions and all variations
|
||||
-- except for the greyscale stuff.
|
||||
|
||||
-- Hues are on a 30 degree spacing starting at red = 0 degrees.
|
||||
-- "s50" in a file/item name means "saturation: 50%".
|
||||
-- Texture brightness levels for the colors are 100%, 66% ("medium"),
|
||||
-- and 33% ("dark").
|
||||
|
||||
shades = {
|
||||
"dark_",
|
||||
"medium_",
|
||||
"" -- represents "no special shade name", e.g. bright.
|
||||
}
|
||||
|
||||
shades2 = {
|
||||
"Dark ",
|
||||
"Medium ",
|
||||
"" -- represents "no special shade name", e.g. bright.
|
||||
}
|
||||
|
||||
hues = {
|
||||
"red",
|
||||
"orange",
|
||||
"yellow",
|
||||
"lime",
|
||||
"green",
|
||||
"aqua",
|
||||
"cyan",
|
||||
"skyblue",
|
||||
"blue",
|
||||
"violet",
|
||||
"magenta",
|
||||
"redviolet"
|
||||
}
|
||||
|
||||
hues2 = {
|
||||
"Red ",
|
||||
"Orange ",
|
||||
"Yellow ",
|
||||
"Lime ",
|
||||
"Green ",
|
||||
"Aqua ",
|
||||
"Cyan ",
|
||||
"Sky Blue ",
|
||||
"Blue ",
|
||||
"Violet ",
|
||||
"Magenta ",
|
||||
"Red-violet "
|
||||
}
|
||||
|
||||
greys = {
|
||||
"black",
|
||||
"darkgrey",
|
||||
"grey",
|
||||
"lightgrey",
|
||||
"white"
|
||||
}
|
||||
|
||||
greys2 = {
|
||||
"Black ",
|
||||
"Dark Grey ",
|
||||
"Medium Grey ",
|
||||
"Light Grey ",
|
||||
"White "
|
||||
}
|
||||
|
||||
greys3 = {
|
||||
"black",
|
||||
"darkgrey_paint",
|
||||
"mediumgrey_paint",
|
||||
"lightgrey_paint",
|
||||
"white_paint"
|
||||
}
|
||||
|
||||
for shade = 1, 3 do
|
||||
|
||||
shadename = shades[shade]
|
||||
shadename2 = shades2[shade]
|
||||
|
||||
for hue = 1, 12 do
|
||||
|
||||
huename = hues[hue]
|
||||
huename2 = hues2[hue]
|
||||
|
||||
colorname = colored_block_modname..":stick_"..shadename..huename
|
||||
pngname = colored_block_modname.."_stick_"..shadename..huename..".png"
|
||||
itemdesc = shadename2..huename2..colored_block_description
|
||||
woodname = colored_block_modname..":wood_"..shadename..huename
|
||||
s50colorname = colored_block_modname..":stick_"..shadename..huename.."_s50"
|
||||
s50pngname = colored_block_modname.."_stick_"..shadename..huename.."_s50.png"
|
||||
s50itemdesc = shadename2..huename2..colored_block_description.." (50% Saturation)"
|
||||
s50woodkname = colored_block_modname..":wood_"..shadename..huename.."_s50"
|
||||
|
||||
minetest.register_craft({
|
||||
type = "fuel",
|
||||
recipe = colorname,
|
||||
burntime = 7,
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
type = "fuel",
|
||||
recipe = s50colorname,
|
||||
burntime = 7,
|
||||
})
|
||||
|
||||
minetest.register_craftitem(colorname, {
|
||||
description = itemdesc,
|
||||
inventory_image = pngname,
|
||||
groups = { coloredsticks }
|
||||
})
|
||||
|
||||
minetest.register_craftitem(s50colorname, {
|
||||
description = s50itemdesc,
|
||||
inventory_image = s50pngname,
|
||||
groups = { coloredsticks }
|
||||
})
|
||||
|
||||
minetest.register_craft( {
|
||||
type = "shapeless",
|
||||
output = colorname.." 4",
|
||||
recipe = {
|
||||
woodname
|
||||
}
|
||||
})
|
||||
|
||||
minetest.register_craft( {
|
||||
type = "shapeless",
|
||||
output = s50colorname.." 4",
|
||||
recipe = {
|
||||
s50woodname
|
||||
}
|
||||
})
|
||||
|
||||
end
|
||||
end
|
||||
|
||||
-- Generate the "light" shades separately, since they don"t have a low-sat version.
|
||||
|
||||
for hue = 1, 12 do
|
||||
huename = hues[hue]
|
||||
huename2 = hues2[hue]
|
||||
colorname = colored_block_modname..":stick_light_"..huename
|
||||
pngname = colored_block_modname.."_stick_light_"..huename..".png"
|
||||
itemdesc = "Light "..huename2..colored_block_description
|
||||
woodname = colored_block_modname..":wood_light_"..huename
|
||||
|
||||
minetest.register_craftitem(colorname, {
|
||||
description = itemdesc,
|
||||
inventory_image = pngname,
|
||||
groups = { coloredsticks }
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
type = "fuel",
|
||||
recipe = colorname,
|
||||
burntime = 7,
|
||||
})
|
||||
|
||||
minetest.register_craft( {
|
||||
type = "shapeless",
|
||||
output = colorname.." 4",
|
||||
recipe = {
|
||||
woodname
|
||||
}
|
||||
})
|
||||
end
|
||||
|
||||
|
||||
-- ============================================================
|
||||
-- The 5 levels of greyscale.
|
||||
--
|
||||
-- Oficially these are 0, 25, 50, 75, and 100% relative to white,
|
||||
-- but in practice, they"re actually 7.5%, 25%, 50%, 75%, and 95%.
|
||||
-- (otherwise black and white would wash out).
|
||||
|
||||
for grey = 1,5 do
|
||||
|
||||
greyname = greys[grey]
|
||||
greyname2 = greys2[grey]
|
||||
greyname3 = greys3[grey]
|
||||
|
||||
greyshadename = colored_block_modname..":stick_"..greyname
|
||||
pngname = colored_block_modname.."_stick_"..greyname..".png"
|
||||
itemdesc = greyname2..colored_block_description
|
||||
greywoodname = colored_block_modname..":wood_"..greyname
|
||||
|
||||
minetest.register_craftitem(greyshadename, {
|
||||
description = itemdesc,
|
||||
inventory_image = pngname,
|
||||
groups = { coloredsticks }
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
type = "fuel",
|
||||
recipe = greyshadename,
|
||||
burntime = 7,
|
||||
})
|
||||
|
||||
minetest.register_craft( {
|
||||
type = "shapeless",
|
||||
output = greyshadename.." 4",
|
||||
recipe = {
|
||||
greywoodname
|
||||
}
|
||||
})
|
||||
|
||||
end
|
||||
|
||||
-- ====================================================================
|
||||
-- This recipe causes all colored sticks to be usable to craft ladders.
|
||||
|
||||
minetest.register_craft({
|
||||
output = "default:ladder 2" ,
|
||||
recipe = {
|
||||
{"group:coloredsticks", "" , "group:coloredsticks" },
|
||||
{"group:coloredsticks", "group:coloredsticks", "group:coloredsticks" },
|
||||
{"group:coloredsticks", "" , "group:coloredsticks" }
|
||||
}
|
||||
})
|
BIN
textures/coloredwood_fence_aqua.png
Normal file
After Width: | Height: | Size: 457 B |
BIN
textures/coloredwood_fence_aqua_s50.png
Normal file
After Width: | Height: | Size: 457 B |
BIN
textures/coloredwood_fence_black.png
Normal file
After Width: | Height: | Size: 306 B |
BIN
textures/coloredwood_fence_blue.png
Normal file
After Width: | Height: | Size: 457 B |
BIN
textures/coloredwood_fence_blue_s50.png
Normal file
After Width: | Height: | Size: 457 B |
BIN
textures/coloredwood_fence_cyan.png
Normal file
After Width: | Height: | Size: 457 B |
BIN
textures/coloredwood_fence_cyan_s50.png
Normal file
After Width: | Height: | Size: 457 B |
BIN
textures/coloredwood_fence_dark_aqua.png
Normal file
After Width: | Height: | Size: 457 B |
BIN
textures/coloredwood_fence_dark_aqua_s50.png
Normal file
After Width: | Height: | Size: 457 B |
BIN
textures/coloredwood_fence_dark_blue.png
Normal file
After Width: | Height: | Size: 457 B |
BIN
textures/coloredwood_fence_dark_blue_s50.png
Normal file
After Width: | Height: | Size: 457 B |
BIN
textures/coloredwood_fence_dark_cyan.png
Normal file
After Width: | Height: | Size: 457 B |
BIN
textures/coloredwood_fence_dark_cyan_s50.png
Normal file
After Width: | Height: | Size: 457 B |
BIN
textures/coloredwood_fence_dark_green.png
Normal file
After Width: | Height: | Size: 457 B |
BIN
textures/coloredwood_fence_dark_green_s50.png
Normal file
After Width: | Height: | Size: 457 B |
BIN
textures/coloredwood_fence_dark_lime.png
Normal file
After Width: | Height: | Size: 457 B |
BIN
textures/coloredwood_fence_dark_lime_s50.png
Normal file
After Width: | Height: | Size: 457 B |
BIN
textures/coloredwood_fence_dark_magenta.png
Normal file
After Width: | Height: | Size: 457 B |
BIN
textures/coloredwood_fence_dark_magenta_s50.png
Normal file
After Width: | Height: | Size: 457 B |
BIN
textures/coloredwood_fence_dark_orange.png
Normal file
After Width: | Height: | Size: 457 B |
BIN
textures/coloredwood_fence_dark_orange_s50.png
Normal file
After Width: | Height: | Size: 457 B |
BIN
textures/coloredwood_fence_dark_red.png
Normal file
After Width: | Height: | Size: 457 B |
BIN
textures/coloredwood_fence_dark_red_s50.png
Normal file
After Width: | Height: | Size: 457 B |
BIN
textures/coloredwood_fence_dark_redviolet.png
Normal file
After Width: | Height: | Size: 457 B |
BIN
textures/coloredwood_fence_dark_redviolet_s50.png
Normal file
After Width: | Height: | Size: 457 B |
BIN
textures/coloredwood_fence_dark_skyblue.png
Normal file
After Width: | Height: | Size: 457 B |
BIN
textures/coloredwood_fence_dark_skyblue_s50.png
Normal file
After Width: | Height: | Size: 457 B |
BIN
textures/coloredwood_fence_dark_violet.png
Normal file
After Width: | Height: | Size: 457 B |
BIN
textures/coloredwood_fence_dark_violet_s50.png
Normal file
After Width: | Height: | Size: 457 B |
BIN
textures/coloredwood_fence_dark_yellow.png
Normal file
After Width: | Height: | Size: 457 B |
BIN
textures/coloredwood_fence_dark_yellow_s50.png
Normal file
After Width: | Height: | Size: 457 B |
BIN
textures/coloredwood_fence_darkgrey.png
Normal file
After Width: | Height: | Size: 332 B |
BIN
textures/coloredwood_fence_green.png
Normal file
After Width: | Height: | Size: 457 B |
BIN
textures/coloredwood_fence_green_s50.png
Normal file
After Width: | Height: | Size: 457 B |
BIN
textures/coloredwood_fence_grey.png
Normal file
After Width: | Height: | Size: 341 B |
BIN
textures/coloredwood_fence_light_aqua.png
Normal file
After Width: | Height: | Size: 457 B |
BIN
textures/coloredwood_fence_light_blue.png
Normal file
After Width: | Height: | Size: 457 B |
BIN
textures/coloredwood_fence_light_cyan.png
Normal file
After Width: | Height: | Size: 457 B |
BIN
textures/coloredwood_fence_light_green.png
Normal file
After Width: | Height: | Size: 457 B |
BIN
textures/coloredwood_fence_light_lime.png
Normal file
After Width: | Height: | Size: 457 B |
BIN
textures/coloredwood_fence_light_magenta.png
Normal file
After Width: | Height: | Size: 457 B |
BIN
textures/coloredwood_fence_light_orange.png
Normal file
After Width: | Height: | Size: 457 B |
BIN
textures/coloredwood_fence_light_red.png
Normal file
After Width: | Height: | Size: 457 B |
BIN
textures/coloredwood_fence_light_redviolet.png
Normal file
After Width: | Height: | Size: 457 B |
BIN
textures/coloredwood_fence_light_skyblue.png
Normal file
After Width: | Height: | Size: 457 B |
BIN
textures/coloredwood_fence_light_violet.png
Normal file
After Width: | Height: | Size: 457 B |
BIN
textures/coloredwood_fence_light_yellow.png
Normal file
After Width: | Height: | Size: 457 B |
BIN
textures/coloredwood_fence_lightgrey.png
Normal file
After Width: | Height: | Size: 350 B |
BIN
textures/coloredwood_fence_lime.png
Normal file
After Width: | Height: | Size: 457 B |
BIN
textures/coloredwood_fence_lime_s50.png
Normal file
After Width: | Height: | Size: 457 B |
BIN
textures/coloredwood_fence_magenta.png
Normal file
After Width: | Height: | Size: 457 B |
BIN
textures/coloredwood_fence_magenta_s50.png
Normal file
After Width: | Height: | Size: 457 B |
BIN
textures/coloredwood_fence_medium_aqua.png
Normal file
After Width: | Height: | Size: 457 B |
BIN
textures/coloredwood_fence_medium_aqua_s50.png
Normal file
After Width: | Height: | Size: 457 B |
BIN
textures/coloredwood_fence_medium_blue.png
Normal file
After Width: | Height: | Size: 457 B |
BIN
textures/coloredwood_fence_medium_blue_s50.png
Normal file
After Width: | Height: | Size: 457 B |
BIN
textures/coloredwood_fence_medium_cyan.png
Normal file
After Width: | Height: | Size: 457 B |
BIN
textures/coloredwood_fence_medium_cyan_s50.png
Normal file
After Width: | Height: | Size: 457 B |
BIN
textures/coloredwood_fence_medium_green.png
Normal file
After Width: | Height: | Size: 457 B |
BIN
textures/coloredwood_fence_medium_green_s50.png
Normal file
After Width: | Height: | Size: 457 B |
BIN
textures/coloredwood_fence_medium_lime.png
Normal file
After Width: | Height: | Size: 457 B |
BIN
textures/coloredwood_fence_medium_lime_s50.png
Normal file
After Width: | Height: | Size: 457 B |
BIN
textures/coloredwood_fence_medium_magenta.png
Normal file
After Width: | Height: | Size: 457 B |
BIN
textures/coloredwood_fence_medium_magenta_s50.png
Normal file
After Width: | Height: | Size: 457 B |
BIN
textures/coloredwood_fence_medium_orange.png
Normal file
After Width: | Height: | Size: 457 B |
BIN
textures/coloredwood_fence_medium_orange_s50.png
Normal file
After Width: | Height: | Size: 457 B |
BIN
textures/coloredwood_fence_medium_red.png
Normal file
After Width: | Height: | Size: 457 B |
BIN
textures/coloredwood_fence_medium_red_s50.png
Normal file
After Width: | Height: | Size: 457 B |
BIN
textures/coloredwood_fence_medium_redviolet.png
Normal file
After Width: | Height: | Size: 457 B |
BIN
textures/coloredwood_fence_medium_redviolet_s50.png
Normal file
After Width: | Height: | Size: 457 B |
BIN
textures/coloredwood_fence_medium_skyblue.png
Normal file
After Width: | Height: | Size: 457 B |
BIN
textures/coloredwood_fence_medium_skyblue_s50.png
Normal file
After Width: | Height: | Size: 457 B |
BIN
textures/coloredwood_fence_medium_violet.png
Normal file
After Width: | Height: | Size: 457 B |
BIN
textures/coloredwood_fence_medium_violet_s50.png
Normal file
After Width: | Height: | Size: 457 B |
BIN
textures/coloredwood_fence_medium_yellow.png
Normal file
After Width: | Height: | Size: 457 B |
BIN
textures/coloredwood_fence_medium_yellow_s50.png
Normal file
After Width: | Height: | Size: 457 B |
BIN
textures/coloredwood_fence_orange.png
Normal file
After Width: | Height: | Size: 457 B |
BIN
textures/coloredwood_fence_orange_s50.png
Normal file
After Width: | Height: | Size: 457 B |
BIN
textures/coloredwood_fence_red.png
Normal file
After Width: | Height: | Size: 457 B |
BIN
textures/coloredwood_fence_red_s50.png
Normal file
After Width: | Height: | Size: 457 B |
BIN
textures/coloredwood_fence_redviolet.png
Normal file
After Width: | Height: | Size: 457 B |
BIN
textures/coloredwood_fence_redviolet_s50.png
Normal file
After Width: | Height: | Size: 457 B |
BIN
textures/coloredwood_fence_skyblue.png
Normal file
After Width: | Height: | Size: 457 B |
BIN
textures/coloredwood_fence_skyblue_s50.png
Normal file
After Width: | Height: | Size: 457 B |
BIN
textures/coloredwood_fence_violet.png
Normal file
After Width: | Height: | Size: 457 B |
BIN
textures/coloredwood_fence_violet_s50.png
Normal file
After Width: | Height: | Size: 457 B |
BIN
textures/coloredwood_fence_white.png
Normal file
After Width: | Height: | Size: 347 B |
BIN
textures/coloredwood_fence_yellow.png
Normal file
After Width: | Height: | Size: 457 B |
BIN
textures/coloredwood_fence_yellow_s50.png
Normal file
After Width: | Height: | Size: 457 B |
BIN
textures/coloredwood_stick_aqua.png
Normal file
After Width: | Height: | Size: 240 B |
BIN
textures/coloredwood_stick_aqua_s50.png
Normal file
After Width: | Height: | Size: 240 B |