diff --git a/README.md b/README.md index 4027ddd..cf07f80 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,6 @@ -# Cross mod [cross] +# Christian Cross mod [xtcross] Mod for the _game that adds christian crosses as decorative blocks into the game. + +**License:** MIT diff --git a/description.txt b/description.txt new file mode 100644 index 0000000..fa0e6b7 --- /dev/null +++ b/description.txt @@ -0,0 +1 @@ +Mod for the _game that adds christian crosses as decorative blocks into the game. diff --git a/init.lua b/init.lua old mode 100755 new mode 100644 index 610c54f..7ae6e01 --- a/init.lua +++ b/init.lua @@ -1,25 +1,26 @@ --- cross/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("cross:"..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, - tiles = {"default_stone.png^cross_".. - variant..".png^[makealpha:255,126,126"}, - inventory_image = {"default_stone.png^cross_".. - variant..".png".."^[makealpha:255,126,126"}, - wield_image = {"default_stone.png^cross_".. - variant..".png".."^[makealpha:255,126,126"}, - }) -end +-- 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 diff --git a/mod.conf b/mod.conf new file mode 100644 index 0000000..44ce8de --- /dev/null +++ b/mod.conf @@ -0,0 +1,4 @@ +name = xtcross +depends = default +description = Mod for the _game that adds christian crosses as decorative blocks into the game. + diff --git a/textures/cross_greek.png b/textures/xtcross_greek.png similarity index 100% rename from textures/cross_greek.png rename to textures/xtcross_greek.png diff --git a/textures/cross_latin.png b/textures/xtcross_latin.png similarity index 100% rename from textures/cross_latin.png rename to textures/xtcross_latin.png diff --git a/textures/cross_orthodox.png b/textures/xtcross_orthodox.png similarity index 100% rename from textures/cross_orthodox.png rename to textures/xtcross_orthodox.png diff --git a/textures/cross_papal.png b/textures/xtcross_papal.png similarity index 100% rename from textures/cross_papal.png rename to textures/xtcross_papal.png diff --git a/textures/cross_patriarchal.png b/textures/xtcross_patriarchal.png similarity index 100% rename from textures/cross_patriarchal.png rename to textures/xtcross_patriarchal.png diff --git a/textures/cross_russian.png b/textures/xtcross_russian.png similarity index 100% rename from textures/cross_russian.png rename to textures/xtcross_russian.png