diff --git a/LICENSE.txt b/LICENSE.txt new file mode 100644 index 0000000..e4b117e --- /dev/null +++ b/LICENSE.txt @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) 2021 PrairieWind + +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. \ No newline at end of file diff --git a/README.md b/README.md index 3eb4c42..6e0d5dd 100644 --- a/README.md +++ b/README.md @@ -1 +1 @@ -# minetest-technic_diamond \ No newline at end of file +# minetest-technic_diamond-mod A mod that adds the ability to grind diamonds in technic. Players can also turn coal dust into diamonds or back into coal. WARNING: This mod may cause inflation on economy servers. \ No newline at end of file diff --git a/depends.txt b/depends.txt new file mode 100644 index 0000000..c237b58 --- /dev/null +++ b/depends.txt @@ -0,0 +1,2 @@ +default +technic \ No newline at end of file diff --git a/init.lua b/init.lua new file mode 100644 index 0000000..d1a18ed --- /dev/null +++ b/init.lua @@ -0,0 +1,7 @@ + +minetest.register_craftitem("technic_diamond:diamond_dust", { description="Diamond Dust", inventory_image = "technic_diamond_dust.png"}) +technic.register_grinder_recipe({ input = {"default:diamond"}, output = {"technic_diamond:diamond_dust 2"}}) +technic.register_compressor_recipe({ input = {"technic_diamond:diamond_dust"}, output = {"default:diamond"}}) + +technic.register_compressor_recipe({ input = {"technic:coal_dust 10"}, output = {"default:diamond"}}) +technic.register_compressor_recipe({ input = {"technic:coal_dust"}, input = {"default:coal_lump"}}) \ No newline at end of file diff --git a/mod.conf b/mod.conf new file mode 100644 index 0000000..00c3d96 --- /dev/null +++ b/mod.conf @@ -0,0 +1,2 @@ +name = technic_diamond +depends = default, technic \ No newline at end of file diff --git a/screenshot.png b/screenshot.png new file mode 100644 index 0000000..7662cf2 Binary files /dev/null and b/screenshot.png differ diff --git a/textures/Thumbs.db b/textures/Thumbs.db new file mode 100644 index 0000000..6497264 Binary files /dev/null and b/textures/Thumbs.db differ diff --git a/textures/technic_diamond_dust.png b/textures/technic_diamond_dust.png new file mode 100644 index 0000000..d89fdb7 Binary files /dev/null and b/textures/technic_diamond_dust.png differ