From 99469ff1c5541ac419dfe4e85e524a15eaf97267 Mon Sep 17 00:00:00 2001 From: TheRandomLegoBrick Date: Mon, 20 Jun 2022 12:46:59 -0700 Subject: [PATCH 1/2] Add grindstones --- mods/ENTITIES/mobs_mc/villager.lua | 2 +- mods/ITEMS/mcl_grindstone/init.lua | 39 ++++++++++++++++++ mods/ITEMS/mcl_grindstone/mod.conf | 3 ++ .../textures/grindstone_front.png | Bin 0 -> 420 bytes .../textures/grindstone_side.png | Bin 0 -> 416 bytes .../textures/grindstone_top.png | Bin 0 -> 339 bytes 6 files changed, 43 insertions(+), 1 deletion(-) create mode 100644 mods/ITEMS/mcl_grindstone/init.lua create mode 100644 mods/ITEMS/mcl_grindstone/mod.conf create mode 100644 mods/ITEMS/mcl_grindstone/textures/grindstone_front.png create mode 100644 mods/ITEMS/mcl_grindstone/textures/grindstone_side.png create mode 100644 mods/ITEMS/mcl_grindstone/textures/grindstone_top.png diff --git a/mods/ENTITIES/mobs_mc/villager.lua b/mods/ENTITIES/mobs_mc/villager.lua index c077ca944..1d62082c9 100644 --- a/mods/ENTITIES/mobs_mc/villager.lua +++ b/mods/ENTITIES/mobs_mc/villager.lua @@ -427,7 +427,7 @@ local professions = { "mobs_mc_villager_weaponsmith.png", "mobs_mc_villager_weaponsmith.png", }, - jobsite = "mcl_furnaces:furnace", --FIXME: grindstone + jobsite = "mcl_grindstone:grindstone", trades = { { { { "mcl_core:coal_lump", 15, 15 }, E1 }, diff --git a/mods/ITEMS/mcl_grindstone/init.lua b/mods/ITEMS/mcl_grindstone/init.lua new file mode 100644 index 000000000..52c5b2e99 --- /dev/null +++ b/mods/ITEMS/mcl_grindstone/init.lua @@ -0,0 +1,39 @@ +local S = minetest.get_translator(minetest.get_current_modname()) + +minetest.register_node("mcl_grindstone:grindstone", { + description = S("Grindstone"), + _tt_help = S("Used to disenchant/fix tools"), + _doc_items_longdesc = S("This is currently a decorative block which serves as the weapon smith's work station. In minecraft this is used to disenchant/fix tools howerver this has not yet been implemented"), + tiles = { + "grindstone_top.png", + "grindstone_top.png", + "grindstone_side.png", + "grindstone_side.png", + "grindstone_front.png", + "grindstone_front.png" + }, + drawtype = "nodebox", + paramtype2 = "facedir", + node_box = { + type = "fixed", + -- created with nodebox editor + fixed = { + {-0.25, -0.25, -0.375, 0.25, 0.5, 0.375}, + {-0.375, -0.0625, -0.1875, -0.25, 0.3125, 0.1875}, + {0.25, -0.0625, -0.1875, 0.375, 0.3125, 0.1875}, + {0.25, -0.5, -0.125, 0.375, -0.0625, 0.125}, + {-0.375, -0.5, -0.125, -0.25, -0.0625, 0.125}, + } + }, + groups = {pickaxey = 1, deco_block = 1}, + _mcl_blast_resistance = 6, + _mcl_hardness = 2 +}) + +minetest.register_craft({ + output = "mcl_grindstone:grindstone", + recipe = { + { "mcl_core:stick", "mcl_stairs:slab_stone_rough", "mcl_core:stick"}, + { "group:wood", "", "group:wood"}, + } +}) \ No newline at end of file diff --git a/mods/ITEMS/mcl_grindstone/mod.conf b/mods/ITEMS/mcl_grindstone/mod.conf new file mode 100644 index 000000000..154de013f --- /dev/null +++ b/mods/ITEMS/mcl_grindstone/mod.conf @@ -0,0 +1,3 @@ +name = mcl_grindstone +author = TheRandomLegoBrick +description = Adds a cool looking block for the weaponsmiths jobsite \ No newline at end of file diff --git a/mods/ITEMS/mcl_grindstone/textures/grindstone_front.png b/mods/ITEMS/mcl_grindstone/textures/grindstone_front.png new file mode 100644 index 0000000000000000000000000000000000000000..ec72b0470dec597fb74b9d59468e9e96de59dc8b GIT binary patch literal 420 zcmV;V0bBlwP)Px#1ZP1_K>z@;j|==^1poj532;bRa{vGi!vFvd!vV){sAK>D0Xa!TK~y+TeNjzL zgFqNX?R0>KPzrUShwuU{Jb){g?mU54@-SS(g)ud1p-3nQVS%r{uLD8j%NOR&oA><; zbJF*{bwrXRd7kh0d#yFLMNvdi6a+yW$20(^vX0O+4Zcb#ZYP)~pggLAbY18BKE*L4 z;qK-d;dvgnK-;z$2?XN9{VjsJBrF!rdc7h?ZCc68vaIW`?RH0H7zrxAya0iba1(T> zs>2Z>36Kyd299AU{)wRjrZRUh*GIvDGCHsb~)Ve_7ql{k!*v!Tk< z^DBa)Bxp5L>I@_Cz09kjAw)e_2r81`xK6kVK=5!d;crq0(81R8%ZqbvXIxxIXW8e~ z52%ds7%pEnZ{*SeZr8QRe*U#Js6BsuzB>aOgTp|w4vc3Tf=Yve*jk@vx O0000Px#1ZP1_K>z@;j|==^1poj532;bRa{vGi!vFvd!vV){sAK>D0X0cPK~y+TZIUrg z!$1&47lfU7BSV}Jpyw9I5)}mn1r-e~H%ktH=#h|o0Uv;ZhQc8@lCgtuVV*pjjamFP z8jt_(%%2&1uW1^kRGOwmQG{Vg+=Y;M;y8}+CLu|ZJkRU8CiXlJZvhDtMUf=z3oH0( zQI;i_EX>&!2l7BS%QD~hU!LZ|RMkd;>$?ZM?e>oX;NEiiiIwFB6A~R61MCuL#zacZ zW)nG8n#f}uY?GJV4Ltd(zh(n1G=Npy%O=ez}^RWQFs7q?dz zS`Vx08^3sbHtZJe41jz1>2xfw4tf#*Px#1ZP1_K>z@;j|==^1poj532;bRa{vGi!vFvd!vV){sAK>D0O(0XK~y+TwUW&W zf>01fEf7r+5qt$-BHXrU*{Ub#O??^>M6^;|*n#hMQ8B1RXQ4CK`R3=2yJ?!7U)Y=X z*DNX&MN!vv*L9xf;WkZ^rfHHSd7di(HY)Ue&(n2XxhvKJ(vuZq9LG40bvVZeZrAhW zbc~`%E)2s!OBfvTi2$8%v_x)&%5K|MwlISG{TT#4h6WI{#3U+9fDRWGl#FKNT9ivH z1a<~HZdFw>EJhH9hsUF*f(@Pb1_a1hFRm<0CPv27_kCnpmVI0tEoonNYbfV;4GRIV lID)uM Date: Mon, 20 Jun 2022 13:31:23 -0700 Subject: [PATCH 2/2] Fix indentation --- mods/ITEMS/mcl_grindstone/init.lua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/mods/ITEMS/mcl_grindstone/init.lua b/mods/ITEMS/mcl_grindstone/init.lua index 52c5b2e99..f373070cd 100644 --- a/mods/ITEMS/mcl_grindstone/init.lua +++ b/mods/ITEMS/mcl_grindstone/init.lua @@ -1,7 +1,7 @@ local S = minetest.get_translator(minetest.get_current_modname()) minetest.register_node("mcl_grindstone:grindstone", { - description = S("Grindstone"), + description = S("Grindstone"), _tt_help = S("Used to disenchant/fix tools"), _doc_items_longdesc = S("This is currently a decorative block which serves as the weapon smith's work station. In minecraft this is used to disenchant/fix tools howerver this has not yet been implemented"), tiles = { @@ -13,10 +13,10 @@ minetest.register_node("mcl_grindstone:grindstone", { "grindstone_front.png" }, drawtype = "nodebox", - paramtype2 = "facedir", + paramtype2 = "facedir", node_box = { type = "fixed", - -- created with nodebox editor + -- created with nodebox editor fixed = { {-0.25, -0.25, -0.375, 0.25, 0.5, 0.375}, {-0.375, -0.0625, -0.1875, -0.25, 0.3125, 0.1875},