From 6cf6df426bb720b4359a4ce8324a083f56fa89e8 Mon Sep 17 00:00:00 2001 From: h-v-smacker Date: Mon, 19 Feb 2018 02:58:47 +0300 Subject: [PATCH] HV furnace and extra recipes --- technic/machines/HV/electric_furnace.lua | 18 +++ technic/machines/HV/init.lua | 2 + technic/machines/LV/cnc_nodes.lua | 132 +++++++++++++++++- technic/machines/register/alloy_recipes.lua | 6 + .../machines/register/compressor_recipes.lua | 7 + technic/machines/register/grinder_recipes.lua | 5 + .../technic_hv_electric_furnace_bottom.png | Bin 0 -> 422 bytes .../technic_hv_electric_furnace_front.png | Bin 0 -> 543 bytes ...chnic_hv_electric_furnace_front_active.png | Bin 0 -> 542 bytes .../technic_hv_electric_furnace_side.png | Bin 0 -> 425 bytes .../technic_hv_electric_furnace_side_tube.png | Bin 0 -> 2444 bytes .../technic_hv_electric_furnace_top.png | Bin 0 -> 1750 bytes 12 files changed, 167 insertions(+), 3 deletions(-) create mode 100644 technic/machines/HV/electric_furnace.lua create mode 100644 technic/textures/technic_hv_electric_furnace_bottom.png create mode 100644 technic/textures/technic_hv_electric_furnace_front.png create mode 100644 technic/textures/technic_hv_electric_furnace_front_active.png create mode 100644 technic/textures/technic_hv_electric_furnace_side.png create mode 100644 technic/textures/technic_hv_electric_furnace_side_tube.png create mode 100644 technic/textures/technic_hv_electric_furnace_top.png diff --git a/technic/machines/HV/electric_furnace.lua b/technic/machines/HV/electric_furnace.lua new file mode 100644 index 0000000..a11bb59 --- /dev/null +++ b/technic/machines/HV/electric_furnace.lua @@ -0,0 +1,18 @@ +-- MV Electric Furnace +-- This is a faster version of the stone furnace which runs on EUs +-- In addition to this it can be upgraded with microcontrollers and batteries +-- This new version uses the batteries to lower the power consumption of the machine +-- Also in addition this furnace can be attached to the pipe system from the pipeworks mod. + +-- FIXME: kpoppel I'd like to introduce an induction heating element here also +minetest.register_craft({ + output = 'technic:hv_electric_furnace', + recipe = { + {'technic:stainless_steel_ingot', 'technic:lv_electric_furnace', 'technic:stainless_steel_ingot'}, + {'pipeworks:tube_1', 'technic:hv_transformer', 'pipeworks:tube_1'}, + {'technic:stainless_steel_ingot', 'technic:hv_cable', 'technic:stainless_steel_ingot'}, + } +}) + +technic.register_electric_furnace({tier="HV", upgrade=1, tube=1, demand={4000, 2500, 1500}, speed=12}) + diff --git a/technic/machines/HV/init.lua b/technic/machines/HV/init.lua index d7136b4..20e256b 100644 --- a/technic/machines/HV/init.lua +++ b/technic/machines/HV/init.lua @@ -15,4 +15,6 @@ dofile(path.."/generator.lua") -- Machines dofile(path.."/quarry.lua") dofile(path.."/forcefield.lua") +dofile(path.."/electric_furnace.lua") + diff --git a/technic/machines/LV/cnc_nodes.lua b/technic/machines/LV/cnc_nodes.lua index db45805..2020f92 100644 --- a/technic/machines/LV/cnc_nodes.lua +++ b/technic/machines/LV/cnc_nodes.lua @@ -1,7 +1,7 @@ -- REGISTER MATERIALS AND PROPERTIES FOR NONCUBIC ELEMENTS: ----------------------------------------------------------- -local S = technic.getter +local S=technic.getter -- DIRT ------- @@ -163,7 +163,7 @@ technic.cnc.register_all("default:tree", -- ICE ------- technic.cnc.register_all("default:ice", - {cracky = 3, puts_out_fire = 1, cools_lava = 1, not_in_creative_inventory=1}, + {cracky=3, puts_out_fire=1, cools_lava=1, not_in_creative_inventory=1}, {"default_ice.png"}, S("Ice")) @@ -171,7 +171,7 @@ technic.cnc.register_all("default:ice", -- OBSIDIAN ----------- technic.cnc.register_all("default:obsidian_block", - {cracky = 1, level = 2, not_in_creative_inventory=1}, + {cracky=1, level=2, not_in_creative_inventory=1}, {"default_obsidian_block.png"}, S("Obsidian")) @@ -261,3 +261,129 @@ technic.cnc.register_all("technic:granite", {"technic_granite.png"}, S("Granite")) + +if minetest.get_modpath("ethereal") then + -- Glostone + ------------ + technic.cnc.register_all("ethereal:glostone", + {cracky=1, not_in_creative_inventory=1, light_source=13}, + {"glostone.png"}, + S("Glo Stone")) + +end + + +if minetest.get_modpath("ethereal") then + -- Glostone + ------------ + technic.cnc.register_all("ethereal:glostone", + {cracky=1, not_in_creative_inventory=1, light_source=13}, + {"glostone.png"}, + S("Glo Stone")) + + -- Crystal block + ---------------- + technic.cnc.register_all("ethereal:crystal_block", + {snappy=2, choppy=2, oddly_breakable_by_hand=2, not_in_creative_inventory=1}, + {"crystal_block.png"}, + S("Crystal")) + + -- Misc. Wood types + ------------------- + technic.cnc.register_all("ethereal:banana_wood", + {snappy=2, choppy=2, oddly_breakable_by_hand=2, not_in_creative_inventory=1}, + {"banana_wood.png"}, + S("Banana Wood")) + + technic.cnc.register_all("ethereal:birch_wood", + {snappy=2, choppy=2, oddly_breakable_by_hand=2, not_in_creative_inventory=1}, + {"moretrees_birch_wood.png"}, + S("Birch Wood")) + + technic.cnc.register_all("ethereal:frost_wood", + {snappy=2, choppy=2, oddly_breakable_by_hand=2, not_in_creative_inventory=1}, + {"frost_wood.png"}, + S("Frost Wood")) + + technic.cnc.register_all("ethereal:palm_wood", + {snappy=2, choppy=2, oddly_breakable_by_hand=2, not_in_creative_inventory=1}, + {"moretrees_palm_wood.png"}, + S("Palm Wood")) + + technic.cnc.register_all("ethereal:willow_wood", + {snappy=2, choppy=2, oddly_breakable_by_hand=2, not_in_creative_inventory=1}, + {"willow_wood.png"}, + S("Willow Wood")) + + technic.cnc.register_all("ethereal:yellow_wood", + {snappy=2, choppy=2, oddly_breakable_by_hand=2, not_in_creative_inventory=1}, + {"yellow_wood.png"}, + S("Healing Tree Wood")) + + technic.cnc.register_all("ethereal:redwood_wood", + {snappy=2, choppy=2, oddly_breakable_by_hand=2, not_in_creative_inventory=1}, + {"redwood_wood.png"}, + S("Redwood")) +end + + +if minetest.get_modpath("moreblocks") then + -- Tiles + ------------ + technic.cnc.register_all("moreblocks:stone_tile", + {stone=1, cracky=3, not_in_creative_inventory=1}, + {"moreblocks_stone_tile.png"}, + S("Stone Tile")) + + technic.cnc.register_all("moreblocks:split_stone_tile", + {stone=1, cracky=3, not_in_creative_inventory=1}, + {"moreblocks_split_stone_tile.png"}, + S("Split Stone Tile")) + + technic.cnc.register_all("moreblocks:checker_stone_tile", + {stone=1, cracky=3, not_in_creative_inventory=1}, + {"moreblocks_checker_stone_tile.png"}, + S("Checker Stone Tile")) + + technic.cnc.register_all("moreblocks:cactus_checker", + {stone=1, cracky=3, not_in_creative_inventory=1}, + {"moreblocks_cactus_checker.png"}, + S("Cactus Checker")) + + -- Bricks + ------------ + technic.cnc.register_all("moreblocks:cactus_brick", + {cracky=3, not_in_creative_inventory=1}, + {"moreblocks_cactus_brick.png"}, + S("Cactus Brick")) + + technic.cnc.register_all("moreblocks:grey_bricks", + {cracky=3, not_in_creative_inventory=1}, + {"moreblocks_grey_bricks.png"}, + S("Grey Bricks")) + + -- Metals + ------------ + technic.cnc.register_all("moreblocks:copperpatina", + {cracky=1, level=2, not_in_creative_inventory=1}, + {"moreblocks_copperpatina.png"}, + S("Copper Patina")) + + -- Clay + ------------ + technic.cnc.register_all("bakedclay:red", + {cracky=3, not_in_creative_inventory=1}, + {"baked_clay_red.png"}, + S("Red Clay")) + + technic.cnc.register_all("bakedclay:orange", + {cracky=3, not_in_creative_inventory=1}, + {"baked_clay_orange.png"}, + S("Orange Clay")) + + technic.cnc.register_all("bakedclay:grey", + {cracky=3, not_in_creative_inventory=1}, + {"baked_clay_grey.png"}, + S("Grey Clay")) + +end diff --git a/technic/machines/register/alloy_recipes.lua b/technic/machines/register/alloy_recipes.lua index 3aeacd5..dc9a007 100644 --- a/technic/machines/register/alloy_recipes.lua +++ b/technic/machines/register/alloy_recipes.lua @@ -30,6 +30,12 @@ local recipes = { {"technic:raw_latex 4", "technic:coal_dust 2", "technic:rubber 6", 2}, } +if minetest.get_modpath("ethereal") then + table.insert(recipes, {"default:clay", "dye:red", "bakedclay:red"}) + table.insert(recipes, {"default:clay", "dye:orange", "bakedclay:orange"}) + table.insert(recipes, {"default:clay", "dye:grey", "bakedclay:grey"}) +end + for _, data in pairs(recipes) do technic.register_alloy_recipe({input = {data[1], data[2]}, output = data[3], time = data[4]}) end diff --git a/technic/machines/register/compressor_recipes.lua b/technic/machines/register/compressor_recipes.lua index acb9eca..3711db1 100644 --- a/technic/machines/register/compressor_recipes.lua +++ b/technic/machines/register/compressor_recipes.lua @@ -19,8 +19,15 @@ local recipes = { {"technic:coal_dust 4", "technic:graphite"}, {"technic:carbon_cloth", "technic:carbon_plate"}, {"technic:uranium35_ingot 5", "technic:uranium_fuel"}, + {"technic:graphite 25", "default:diamond"} } +if minetest.get_modpath("ethereal") then + -- the density of charcoal is ~1/10 of coal, otherwise it's pure carbon + table.insert(recipes, {"ethereal:charcoal_lump 10", "default:coal_lump 1"}) +end + + -- defuse the default sandstone recipe, since we have the compressor to take over in a more realistic manner minetest.clear_craft({ recipe = { diff --git a/technic/machines/register/grinder_recipes.lua b/technic/machines/register/grinder_recipes.lua index 8c8e178..dbaa067 100644 --- a/technic/machines/register/grinder_recipes.lua +++ b/technic/machines/register/grinder_recipes.lua @@ -32,6 +32,11 @@ local recipes = { {"default:silver_sandstone", "default:silver_sand 2"}, -- reverse recipe can be found in the compressor } +if minetest.get_modpath("ethereal") then + -- the density of charcoal is ~1/10 of coal, otherwise it's the same graphitic carbon + table.insert(recipes, {"ethereal:charcoal_lump 5", "technic:coal_dust 1"}) +end + -- defuse the sandstone -> 4 sand recipe to avoid infinite sand bugs (also consult the inverse compressor recipe) minetest.clear_craft({ recipe = { diff --git a/technic/textures/technic_hv_electric_furnace_bottom.png b/technic/textures/technic_hv_electric_furnace_bottom.png new file mode 100644 index 0000000000000000000000000000000000000000..3f65026aceb3cf6bfd3885798de22009e1778091 GIT binary patch literal 422 zcmV;X0a^ZuP)lHyZCZ-x%Ytf zzcizc;D8XqNnI4hQDr#i0La>w>2MRFB@lphtVfx+3Z04aIGuun3}yKn1`#}+pOMJ~ z?*;K9fOcAXHJ`%!4DT}}&k-}lncn7++V_ZcLK`>v18Mx4{}lHx QPXGV_07*qoM6N<$g2nK)M*si- literal 0 HcmV?d00001 diff --git a/technic/textures/technic_hv_electric_furnace_front.png b/technic/textures/technic_hv_electric_furnace_front.png new file mode 100644 index 0000000000000000000000000000000000000000..e1f9bc59e6df0476178c0af12292705e8e6ecfc9 GIT binary patch literal 543 zcmV+)0^t3LP)eivvae<;_KCwsVX4^?z)cuIq%DovMll556vP-&RaBLt zC=d}u1m_&T_q}GuFbq3_!y_Wh%s}LHvIy)+(*S?lwkHI{$ZEAZsy9u8a}I!CeV^+d z;KOKyh;ZAsxv6QI69ozTSXHPh4!OdiHgxznqx!->}JIlb&mlwW2 zJpnKpjZjs_<1tlL0c7mU#RcB`T{hAsz4^MXS+CcK2vt?l_dO!Qd_L#8uCvi1LRpr$ zWX_=nX#;KBl7bdv%u3TYs)`RGP!vT5V~m&?F-F?9#mq=OX$yx@_xIcF(c};Uo6Ux< z>j)tbLZIt9>bj=i8~5Y+`E?u9>D1nt;hbY;mQ(4R%gIZ!V~pH&9hZBxGqYU|k{m>i ha{jLqV@y8|e*h$W21wMc!h!$*002ovPDHLkV1n@J>b(E} literal 0 HcmV?d00001 diff --git a/technic/textures/technic_hv_electric_furnace_front_active.png b/technic/textures/technic_hv_electric_furnace_front_active.png new file mode 100644 index 0000000000000000000000000000000000000000..1baeade80b1a5545a9e1657d2ad9afd0b96480db GIT binary patch literal 542 zcmV+(0^$9MP)(TaLqwRHfyi!W5g15IgK)K4?GTVNi^XCq-?lB@djNhs zKi7N!csCj$B3!LjwWw{|9R&q@KOUp1+@`c9Ff+`oD)_j+4}hxHJb-hqo=ZObohY4T z@SvDwW?N<#vR4VdJUqNQzM^cCzysW-RE;UX>2%87#RYfg=bTQbTi8w4)%x&ZZ?6L1 zpPu--Tmmo}jX)KDc*uA>2B_Glg9Abc>)j}aa_5uDgx{B!hzPD}u&zTy_;q&1$z)QE z77?1J!54EjJ*X4tx|e*;RcZN0RS792oO2b-Ib&w)Z`a|5cTz}8O(nSLx~4tGwfa1jm8w(C4;xj6s;2^mR5 zK~z}7b(cwxB*}4wKR0)eCHJc8s_vQ@c29GL7(f64K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U`Cis5@G*n`EcIh|(0000< KMNUMnLSTY7o}s4z literal 0 HcmV?d00001 diff --git a/technic/textures/technic_hv_electric_furnace_top.png b/technic/textures/technic_hv_electric_furnace_top.png new file mode 100644 index 0000000000000000000000000000000000000000..e3d4195e0c1f7eb8edbe88a6c14b9a1ecb2983a2 GIT binary patch literal 1750 zcmV;{1}XW8P)>~SLN5AKLMGW}?O73=*%cDpP-z53pfB#b@0+nQe zszN0cm>H@{Mj|SBBy$*51wdvZA^=p?^L=EXqWx?pfB(q(`S~1^Q52?%l;Q~{f~q~m zs45CX73VNSgc9)B2NjqKDMCc>Iu5cF6~!YtkICm+%wa?pQbJWRhvAV7fXV_9OktQ} z+Fd4H5W^Vs1x0s1#(+vH3o}E2KhC2swMkT=fQs^Uo_HiCNlF(Gxz7O*5mXfuK|~m) zR2GFWhmn~i@S20)pX(VlVz7(OOjML%APCbGyw4u0R25Y}cX&7-Plk$i0lSc6j2`PsQ~(Pf3Kjjc+G>q zJW&NiIY;mRH3lo+G#s>n?KI1Uo{_5NUHe1AS<7AnOR&QMj{6EzsBBrpYz zF&>^*Rd>uD_b|@cNH-BKci^V*UL}I=$rZ)FUMI_gtmOCS!ZV31MrLx(iK=d}SdV8P z=HbjS_gCwSc89v@Xk!w-7^5eH@G$B7^FcQ9Gn1jpG-E}e3YwK<<+G#Ar09RP-TiA0 z{{8jUosEHsFs-MMnM{?39sF&2e|^7O8LL=p0r2sF>Ss)iVQQ^fnG91@pfV^`Rz$C* zTJlWyj_0JRDW$6a7=J{tJoqf9D54;vb>wm!fUG3yPm_C zW{;Gf$Jt#2uk+Yq1V!P|xVYSjDz4>QjB2xO3*apv9}hgd<#r=DBDmb~eMn~VI*(_c zDsUV}n@l9f7?>LF{uF=CNp1EZ^b{+R>NV=Ef(p+=p6!e)TK;Uz_5|Slxf)D+&k@0K z9LzaEc-&97TSmmjRSVmS=<|WkTCD?Z46SO*<3|xUpoHS`Kvfy49LK@(;GC1Gg1c{5 zG^!TI9F3c+>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