Add new colored candles

master
Walter Rothbard 2021-07-08 13:14:51 -05:00
parent f636ed1999
commit c993a8cb9c
35 changed files with 78 additions and 13 deletions

View File

@ -140,22 +140,21 @@ minetest.register_craft({
})
-- Candle from Wax and String/Cotton
minetest.register_node("ethereal:candle", {
local candle_tile_definition = {
name = "ethereal_candle.png",
animation = {
type="vertical_frames",
aspect_w = 32,
aspect_h = 32,
length = 1.0
}
}
local candle_definition = {
description = S("Candle"),
drawtype = "plantlike",
inventory_image = "ethereal_candle_static.png",
wield_image = "ethereal_candle_static.png",
tiles = {
{
name = "ethereal_candle.png",
animation = {
type="vertical_frames",
aspect_w = 32,
aspect_h = 32,
length = 1.0
}
}
},
tiles = { candle_tile_definition },
paramtype = "light",
light_source = 11,
sunlight_propagates = true,
@ -166,7 +165,8 @@ minetest.register_node("ethereal:candle", {
type = "fixed",
fixed = { -0.15, -0.5, -0.15, 0.15, 0, 0.15 }
}
})
}
minetest.register_node("ethereal:candle", candle_definition)
minetest.register_craft({
output = "ethereal:candle 2",
@ -177,6 +177,71 @@ minetest.register_craft({
}
})
local candle_colors = {"black", "blue", "brown", "cyan", "dark_green", "dark_grey", "green", "grey", "magenta", "orange", "pink", "red", "violet", "yellow"}
for _, color in ipairs(candle_colors) do
local node_name = "ethereal:candle_" .. color
local static_texture = "ethereal_candle_static_" .. color .. ".png"
local def = table.copy(candle_definition)
def.description = S("Candle (" .. color .. ")")
local tile_def = table.copy(candle_tile_definition)
tile_def.name = "ethereal_candle_" .. color .. ".png"
def.tiles = { tile_def }
def.inventory_image = static_texture
def.wield_image = static_texture
minetest.register_node(node_name, def)
minetest.register_craft({
type = "shapeless",
output = node_name .. " 2",
recipe = {"dye:" .. color, "ethereal:candle", "ethereal:candle"},
})
end
local xmas_def = table.copy(candle_definition)
xmas_def.description = S("Candle (Christmas)")
local xmas_tile = table.copy(candle_tile_definition)
xmas_tile.name = "ethereal_candle_christmas.png"
xmas_def.tiles = { xmas_tile }
local xmas_static_texture = "ethereal_candle_static_christmas.png"
xmas_def.inventory_image = xmas_static_texture
xmas_def.wield_image = xmas_static_texture
minetest.register_node("ethereal:candle_christmas", xmas_def)
minetest.register_craft({
type = "shapeless",
output = "ethereal:candle_christmas 4",
recipe = {"dye:red", "ethereal:candle", "ethereal:candle", "dye:green", "ethereal:candle", "ethereal:candle"},
})
local dot_def = table.copy(candle_definition)
dot_def.description = S("Candle (Dot)")
local dot_tile = table.copy(candle_tile_definition)
dot_tile.name = "ethereal_candle_dot.png"
dot_def.tiles = { dot_tile }
local dot_static_texture = "ethereal_candle_static_dot.png"
dot_def.inventory_image = dot_static_texture
dot_def.wield_image = dot_static_texture
minetest.register_node("ethereal:candle_dot", dot_def)
minetest.register_craft({
type = "shapeless",
output = "ethereal:candle_dot 4",
recipe = {"dye:magenta", "ethereal:candle", "ethereal:candle", "dye:cyan", "ethereal:candle", "ethereal:candle"},
})
local bday_def = table.copy(candle_definition)
bday_def.description = S("Candle (Birthday)")
local bday_tile = table.copy(candle_tile_definition)
bday_tile.name = "ethereal_candle_birthday.png"
bday_def.tiles = { bday_tile }
local bday_static_texture = "ethereal_candle_static_birthday.png"
bday_def.inventory_image = bday_static_texture
bday_def.wield_image = bday_static_texture
minetest.register_node("ethereal:candle_birthday", bday_def)
minetest.register_craft({
type = "shapeless",
output = "ethereal:candle_birthday 6",
recipe = {"dye:blue", "ethereal:candle", "ethereal:candle", "dye:yellow", "ethereal:candle", "ethereal:candle", "dye:red", "ethereal:candle", "ethereal:candle"},
})
-- Wooden Bowl
minetest.register_craftitem("ethereal:bowl", {
description = S("Bowl"),

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.3 KiB