commit 15454a693a0a78404ac8159422d4c57988d4bde1 Author: Mikita Wiśniewski Date: Thu Jul 6 12:38:28 2023 +0700 Initial commit diff --git a/LICENSE b/LICENSE new file mode 100755 index 0000000..70c55a7 --- /dev/null +++ b/LICENSE @@ -0,0 +1,19 @@ +Copyright 2023, Mikita "rudzik8" Wiśniewski + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. diff --git a/README.md b/README.md new file mode 100644 index 0000000..4027ddd --- /dev/null +++ b/README.md @@ -0,0 +1,4 @@ +# Cross mod [cross] + +Mod for the _game that adds christian crosses as +decorative blocks into the game. diff --git a/cross_mod.tgz b/cross_mod.tgz new file mode 100644 index 0000000..e7e7542 Binary files /dev/null and b/cross_mod.tgz differ diff --git a/init.lua b/init.lua new file mode 100755 index 0000000..20f4fee --- /dev/null +++ b/init.lua @@ -0,0 +1,25 @@ +-- 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^crosses_".. + variant..".png^[makealpha:255,126,126^"}, + inventory_image = {"default_stone.png^crosses_".. + variant..".png".."^[makealpha:255,126,126^"}, + wield_image = {"default_stone.png^crosses_".. + variant..".png".."^[makealpha:255,126,126^"}, + }) +end \ No newline at end of file diff --git a/textures/Thumbs.db b/textures/Thumbs.db new file mode 100755 index 0000000..2368ec7 Binary files /dev/null and b/textures/Thumbs.db differ diff --git a/textures/cross_greek.png b/textures/cross_greek.png new file mode 100755 index 0000000..37246a9 Binary files /dev/null and b/textures/cross_greek.png differ diff --git a/textures/cross_latin.png b/textures/cross_latin.png new file mode 100755 index 0000000..c7a341c Binary files /dev/null and b/textures/cross_latin.png differ diff --git a/textures/cross_orthodox.png b/textures/cross_orthodox.png new file mode 100755 index 0000000..7ccf803 Binary files /dev/null and b/textures/cross_orthodox.png differ diff --git a/textures/cross_papal.png b/textures/cross_papal.png new file mode 100755 index 0000000..73c56b6 Binary files /dev/null and b/textures/cross_papal.png differ diff --git a/textures/cross_patriarchal.png b/textures/cross_patriarchal.png new file mode 100755 index 0000000..6e1c1c0 Binary files /dev/null and b/textures/cross_patriarchal.png differ diff --git a/textures/cross_russian.png b/textures/cross_russian.png new file mode 100755 index 0000000..8405137 Binary files /dev/null and b/textures/cross_russian.png differ