From 804887858c99b4c717d1591d8ecdc44eba6f4b5d Mon Sep 17 00:00:00 2001 From: Maciej Kasatkin Date: Wed, 3 Oct 2012 08:26:34 +0200 Subject: [PATCH] Added Zinc ore --- grinder.lua | 13 ++++++++- ores.lua | 44 ++++++++++++++++++++++++------ textures/technic_mineral_zinc.png | Bin 0 -> 891 bytes textures/technic_zinc_dust.png | Bin 0 -> 1150 bytes textures/technic_zinc_ingot.png | Bin 0 -> 242 bytes textures/technic_zinc_lump.png | Bin 0 -> 214 bytes 6 files changed, 47 insertions(+), 10 deletions(-) create mode 100644 textures/technic_mineral_zinc.png create mode 100644 textures/technic_zinc_dust.png create mode 100644 textures/technic_zinc_ingot.png create mode 100644 textures/technic_zinc_lump.png diff --git a/grinder.lua b/grinder.lua index 24360c9..8d58e9b 100644 --- a/grinder.lua +++ b/grinder.lua @@ -21,6 +21,7 @@ register_grinder_recipe("moreores:silver_lump","technic:silver_dust 2") register_grinder_recipe("moreores:gold_lump","technic:gold_dust 2") register_grinder_recipe("moreores:mithril_lump","technic:mithril_dust 2") register_grinder_recipe("technic:chromium_lump","technic:chromium_dust 2") +register_grinder_recipe("technic:zinc_lump","technic:zinc_dust 2") minetest.register_craftitem( "technic:coal_dust", { @@ -121,7 +122,6 @@ minetest.register_craft({ minetest.register_craftitem( "technic:stainless_steel_dust", { description = "Stainless Steel Dust", inventory_image = "technic_stainless_steel_dust.png", - on_place_on_ground = minetest.craftitem_place_item, }) minetest.register_craft({ @@ -130,6 +130,17 @@ minetest.register_craft({ recipe = "technic:stainless_steel_dust", }) +minetest.register_craftitem( "technic:zinc_dust", { + description = "Zinc Dust", + inventory_image = "technic_zinc_dust.png", + }) + +minetest.register_craft({ + type = "cooking", + output = "technic:zinc_ingot", + recipe = "technic:zinc_dust", +}) + minetest.register_alias("grinder", "technic:grinder") minetest.register_craft({ output = 'technic:grinder', diff --git a/ores.lua b/ores.lua index 7fe90e6..29dfb46 100644 --- a/ores.lua +++ b/ores.lua @@ -49,18 +49,43 @@ minetest.register_craftitem( "technic:chromium_ingot", { on_place_on_ground = minetest.craftitem_place_item, }) -minetest.register_craftitem( "technic:stainless_steel_ingot", { - description = "Stainless Steel Ingot", - inventory_image = "technic_stainless_steel_ingot.png", - on_place_on_ground = minetest.craftitem_place_item, -}) - minetest.register_craft({ type = 'cooking', output = "technic:chromium_ingot", recipe = "technic:chromium_lump" }) +minetest.register_craftitem( "technic:stainless_steel_ingot", { + description = "Stainless Steel Ingot", + inventory_image = "technic_stainless_steel_ingot.png", +}) + +minetest.register_node( "technic:mineral_zinc", { + description = "Zinc Ore", + tile_images = { "default_stone.png^technic_mineral_zinc.png" }, + is_ground_content = true, + groups = {cracky=3}, + sounds = default.node_sound_stone_defaults(), + drop = 'craft "technic:zinc_lump" 1', +}) + +minetest.register_craftitem( "technic:zinc_lump", { + description = "Zinc Lump", + inventory_image = "technic_zinc_lump.png", +}) + +minetest.register_craftitem( "technic:zinc_ingot", { + description = "Zinc Ingot", + inventory_image = "technic_zinc_ingot.png", +}) + +minetest.register_craft({ + type = 'cooking', + output = "technic:zinc_ingot", + recipe = "technic:zinc_lump" + }) + + local function generate_ore(name, wherein, minp, maxp, seed, chunks_per_volume, ore_per_chunk, height_min, height_max) if maxp.y < height_min or minp.y > height_max then return @@ -104,7 +129,8 @@ local function generate_ore(name, wherein, minp, maxp, seed, chunks_per_volume, end minetest.register_on_generated(function(minp, maxp, seed) -generate_ore("technic:mineral_diamond", "default:stone", minp, maxp, seed+20, 1/11/11/11, 2, -31000, -450) -generate_ore("technic:mineral_uranium", "default:stone", minp, maxp, seed+20, 1/11/11/11, 1, -300, -100) -generate_ore("technic:mineral_chromium", "default:stone", minp, maxp, seed+30, 1/10/10/10, 2, -31000, -100) +generate_ore("technic:mineral_diamond", "default:stone", minp, maxp, seed+21, 1/11/11/11, 2, -31000, -450) +generate_ore("technic:mineral_uranium", "default:stone", minp, maxp, seed+22, 1/11/11/11, 1, -300, -100) +generate_ore("technic:mineral_chromium", "default:stone", minp, maxp, seed+23, 1/10/10/10, 2, -31000, -100) +generate_ore("technic:mineral_zinc", "default:stone", minp, maxp, seed+24, 1/9/9/9, 5, -31000, 2) end) \ No newline at end of file diff --git a/textures/technic_mineral_zinc.png b/textures/technic_mineral_zinc.png new file mode 100644 index 0000000000000000000000000000000000000000..598efebf47c51eda10ad021b0c971e7b4d7cb1ae GIT binary patch literal 891 zcmV->1BCpEP)Yn#+0o+M39a!!`~y%-Hnn7_OC z<$d3W=Y>bSG5Hqrv-A9y;0lerY0?&L!ri@e`M|2z$mdF^0j)EqT)BLabx)3wE#--+ z8e0y&DgjQOm=qo_h_;)nH)e4A{g_sTQDY^k>%U_RBJ-hJ-`?skhMt4=zd=K1l>{B-Ut(Ori+R>lVPj-_8`vn-tYQ~6U(_sCWjCc6BDG; zH+XvOdNyo$h6|TwNX@2LvvwWj;$O6+i-4xFSj=G<2^`C!S+jBb-1PNE_y>;{HadMa Rlk@-p002ovPDHLkV1l46q=Nte literal 0 HcmV?d00001 diff --git a/textures/technic_zinc_dust.png b/textures/technic_zinc_dust.png new file mode 100644 index 0000000000000000000000000000000000000000..0d2f75a8e676b2869679ba5ca5492cd376d769b1 GIT binary patch literal 1150 zcmV-^1cCdBP)cCHTM1dpQD@&EX$eKH%z?bKKvu0Y+-Y&;{1rR}!QxpXYQ3Ak1obm9giXNY8 zh`DyWX>WDIiCF(j2^<~2(if)rwALEWQe;Izloj}M|q~3LSWZi9B z@cph{Htw%4&G@iw%FR>FQ1_P{kz@sFp)mxwrXVqA;hU%>(_wM51)TLoDPax75HXH4;%N_**83P;p0;mwQI`FT5Bw62msGg zNJCJv6adq$ka`ePvK0MY9*roWzvNJHZ498^j!6qGlr$>2)?0xSK<(4hlg2F;T;H>v ztp{iM?98PjNnYIVni7C8&FS@Q(p)pu49N?P5CSO#-Ht_n$-%cxf+VHKb4c>Vsjy9n z6oMd5k%quDgpfkun)0cyf1b<-Ya`olvS6?_A|6}QcfhmMi!(t)UTAD3>Gf^mEXP)o zyjbk#r6vSugbB?!#Q=JIhi052g`k~gOf&+NH0ZKTJWEjzVl{_I`##W1g<&Eldy_igr7kH+kon~B_YXMO4 zY-}Z2;o2-j2|@^Ff(Xx4G{S^y%}_`~oVTR$#Vt)ZSQ{yCx$o|6VVdu-l(F&GdQ+`l z;WOO|DSHlEf;4J%(pIzJQ*;}Ss;le$Y(zf|9ei5J^#Q3&J#kINGSgd+ww}-gl zIlw}caJ>~#b}cMvkmN0R(6$x4aCrWvvwg#3Pux{YnDQiTbE1WjRW-dXg8-q3VF{d|o|gW!U_%O?XxI14-? ziy0XBfUMvvDg%*_O-!3e|hMIEGl9PEL?ub!n6hfB*M> z;n#chIYm7!CP~8IFN7r>$!5^&y}^^D=&sDn%zXH)c)p|r5JY%f<+;qkT);f9{>PaE zK%k&`z(#%oBKjeR(YI*K3iS`0rx(hYb#946(|N2LE3i{V)7| f-amV$Pn-;YCtEwk%1qr4bP9u~tDnm{r-UW|bFoqv literal 0 HcmV?d00001 diff --git a/textures/technic_zinc_lump.png b/textures/technic_zinc_lump.png new file mode 100644 index 0000000000000000000000000000000000000000..d28a6dcd8d146325f13252315478adbaa393d02c GIT binary patch literal 214 zcmeAS@N?(olHy`uVBq!ia0vp^0wB!61|;P_|4#%`Y)RhkE)4%caKYZ?lYt_f1s;*b z3=G`DAk4@xYmNj^kiEpy*OmPa7c(0#g9G1T7obqGr;B5V#p&b(307u)i9*jg_5a@6 z_vC7vJmRs1@r2YxMziLK0?oSbb0=!(8%$hO`F`*J{~vcHfT;Vm>be3mHF{Y^nCDED z_*nJlpu3NuSdgi}RK92P{`Z?|P3D!9TscpOk$0yoQ)$eHk3j1fJYD@<);T3K0RY+| BMZ5q2 literal 0 HcmV?d00001