add coloured candles (thanks wRothbard)

This commit is contained in:
tenplus1 2021-07-09 21:19:22 +01:00
parent f636ed1999
commit 05b7594aa9
30 changed files with 69 additions and 1 deletions

View File

@ -10,6 +10,10 @@ Ethereal Mapgen mod for Minetest (works on all except v6)
## Changelog ## Changelog
### 1.29
- Use "stratum" to generate mesa biome for stripey goodness
- Added coloured candles (thanks wRothbard)
### 1.28 ### 1.28
- Added new Mediterranean biome with Lemon and Olive trees (thanks Felfa) - Added new Mediterranean biome with Lemon and Olive trees (thanks Felfa)
@ -23,7 +27,6 @@ Ethereal Mapgen mod for Minetest (works on all except v6)
- Certain fish can only be found in specific biomes - Certain fish can only be found in specific biomes
- Rename textures so they begin with ethereal_ (sorry texture pack folks) - Rename textures so they begin with ethereal_ (sorry texture pack folks)
- Override mushroom spread abm to use "group:mushroom" - Override mushroom spread abm to use "group:mushroom"
- Use "stratum" to generate mesa biome for stripey goodness
### 1.27 ### 1.27

View File

@ -168,6 +168,7 @@ minetest.register_node("ethereal:candle", {
} }
}) })
-- candle recipe
minetest.register_craft({ minetest.register_craft({
output = "ethereal:candle 2", output = "ethereal:candle 2",
recipe = { recipe = {
@ -177,6 +178,70 @@ minetest.register_craft({
} }
}) })
local function add_candle(col, dcol)
local rcol = ""
if col ~= "" then
rcol = col
col = "_" .. col
end
minetest.register_node("ethereal:candle" .. col, {
description = S(dcol .. "Candle"),
drawtype = "plantlike",
inventory_image = "ethereal_candle" .. col .. "_static.png",
wield_image = "ethereal_candle" .. col .. "_static.png",
tiles = {
{
name = "ethereal_candle" .. col .. ".png",
animation = {
type="vertical_frames",
aspect_w = 32,
aspect_h = 32,
length = 1.0
}
}
},
paramtype = "light",
light_source = 11,
sunlight_propagates = true,
walkable = false,
groups = {dig_immediate = 3, attached_node = 1},
sounds = default.node_sound_defaults(),
selection_box = {
type = "fixed",
fixed = { -0.15, -0.5, -0.15, 0.15, 0, 0.15 }
}
})
if col ~= "" then
minetest.register_craft({
output = "ethereal:candle" .. col,
recipe = {
{"ethereal:candle", "dye:" .. rcol},
}
})
end
end
add_candle("", "")
add_candle("black", " Black") -- candle colour textures by wRothbard
add_candle("blue", " Blue")
add_candle("brown", " Brown")
add_candle("cyan", " Cyan")
add_candle("dark_green", " Dark Green")
add_candle("dark_grey", " Dark Grey")
add_candle("green", " Green")
add_candle("grey", " Grey")
add_candle("magenta", " Magenta")
add_candle("orange", " Orange")
add_candle("pink", " Pink")
add_candle("red", " Red")
add_candle("violet", " Violet")
add_candle("yellow", " Yellow")
-- Wooden Bowl -- Wooden Bowl
minetest.register_craftitem("ethereal:bowl", { minetest.register_craftitem("ethereal:bowl", {
description = S("Bowl"), description = S("Bowl"),

Binary file not shown.

After

Width:  |  Height:  |  Size: 227 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 185 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 227 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 185 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 228 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 186 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 227 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 185 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 228 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 186 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 228 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 186 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 227 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 185 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 228 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 186 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 228 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 186 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 227 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 185 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 227 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 185 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 227 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 185 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 227 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 185 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 228 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 186 B