From 43acec290067f9aca534647d46ba1f13cfeb377a Mon Sep 17 00:00:00 2001 From: TechDudie <73961295+TechDudie@users.noreply.github.com> Date: Tue, 9 Feb 2021 12:03:55 -0600 Subject: [PATCH] Add Rubber Goo as replacement for the grinder (#578) Fixes the circular dependency in issue #474 by adding a new item that can be used to craft Rubber. --- technic/crafts.lua | 23 ++++++++++++++++++++++- technic/items.lua | 5 +++++ technic/textures/technic_rubber_goo.png | Bin 0 -> 501 bytes 3 files changed, 27 insertions(+), 1 deletion(-) create mode 100644 technic/textures/technic_rubber_goo.png diff --git a/technic/crafts.lua b/technic/crafts.lua index d43ab34..978bae8 100644 --- a/technic/crafts.lua +++ b/technic/crafts.lua @@ -174,7 +174,6 @@ minetest.register_craft({ }, }) - minetest.register_craft({ output = "default:dirt 2", type = "shapeless", @@ -186,3 +185,25 @@ minetest.register_craft({ "group:sand", }, }) + +minetest.register_craft({ + output = "technic:rubber_goo", + type = "shapeless", + recipe = { + "technic:raw_latex", + "default:coal_lump", + "default:coal_lump", + "default:coal_lump", + "default:coal_lump", + "default:coal_lump", + "default:coal_lump", + "default:coal_lump", + "default:coal_lump", + }, +}) + +minetest.register_craft({ + output = "technic:rubber", + type = "cooking", + recipe = "technic:rubber_goo", +}) diff --git a/technic/items.lua b/technic/items.lua index cf57229..d1565d7 100644 --- a/technic/items.lua +++ b/technic/items.lua @@ -134,6 +134,11 @@ minetest.register_node("technic:machine_casing", { sounds = default.node_sound_stone_defaults(), }) +minetest.register_craftitem("technic:rubber_goo", { + description = S("Rubber Goo"), + inventory_image = "technic_rubber_goo.png", +}) + for p = 0, 35 do local nici = (p ~= 0 and p ~= 7 and p ~= 35) and 1 or nil local psuffix = p == 7 and "" or p diff --git a/technic/textures/technic_rubber_goo.png b/technic/textures/technic_rubber_goo.png new file mode 100644 index 0000000000000000000000000000000000000000..d25cae66d3541d182aa5e9be4dda5af04d400194 GIT binary patch literal 501 zcmeAS@N?(olHy`uVBq!ia0vp^3LwnE1|*BCs=fdz#^NA%Cx&(BWL^R}E~ycoX}-P; zT0k}j17mw80}DtA5K93u0|WB{Mh0de%?J`(zyz07Sip>6gA}f5OZp5{7Vqie7!twx zc8X!%AqN51>w#RqG@QJox*qwGW?Q)$Oqi=bTiR;F@l`3*Mn~vu*9y-5| z@77v>JC?77S3k3?{1Bkyvf=tuKB3qbGnCc|UJ#V6uiw*p-&ywA>hjjpZM{m4r?yyy^;} z%p?v4U3+u8hRk;j9z_iwJ6m7O`07=xInl7dKV56z+P*+u4#qx4J?TmFXQ;4-_&g9` zyyC@g@qNal#|zUvgAQDqAoWdtg88INwqO7GHl$2Eu>IM~JIB)Pf#Gq2>rP0caQ5R3 U)xURUIfH`S)78&qol`;+0B{(&5dZ)H literal 0 HcmV?d00001