Rename the mod to xtcross, add mod.conf, description.txt
also convert init.lua from DOS mode to UNIXmain
|
@ -1,4 +1,6 @@
|
||||||
# Cross mod [cross]
|
# Christian Cross mod [xtcross]
|
||||||
|
|
||||||
Mod for the _game that adds christian crosses as
|
Mod for the _game that adds christian crosses as
|
||||||
decorative blocks into the game.
|
decorative blocks into the game.
|
||||||
|
|
||||||
|
**License:** MIT
|
||||||
|
|
|
@ -0,0 +1 @@
|
||||||
|
Mod for the _game that adds christian crosses as decorative blocks into the game.
|
|
@ -1,25 +1,26 @@
|
||||||
-- cross/init.lua
|
-- xtcross/init.lua
|
||||||
-- ==============
|
-- ==============
|
||||||
-- This mod is made by rudzik8, and is licensed under the MIT license.
|
-- This mod is made by rudzik8, and is licensed under the MIT license.
|
||||||
-- For further details, see the LICENSE file included.
|
-- For further details, see the LICENSE file included.
|
||||||
|
|
||||||
-- make a table containing all the cross variants available
|
-- make a table containing all the cross variants available
|
||||||
local crosses = {"greek", "latin", "orthodox",
|
local crosses = {"greek", "latin", "orthodox",
|
||||||
"papal", "patriarchal", "russian"}
|
"papal", "patriarchal", "russian"}
|
||||||
|
|
||||||
-- registering function
|
-- registering function
|
||||||
for i, variant in pairs(crosses) do
|
for i, variant in pairs(crosses) do
|
||||||
minetest.register_node("cross:"..variant, {
|
minetest.register_node("xtcross:"..variant, {
|
||||||
-- make the 1st letter of the cross variant uppercase
|
-- make the 1st letter of the cross variant uppercase
|
||||||
description = variant:gsub("^%l", string.upper).." cross",
|
description = variant:gsub("^%l", string.upper).." cross",
|
||||||
drawtype = "torchlike", -- TODO: meshes
|
drawtype = "torchlike", -- TODO: meshes
|
||||||
use_texture_alpha = "clip",
|
use_texture_alpha = "clip",
|
||||||
sunlight_propagates = true,
|
sunlight_propagates = true,
|
||||||
tiles = {"default_stone.png^cross_"..
|
-- the problem zone
|
||||||
variant..".png^[makealpha:255,126,126"},
|
tiles = {"default_stone.png^xtcross_"..
|
||||||
inventory_image = {"default_stone.png^cross_"..
|
variant..".png^[makealpha:255,126,126"},
|
||||||
variant..".png".."^[makealpha:255,126,126"},
|
inventory_image = {"default_stone.png^xtcross_"..
|
||||||
wield_image = {"default_stone.png^cross_"..
|
variant..".png".."^[makealpha:255,126,126"},
|
||||||
variant..".png".."^[makealpha:255,126,126"},
|
wield_image = {"default_stone.png^xtcross_"..
|
||||||
})
|
variant..".png".."^[makealpha:255,126,126"},
|
||||||
end
|
})
|
||||||
|
end
|
||||||
|
|
|
@ -0,0 +1,4 @@
|
||||||
|
name = xtcross
|
||||||
|
depends = default
|
||||||
|
description = Mod for the _game that adds christian crosses as decorative blocks into the game.
|
||||||
|
|
Before Width: | Height: | Size: 150 B After Width: | Height: | Size: 150 B |
Before Width: | Height: | Size: 161 B After Width: | Height: | Size: 161 B |
Before Width: | Height: | Size: 191 B After Width: | Height: | Size: 191 B |
Before Width: | Height: | Size: 170 B After Width: | Height: | Size: 170 B |
Before Width: | Height: | Size: 169 B After Width: | Height: | Size: 169 B |
Before Width: | Height: | Size: 183 B After Width: | Height: | Size: 183 B |