From f684a741e9abdf9174fa535b2098237054dda0b5 Mon Sep 17 00:00:00 2001 From: Scott Worley Date: Sun, 18 Oct 2020 14:57:45 -0700 Subject: [PATCH 1/1] Gold sword --- init.lua | 22 ++++++++++++++++++++++ textures/gold_sword_tool_goldsword.png | Bin 0 -> 271 bytes 2 files changed, 22 insertions(+) create mode 100644 init.lua create mode 100644 textures/gold_sword_tool_goldsword.png diff --git a/init.lua b/init.lua new file mode 100644 index 0000000..7a47cce --- /dev/null +++ b/init.lua @@ -0,0 +1,22 @@ +minetest.register_tool("gold_sword:sword_gold", { + description = "Gold Sword", + inventory_image = "gold_sword_tool_goldsword.png", + tool_capabilities = { + full_punch_interval = 0.9, + max_drop_level=1, + groupcaps={ + snappy={times={[2]=1.40, [3]=0.30}, uses=30, maxlevel=1}, + }, + damage_groups = {fleshy=4}, + }, + sound = {breaks = "default_tool_breaks"}, +}) + +minetest.register_craft({ + output = 'gold_sword:sword_gold', + recipe = { + {'default:gold_ingot'}, + {'default:gold_ingot'}, + {'group:stick'}, + } +}) diff --git a/textures/gold_sword_tool_goldsword.png b/textures/gold_sword_tool_goldsword.png new file mode 100644 index 0000000000000000000000000000000000000000..1cc58a782ebb4892b063d4fe8b86d732292b9d2c GIT binary patch literal 271 zcmeAS@N?(olHy`uVBq!ia0y~yU=RRd4mJh`2Kmqb6B!s7u6epRhFF~5dwHYR;RKPk zhvq>qLbNqKUh<}hw=C=K_Fi<gTe~DWM4f{it!k literal 0 HcmV?d00001 -- 2.50.1