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 zcmV+q0r38bP)i+%~=g1V_MKQw>eD5tbOR-iN`r4t#=f6uD z;z+9ueQvFA+y+Pggp(B2FZ#uS+2$lgWpyDdTvs^mD=)fs7$CkH=<@7DdC@h;55Yjb z=j!IXr|U^yWfe9W(gE;2SDO!Udi=xdx^w_u=1Up8YbxJ!Ws}AZz|(BO+q-!(0S+Mm VqA976`<(y)002ovPDHLkV1oUqalilo literal 0 HcmV?d00001 -- 2.44.1