27 lines
1.0 KiB
Lua
27 lines
1.0 KiB
Lua
-- xtcross/init.lua
|
|
-- ==============
|
|
-- This mod is made by rudzik8, and is licensed under the MIT license.
|
|
-- For further details, see the LICENSE file included.
|
|
|
|
-- make a table containing all the cross variants available
|
|
local crosses = {"greek", "latin", "orthodox",
|
|
"papal", "patriarchal", "russian"}
|
|
|
|
-- registering function
|
|
for i, variant in pairs(crosses) do
|
|
minetest.register_node("xtcross:"..variant, {
|
|
-- make the 1st letter of the cross variant uppercase
|
|
description = variant:gsub("^%l", string.upper).." cross",
|
|
drawtype = "torchlike", -- TODO: meshes
|
|
use_texture_alpha = "clip",
|
|
sunlight_propagates = true,
|
|
-- the problem zone
|
|
tiles = {"default_stone.png^xtcross_"..
|
|
variant..".png^[makealpha:255,126,126"},
|
|
inventory_image = {"default_stone.png^xtcross_"..
|
|
variant..".png".."^[makealpha:255,126,126"},
|
|
wield_image = {"default_stone.png^xtcross_"..
|
|
variant..".png".."^[makealpha:255,126,126"},
|
|
})
|
|
end
|