Skip to content

Commit

Permalink
candles now use [multiply for colour, _de translation added (thx mrun…
Browse files Browse the repository at this point in the history
…creative)
  • Loading branch information
tenplus1 committed Nov 25, 2024
1 parent c1a5303 commit a23ef03
Show file tree
Hide file tree
Showing 38 changed files with 62 additions and 17 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
the new layout for compatibility if wanted.
- Update settings.
- Candles use [multiply for colour.

### 1.31
- Fix fishing biome checks
Expand Down
48 changes: 31 additions & 17 deletions extra.lua
Original file line number Diff line number Diff line change
Expand Up @@ -188,23 +188,40 @@ minetest.register_craft({

-- candle helper function

local function add_candle(col, dcol)
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 rcol = ""
local function add_candle(col, dcol)

if col ~= "" then
rcol = col
col = "_" .. col
end
local under = "" ; if dcol ~= "" then under = "_" end

minetest.register_node("ethereal:candle" .. col, {
minetest.register_node("ethereal:candle" .. under .. col, {
description = S(dcol .. "Candle"),
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 = {
{
name = "ethereal_candle" .. col .. ".png",
name = "ethereal_candle_base.png^[multiply:#"
.. candle_colors[col] .. "70^ethereal_candle_flame.png",
animation = {
type="vertical_frames", aspect_w = 32, aspect_h = 32, length = 1.0
}
Expand All @@ -221,19 +238,16 @@ local function add_candle(col, dcol)
}
})

if col ~= "" then

if dcol ~= "" then
minetest.register_craft({
output = "ethereal:candle" .. col,
recipe = {
{"group:candle", "dye:" .. rcol},
}
output = "ethereal:candle" .. under .. col,
recipe = { {"group:candle", "dye:" .. col} }
})
end
end

add_candle("", "")
add_candle("black", "Black ") -- candle colour textures by wRothbard
add_candle("black", "Black ")
add_candle("blue", "Blue ")
add_candle("brown", "Brown ")
add_candle("cyan", "Cyan ")
Expand Down
15 changes: 15 additions & 0 deletions locale/ethereal.de.tr
Original file line number Diff line number Diff line change
Expand Up @@ -134,3 +134,18 @@ Birch Wood=Birkenholz
Bamboo=Bambus
Olive Trunk=
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
15 changes: 15 additions & 0 deletions locale/template.txt
Original file line number Diff line number Diff line change
Expand Up @@ -135,3 +135,18 @@ Birch Wood=
Bamboo=
Olive Trunk=
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=
Binary file removed textures/ethereal_candle.png
Binary file not shown.
Binary file added textures/ethereal_candle_base.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added textures/ethereal_candle_base_inv.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed textures/ethereal_candle_black.png
Binary file not shown.
Binary file removed textures/ethereal_candle_black_static.png
Binary file not shown.
Binary file removed textures/ethereal_candle_blue.png
Binary file not shown.
Binary file removed textures/ethereal_candle_blue_static.png
Binary file not shown.
Binary file removed textures/ethereal_candle_brown.png
Binary file not shown.
Binary file removed textures/ethereal_candle_brown_static.png
Binary file not shown.
Binary file removed textures/ethereal_candle_cyan.png
Binary file not shown.
Binary file removed textures/ethereal_candle_cyan_static.png
Binary file not shown.
Binary file removed textures/ethereal_candle_dark_green.png
Binary file not shown.
Binary file removed textures/ethereal_candle_dark_green_static.png
Binary file not shown.
Binary file removed textures/ethereal_candle_dark_grey.png
Binary file not shown.
Binary file removed textures/ethereal_candle_dark_grey_static.png
Binary file not shown.
Binary file added textures/ethereal_candle_flame.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added textures/ethereal_candle_flame_inv.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed textures/ethereal_candle_green.png
Binary file not shown.
Binary file removed textures/ethereal_candle_green_static.png
Binary file not shown.
Binary file removed textures/ethereal_candle_grey.png
Binary file not shown.
Binary file removed textures/ethereal_candle_grey_static.png
Binary file not shown.
Binary file removed textures/ethereal_candle_magenta.png
Binary file not shown.
Binary file removed textures/ethereal_candle_magenta_static.png
Binary file not shown.
Binary file removed textures/ethereal_candle_orange.png
Binary file not shown.
Binary file removed textures/ethereal_candle_orange_static.png
Binary file not shown.
Binary file removed textures/ethereal_candle_pink.png
Diff not rendered.
Binary file removed textures/ethereal_candle_pink_static.png
Diff not rendered.
Binary file removed textures/ethereal_candle_red.png
Diff not rendered.
Binary file removed textures/ethereal_candle_red_static.png
Diff not rendered.
Binary file removed textures/ethereal_candle_static.png
Diff not rendered.
Binary file removed textures/ethereal_candle_violet.png
Diff not rendered.
Binary file removed textures/ethereal_candle_violet_static.png
Diff not rendered.
Binary file removed textures/ethereal_candle_yellow.png
Diff not rendered.
Binary file removed textures/ethereal_candle_yellow_static.png
Diff not rendered.

0 comments on commit a23ef03

Please sign in to comment.