commit dc2fc1d05b6030a9f51dc3bc8ff8819952839c2c Author: Eric Rustrum <48301203+MadKamel@users.noreply.github.com> Date: Wed Feb 2 15:09:15 2022 -0800 Initial commit diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..dfe0770 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,2 @@ +# Auto detect text files and perform LF normalization +* text=auto diff --git a/README.md b/README.md new file mode 100644 index 0000000..01f85b2 --- /dev/null +++ b/README.md @@ -0,0 +1,2 @@ +# xenozapper + The Xeno-Zapper from Satisfactory, but it's a Minetest weapon. diff --git a/init.lua b/init.lua new file mode 100644 index 0000000..928b317 --- /dev/null +++ b/init.lua @@ -0,0 +1,19 @@ +minetest.register_tool(":default:xenozapper", { + description = "Zapper", + inventory_image = "zapper.png", + wield_image = "zapper.png^[transformR90", + tool_capabilities = { + full_punch_interval = 0.5, + max_drop_level=1, + damage_groups = {fleshy=3}, + } +}) + +minetest.register_craft({ + output = "default:xenozapper", + recipe = { + {"default:steel_ingot", "", "default:steel_ingot"}, + {"", "default:copper_ingot", ""}, + {"", "default:steelblock", ""} + } +}) \ No newline at end of file diff --git a/textures/zapper.png b/textures/zapper.png new file mode 100644 index 0000000..ade2ed2 Binary files /dev/null and b/textures/zapper.png differ