Rename the mod to xtcross, add mod.conf, description.txt

also convert init.lua from DOS mode to UNIX
main
Mikita Wiśniewski 2023-07-06 20:53:48 +07:00
parent e41408b0a3
commit 640f94ad03
10 changed files with 34 additions and 26 deletions

View File

@ -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

1
description.txt Normal file
View File

@ -0,0 +1 @@
Mod for the _game that adds christian crosses as decorative blocks into the game.

51
init.lua Executable file → Normal file
View File

@ -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

4
mod.conf Normal file
View File

@ -0,0 +1,4 @@
name = xtcross
depends = default
description = Mod for the _game that adds christian crosses as decorative blocks into the game.

View File

Before

Width:  |  Height:  |  Size: 150 B

After

Width:  |  Height:  |  Size: 150 B

View File

Before

Width:  |  Height:  |  Size: 161 B

After

Width:  |  Height:  |  Size: 161 B

View File

Before

Width:  |  Height:  |  Size: 191 B

After

Width:  |  Height:  |  Size: 191 B

View File

Before

Width:  |  Height:  |  Size: 170 B

After

Width:  |  Height:  |  Size: 170 B

View File

Before

Width:  |  Height:  |  Size: 169 B

After

Width:  |  Height:  |  Size: 169 B

View File

Before

Width:  |  Height:  |  Size: 183 B

After

Width:  |  Height:  |  Size: 183 B