candles now use [multiply for colour, _de translation added (thx mruncreative)
@ -109,6 +109,7 @@ who helped make this mod bigger and better throughout it's release :)
|
|||||||
- Add 'ethereal.old_biomes' setting to stay with older biome settings and not use
|
- Add 'ethereal.old_biomes' setting to stay with older biome settings and not use
|
||||||
the new layout for compatibility if wanted.
|
the new layout for compatibility if wanted.
|
||||||
- Update settings.
|
- Update settings.
|
||||||
|
- Candles use [multiply for colour.
|
||||||
|
|
||||||
### 1.31
|
### 1.31
|
||||||
- Fix fishing biome checks
|
- Fix fishing biome checks
|
||||||
|
48
extra.lua
@ -188,23 +188,40 @@ minetest.register_craft({
|
|||||||
|
|
||||||
-- candle helper function
|
-- candle helper function
|
||||||
|
|
||||||
|
local candle_colors = {
|
||||||
|
[""] = "F7F2CD",
|
||||||
|
["black"] = "40403F",
|
||||||
|
["blue"] = "5587B4",
|
||||||
|
["brown"] = "6D4728",
|
||||||
|
["cyan"] = "78F1B1",
|
||||||
|
["dark_green"] = "23AF23",
|
||||||
|
["dark_grey"] = "868178",
|
||||||
|
["green"] = "96CA32",
|
||||||
|
["grey"] = "C0BAAF",
|
||||||
|
["magenta"] = "C22E7D",
|
||||||
|
["orange"] = "E88817",
|
||||||
|
["pink"] = "FA8B91",
|
||||||
|
["red"] = "CF4727",
|
||||||
|
["violet"] = "975EC0",
|
||||||
|
["yellow"] = "FFF74D"
|
||||||
|
}
|
||||||
|
|
||||||
local function add_candle(col, dcol)
|
local function add_candle(col, dcol)
|
||||||
|
|
||||||
local rcol = ""
|
local under = "" ; if dcol ~= "" then under = "_" end
|
||||||
|
|
||||||
if col ~= "" then
|
minetest.register_node("ethereal:candle" .. under .. col, {
|
||||||
rcol = col
|
|
||||||
col = "_" .. col
|
|
||||||
end
|
|
||||||
|
|
||||||
minetest.register_node("ethereal:candle" .. col, {
|
|
||||||
description = S(dcol .. "Candle"),
|
description = S(dcol .. "Candle"),
|
||||||
drawtype = "plantlike",
|
drawtype = "plantlike",
|
||||||
inventory_image = "ethereal_candle" .. col .. "_static.png",
|
|
||||||
wield_image = "ethereal_candle" .. col .. "_static.png",
|
inventory_image = "ethereal_candle_base_inv.png^[multiply:#"
|
||||||
|
.. candle_colors[col] .. "70^ethereal_candle_flame_inv.png",
|
||||||
|
wield_image = "ethereal_candle_base_inv.png^[multiply:#"
|
||||||
|
.. candle_colors[col] .. "70^ethereal_candle_flame_inv.png",
|
||||||
tiles = {
|
tiles = {
|
||||||
{
|
{
|
||||||
name = "ethereal_candle" .. col .. ".png",
|
name = "ethereal_candle_base.png^[multiply:#"
|
||||||
|
.. candle_colors[col] .. "70^ethereal_candle_flame.png",
|
||||||
animation = {
|
animation = {
|
||||||
type="vertical_frames", aspect_w = 32, aspect_h = 32, length = 1.0
|
type="vertical_frames", aspect_w = 32, aspect_h = 32, length = 1.0
|
||||||
}
|
}
|
||||||
@ -221,19 +238,16 @@ local function add_candle(col, dcol)
|
|||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
if col ~= "" then
|
if dcol ~= "" then
|
||||||
|
|
||||||
minetest.register_craft({
|
minetest.register_craft({
|
||||||
output = "ethereal:candle" .. col,
|
output = "ethereal:candle" .. under .. col,
|
||||||
recipe = {
|
recipe = { {"group:candle", "dye:" .. col} }
|
||||||
{"group:candle", "dye:" .. rcol},
|
|
||||||
}
|
|
||||||
})
|
})
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
add_candle("", "")
|
add_candle("", "")
|
||||||
add_candle("black", "Black ") -- candle colour textures by wRothbard
|
add_candle("black", "Black ")
|
||||||
add_candle("blue", "Blue ")
|
add_candle("blue", "Blue ")
|
||||||
add_candle("brown", "Brown ")
|
add_candle("brown", "Brown ")
|
||||||
add_candle("cyan", "Cyan ")
|
add_candle("cyan", "Cyan ")
|
||||||
|
@ -134,3 +134,18 @@ Birch Wood=Birkenholz
|
|||||||
Bamboo=Bambus
|
Bamboo=Bambus
|
||||||
Olive Trunk=
|
Olive Trunk=
|
||||||
Olive Wood=
|
Olive Wood=
|
||||||
|
Candle=Kerze
|
||||||
|
Black Candle=Schwarze Kerze
|
||||||
|
Blue Candle=Blaue Kerze
|
||||||
|
Brown Candle=Braune Kerze
|
||||||
|
Cyan Candle=Türkise Kerze
|
||||||
|
Dark Green Candle=Dunkelgrüne Kerze
|
||||||
|
Dark Grey Candle=Dunkelgraue Kerze
|
||||||
|
Green Candle=Grüne Kerze
|
||||||
|
Grey Candle=Graue Kerze
|
||||||
|
Magenta Candle=Magenta Kerze
|
||||||
|
Orange Candle=Orange Kerze
|
||||||
|
Pink Candle=Rosa Kerze
|
||||||
|
Red Candle=Rote Kerze
|
||||||
|
Violet Candle=Violette Kerze
|
||||||
|
Yellow Candle=Gelbe Kerze
|
||||||
|
@ -135,3 +135,18 @@ Birch Wood=
|
|||||||
Bamboo=
|
Bamboo=
|
||||||
Olive Trunk=
|
Olive Trunk=
|
||||||
Olive Wood=
|
Olive Wood=
|
||||||
|
Candle=
|
||||||
|
Black Candle=
|
||||||
|
Blue Candle=
|
||||||
|
Brown Candle=
|
||||||
|
Cyan Candle=
|
||||||
|
Dark Green Candle=
|
||||||
|
Dark Grey Candle=
|
||||||
|
Green Candle=
|
||||||
|
Grey Candle=
|
||||||
|
Magenta Candle=
|
||||||
|
Orange Candle=
|
||||||
|
Pink Candle=
|
||||||
|
Red Candle=
|
||||||
|
Violet Candle=
|
||||||
|
Yellow Candle=
|
||||||
|
Before Width: | Height: | Size: 229 B |
BIN
textures/ethereal_candle_base.png
Normal file
After Width: | Height: | Size: 174 B |
BIN
textures/ethereal_candle_base_inv.png
Normal file
After Width: | Height: | Size: 203 B |
Before Width: | Height: | Size: 227 B |
Before Width: | Height: | Size: 185 B |
Before Width: | Height: | Size: 227 B |
Before Width: | Height: | Size: 185 B |
Before Width: | Height: | Size: 228 B |
Before Width: | Height: | Size: 186 B |
Before Width: | Height: | Size: 227 B |
Before Width: | Height: | Size: 185 B |
Before Width: | Height: | Size: 228 B |
Before Width: | Height: | Size: 186 B |
Before Width: | Height: | Size: 228 B |
Before Width: | Height: | Size: 186 B |
BIN
textures/ethereal_candle_flame.png
Normal file
After Width: | Height: | Size: 285 B |
BIN
textures/ethereal_candle_flame_inv.png
Normal file
After Width: | Height: | Size: 148 B |
Before Width: | Height: | Size: 227 B |
Before Width: | Height: | Size: 185 B |
Before Width: | Height: | Size: 228 B |
Before Width: | Height: | Size: 186 B |
Before Width: | Height: | Size: 228 B |
Before Width: | Height: | Size: 186 B |
Before Width: | Height: | Size: 227 B |
Before Width: | Height: | Size: 185 B |
Before Width: | Height: | Size: 227 B |
Before Width: | Height: | Size: 185 B |
Before Width: | Height: | Size: 227 B |
Before Width: | Height: | Size: 185 B |
Before Width: | Height: | Size: 187 B |
Before Width: | Height: | Size: 227 B |
Before Width: | Height: | Size: 185 B |
Before Width: | Height: | Size: 228 B |
Before Width: | Height: | Size: 186 B |