mirror of
http://repo.or.cz/minetest_pyramids/tsm_pyramids.git
synced 2024-12-22 23:40:18 +01:00
Add desert sandstone deco nodes
This commit is contained in:
parent
7949f68e12
commit
4a8dab67db
@ -1,4 +1,7 @@
|
|||||||
Cracked Sandstone Brick = Rissiger Sandsteinziegel
|
Cracked Sandstone Brick = Rissiger Sandsteinziegel
|
||||||
|
Desert Sandstone with Ankh Engraving = Wüstensandstein mit Ankh-Gravur
|
||||||
|
Desert Sandstone with Cactus Engraving = Wüstensandstein mit Kaktusgravur
|
||||||
|
Desert Sandstone with Scarab Engraving = Wüstensandstein mit Skarabäusgravur
|
||||||
Falling Cracked Sandstone Brick = Fallender rissiger Sandsteinziegel
|
Falling Cracked Sandstone Brick = Fallender rissiger Sandsteinziegel
|
||||||
Mummy Spawn Egg = Mumien-Spawn-Ei
|
Mummy Spawn Egg = Mumien-Spawn-Ei
|
||||||
Mummy Spawner = Mumien-Spawner
|
Mummy Spawner = Mumien-Spawner
|
||||||
|
@ -1,4 +1,7 @@
|
|||||||
Cracked Sandstone Brick =
|
Cracked Sandstone Brick =
|
||||||
|
Desert Sandstone with Ankh Engraving =
|
||||||
|
Desert Sandstone with Cactus Engraving =
|
||||||
|
Desert Sandstone with Scarab Engraving =
|
||||||
Falling Cracked Sandstone Brick =
|
Falling Cracked Sandstone Brick =
|
||||||
Mummy Spawn Egg =
|
Mummy Spawn Egg =
|
||||||
Mummy Spawner =
|
Mummy Spawner =
|
||||||
|
26
nodes.lua
26
nodes.lua
@ -6,22 +6,36 @@ else
|
|||||||
S = function(s) return s end
|
S = function(s) return s end
|
||||||
end
|
end
|
||||||
|
|
||||||
local desc = {S("Sandstone with Eye Engraving"), S("Sandstone with Man Engraving"), S("Sandstone with Sun Engraving")}
|
local img = {
|
||||||
local img = {"eye", "men", "sun"}
|
"eye", "men", "sun",
|
||||||
|
"scarab", "ankh", "cactus"
|
||||||
|
}
|
||||||
|
local desc = {
|
||||||
|
S("Sandstone with Eye Engraving"), S("Sandstone with Man Engraving"), S("Sandstone with Sun Engraving"),
|
||||||
|
S("Desert Sandstone with Scarab Engraving"), S("Desert Sandstone with Ankh Engraving"), S("Desert Sandstone with Cactus Engraving")
|
||||||
|
}
|
||||||
|
|
||||||
local decodesc = ""
|
local decodesc = ""
|
||||||
if minetest.get_modpath("doc_items") then
|
if minetest.get_modpath("doc_items") then
|
||||||
decodesc = doc.sub.items.temp.deco
|
decodesc = doc.sub.items.temp.deco
|
||||||
end
|
end
|
||||||
|
|
||||||
for i=1,3 do
|
for i=1, #img do
|
||||||
|
local sandstone_img, basenode
|
||||||
|
if i > 3 then
|
||||||
|
sandstone_img = "default_desert_sandstone.png"
|
||||||
|
basenode = "default:desert_sandstone"
|
||||||
|
else
|
||||||
|
sandstone_img = "default_sandstone.png"
|
||||||
|
basenode = "default:sandstone"
|
||||||
|
end
|
||||||
minetest.register_node("tsm_pyramids:deco_stone"..i, {
|
minetest.register_node("tsm_pyramids:deco_stone"..i, {
|
||||||
description = desc[i],
|
description = desc[i],
|
||||||
_doc_items_longdesc = decodesc,
|
_doc_items_longdesc = decodesc,
|
||||||
tiles = {"default_sandstone.png", "default_sandstone.png", "default_sandstone.png^tsm_pyramids_"..img[i]..".png"},
|
|
||||||
is_ground_content = false,
|
is_ground_content = false,
|
||||||
groups = minetest.registered_nodes["default:sandstone"].groups,
|
tiles = {sandstone_img, sandstone_img, sandstone_img.."^tsm_pyramids_"..img[i]..".png"},
|
||||||
sounds = default.node_sound_stone_defaults(),
|
groups = minetest.registered_nodes[basenode].groups,
|
||||||
|
sounds = minetest.registered_nodes[basenode].sounds,
|
||||||
})
|
})
|
||||||
end
|
end
|
||||||
|
|
||||||
|
BIN
textures/tsm_pyramids_ankh.png
Normal file
BIN
textures/tsm_pyramids_ankh.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 220 B |
BIN
textures/tsm_pyramids_cactus.png
Normal file
BIN
textures/tsm_pyramids_cactus.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 236 B |
BIN
textures/tsm_pyramids_scarab.png
Normal file
BIN
textures/tsm_pyramids_scarab.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 590 B |
Loading…
Reference in New Issue
Block a user