From d52bb607a08e94d7af622de789351944a0a6b3dc Mon Sep 17 00:00:00 2001 From: sfence Date: Sat, 5 Nov 2022 17:55:06 +0100 Subject: [PATCH] Add aluminum bar, strip and wire, gold strip and stainless steel bar and strip. (#16) --- craftitems.lua | 34 +++++++++ crafts.lua | 67 ++++++++++++++++++ mod.conf | 2 +- textures/basic_materials_aluminum_bar.png | Bin 0 -> 337 bytes textures/basic_materials_aluminum_strip.png | Bin 0 -> 383 bytes textures/basic_materials_aluminum_wire.png | Bin 0 -> 258 bytes textures/basic_materials_gold_strip.png | Bin 0 -> 358 bytes .../basic_materials_stainless_steel_bar.png | Bin 0 -> 336 bytes .../basic_materials_stainless_steel_strip.png | Bin 0 -> 382 bytes 9 files changed, 102 insertions(+), 1 deletion(-) create mode 100644 textures/basic_materials_aluminum_bar.png create mode 100644 textures/basic_materials_aluminum_strip.png create mode 100644 textures/basic_materials_aluminum_wire.png create mode 100644 textures/basic_materials_gold_strip.png create mode 100644 textures/basic_materials_stainless_steel_bar.png create mode 100644 textures/basic_materials_stainless_steel_strip.png diff --git a/craftitems.lua b/craftitems.lua index 27aadb9..0040c67 100644 --- a/craftitems.lua +++ b/craftitems.lua @@ -91,6 +91,12 @@ minetest.register_craftitem("basic_materials:stainless_steel_wire", { inventory_image = "basic_materials_stainless_steel_wire.png" }) +minetest.register_craftitem("basic_materials:aluminum_wire", { + description = S("Spool of aluminum wire"), + groups = { wire = 1 }, + inventory_image = "basic_materials_aluminum_wire.png" +}) + minetest.register_craftitem("basic_materials:steel_strip", { description = S("Steel Strip"), groups = { strip = 1 }, @@ -109,6 +115,24 @@ minetest.register_craftitem("basic_materials:lead_strip", { inventory_image = "basic_materials_lead_strip.png" }) +minetest.register_craftitem("basic_materials:gold_strip", { + description = S("Gold Strip"), + groups = { strip = 1 }, + inventory_image = "basic_materials_gold_strip.png" +}) + +minetest.register_craftitem("basic_materials:stainless_steel_strip", { + description = S("Stainless Steel Strip"), + groups = { strip = 1 }, + inventory_image = "basic_materials_stainless_steel_strip.png" +}) + +minetest.register_craftitem("basic_materials:aluminum_strip", { + description = S("Aluminum Strip"), + groups = { strip = 1 }, + inventory_image = "basic_materials_aluminum_strip.png" +}) + minetest.register_craftitem("basic_materials:steel_bar", { description = S("Steel Bar"), inventory_image = "basic_materials_steel_bar.png", @@ -119,6 +143,16 @@ minetest.register_craftitem("basic_materials:carbon_steel_bar", { inventory_image = "basic_materials_carbon_steel_bar.png", }) +minetest.register_craftitem("basic_materials:stainless_steel_bar", { + description = S("Stainless Steel Bar"), + inventory_image = "basic_materials_stainless_steel_bar.png", +}) + +minetest.register_craftitem("basic_materials:aluminum_bar", { + description = S("Aluminum Bar"), + inventory_image = "basic_materials_aluminum_bar.png", +}) + minetest.register_craftitem("basic_materials:chainlink_brass", { description = S("Chainlinks (brass)"), groups = { chainlinks = 1 }, diff --git a/crafts.lua b/crafts.lua index 22fc4e8..0188c9d 100644 --- a/crafts.lua +++ b/crafts.lua @@ -26,6 +26,10 @@ if minetest.get_modpath("technic") then materials.stainless_steel_ingot = "technic:stainless_steel_ingot" end +if minetest.get_modpath("aloz") then + materials["aluminum_ingot"] = "aloz:aluminum_ingot" +end + if minetest.get_modpath("mcl_core") then materials = { dirt = "mcl_core:dirt", @@ -96,6 +100,7 @@ elseif minetest.get_modpath("hades_core") then end if minetest.get_modpath("hades_extraores") then materials["silver_ingot"] = "hades_extraores:silver_ingot" + materials["aluminum_ingot"] = "hades_extraores:aluminum_ingot" end if minetest.get_modpath("hades_technic") then materials.lead_ingot = "hades_technic:lead_ingot" @@ -299,6 +304,18 @@ if materials.stainless_steel_ingot then }) end +if materials.aluminum_ingot then + minetest.register_craft( { + output = "basic_materials:aluminum_wire 2", + type = "shapeless", + recipe = { + materials.aluminum_ingot, + "basic_materials:empty_spool", + "basic_materials:empty_spool", + }, + }) +end + minetest.register_craft( { output = "basic_materials:steel_strip 12", recipe = { @@ -315,6 +332,14 @@ minetest.register_craft( { }, }) +minetest.register_craft( { + output = "basic_materials:gold_strip 12", + recipe = { + {"", materials.gold_ingot, ""}, + {materials.gold_ingot, "", ""}, + }, +}) + if materials.lead_ingot then minetest.register_craft( { output = "basic_materials:lead_strip 12", @@ -325,6 +350,26 @@ if materials.lead_ingot then }) end +if materials.stainless_steel_ingot then + minetest.register_craft( { + output = "basic_materials:stainless_steel_strip 12", + recipe = { + {"", materials.stainless_steel_ingot, ""}, + {materials.stainless_steel_ingot, "", ""}, + }, + }) +end + +if materials.aluminum_ingot then + minetest.register_craft( { + output = "basic_materials:aluminum_strip 12", + recipe = { + {"", materials.aluminum_ingot, ""}, + {materials.aluminum_ingot, "", ""}, + }, + }) +end + minetest.register_craft( { output = "basic_materials:steel_bar 6", recipe = { @@ -345,6 +390,28 @@ if materials.carbon_steel_ingot then }) end +if materials.stainless_steel_ingot then + minetest.register_craft( { + output = "basic_materials:stainless_steel_bar 6", + recipe = { + {"", "", materials.stainless_steel_ingot}, + {"", materials.stainless_steel_ingot, ""}, + {materials.stainless_steel_ingot, "", ""}, + }, + }) +end + +if materials.aluminum_ingot then + minetest.register_craft( { + output = "basic_materials:aluminum_bar 6", + recipe = { + {"", "", materials.aluminum_ingot}, + {"", materials.aluminum_ingot, ""}, + {materials.aluminum_ingot, "", ""}, + }, + }) +end + minetest.register_craft( { output = "basic_materials:padlock 2", recipe = { diff --git a/mod.conf b/mod.conf index 63bac73..0d07279 100644 --- a/mod.conf +++ b/mod.conf @@ -1,3 +1,3 @@ name = basic_materials -optional_depends = moreores, default, mesecons_materials, dye, bucket, fl_stone, fl_trees, mcl_sounds, hades_core, hades_sounds, hades_materials, hades_dye, hades_bucket, hades_extraores, hades_mesecons_materials +optional_depends = moreores, default, mesecons_materials, dye, bucket, fl_stone, fl_trees, mcl_sounds, hades_core, hades_sounds, hades_materials, hades_dye, hades_bucket, hades_extraores, hades_mesecons_materials, aloz min_minetest_version = 5.2.0 diff --git a/textures/basic_materials_aluminum_bar.png b/textures/basic_materials_aluminum_bar.png new file mode 100644 index 0000000000000000000000000000000000000000..8d3e11e2ddc6ff1fdaf990c65ecd6034b67fb60e GIT binary patch literal 337 zcmV-X0j~auP)-aD$5N+2RKjw9N-$wSb?Gz>O(4;O)W^s05W$>aw7MGozmI7E= jU8}jCk7*c{@SoHt$||k3FH%Vd00000NkvXXu0mjfO(~MY literal 0 HcmV?d00001 diff --git a/textures/basic_materials_aluminum_strip.png b/textures/basic_materials_aluminum_strip.png new file mode 100644 index 0000000000000000000000000000000000000000..8957022ba7604dfa3ed572923e99160c4defe2cf GIT binary patch literal 383 zcmV-_0f7FAP)YU7zOZ?dvEQ{Eon3+mQI3N1+5^_!L6WVl==eVR8T0o z`3_xmaaib#QXf3a$L^fb!9lj-l~;qmr(LxFD;%KWAPjV0MGNlCLJWitl@x zWm;&|8+P%eXamR*01!gR^4&cyN|&hB++R0KDWUQqXj&8izyM%tXO{rLn&UY0$>etV z=5~QlGR`?y^r(*JOH&!qbudcMlRX68?)M+`GnYtg9Od(Sm8Zu<5CqKk+X^A1vzf_= dzvKt{_yn92TjwcAnxy~$002ovPDHLkV1k#2q+I|2 literal 0 HcmV?d00001 diff --git a/textures/basic_materials_aluminum_wire.png b/textures/basic_materials_aluminum_wire.png new file mode 100644 index 0000000000000000000000000000000000000000..f0b3dc67e4e5d934cf059b80817ac03e03acaf59 GIT binary patch literal 258 zcmeAS@N?(olHy`uVBq!ia0vp^0wB!61|;P_|4#%`EX7WqAsj$Z!;#VfN~j?e8Towf=D}U;TsAtiO9J<4rZkBknE& zJLkP#b;y+Oxzrlo7bY5Ab3UeY2{ub4rnoUo3GG}hd+zF-^UL#?vzfbWj(@N1`KkWH zvT@ZbtH^I&3szNSKk}Zs+4qy-!JK^z??UDN_%xR?)}MO8r5JYD@<);T3K F0RXvXXj%XO literal 0 HcmV?d00001 diff --git a/textures/basic_materials_gold_strip.png b/textures/basic_materials_gold_strip.png new file mode 100644 index 0000000000000000000000000000000000000000..9fe97a2b2c9028a2728a353f1a92f9b014d0786b GIT binary patch literal 358 zcmV-s0h#`ZP)Ka+|N_0FZ9JgLR&*g4AMbIBNIkj?Y;rC$rmvC z07eE@1CbaikqS+NXevUArY}hQ+{e(lLu2i4J;{~)4-EX90DRo0)kqlC2F3(+eZ@J8 zMQCoU+QN43_dM1poaD2#dj?*w6Y3jY1QSL~uzPSKsI3Do>QyneqT!HjxaQqUPW?V? zuC)($kDm4f;PG-&M-2QoISl#0r`w z8#k=fKS!JG#Yk<9NkN?3kL8=$8TfB$B~2XOnCcem!nw>C_RrYe*){;qI`GSMiZ>h( zkMH@I&1h|)l{9IR5O^+O6eEP7+dH*dRnSVBLOl_9E=ii<*fs}8Csy@tHNlg|2S&cf z?cJENEWeT~)mG3-nrE#U`5s{u1FXQcKhR1VT@(!Z=fA=L_D^swGu+DyQYjHauz%RA zt?DepGM(VNSL90Z`u1L%ykbxdb{+VHQB0@PX@uc(gT=L*IxkBAEW&M*zZq<7ZdqXz i4m@<{U?lVqVpwVuaMpv7}~Biy$KC547#MfZxZ<2mk#!17L4=M~|h`+_l>z zk|{ksHCYu_$QyUEXS4ZyeZO2jEEbE;Ujkd38+vhJ9uE3sZQQJlelRyW&`2IU6Kk5m`sQ{JFS8p1P)zf-?-Mzh;@qJ$o29Jhen!_Jo c^xyA#1!*T|%brXw!T