From c82b86eb1c0cbcf95bdadf7137ad03e1f6066ddb Mon Sep 17 00:00:00 2001 From: Vanessa Ezekowitz Date: Thu, 13 Dec 2012 23:14:12 -0500 Subject: [PATCH] Changed Mese object to be more consistent with the idea of getting something other than the block you originally mined when digging the stuff. Similar to iron, coal, etc. but as a crystal rather than an ore. Added new textures for mese in stone, mese crystal, mese ingot, and mese block. Block uses a variant of the old black-on-yellow mese texture. Made the mese in stone drop a single mese crystal when mined. Smelt one of these crystals into a mese ingot (same cook time as iron lump -> steel ingot). Changed the mese pick recipe in default to use the above "default:mese_ingot" instead. Changed the mese-as-a-fuel recipe to use "default:mese_crystal". Added recipe to craft mese block ("default:meseblock") from 9 mese ingots, and to craft it back to same. Added recipe to craft mese-in-stone out of one mese lump and one block of stone for backward compatibility with old mods that depended on the original mese object. --- mods/default/init.lua | 71 +++++++++++++++--- mods/default/textures/default_mese.png | Bin 203 -> 488 bytes mods/default/textures/default_mese_block.png | Bin 0 -> 482 bytes .../default/textures/default_mese_crystal.png | Bin 0 -> 270 bytes mods/default/textures/default_mese_ingot.png | Bin 0 -> 388 bytes 5 files changed, 61 insertions(+), 10 deletions(-) create mode 100644 mods/default/textures/default_mese_block.png create mode 100644 mods/default/textures/default_mese_crystal.png create mode 100644 mods/default/textures/default_mese_ingot.png diff --git a/mods/default/init.lua b/mods/default/init.lua index aba2cc2b..e3f6cf11 100644 --- a/mods/default/init.lua +++ b/mods/default/init.lua @@ -259,7 +259,7 @@ minetest.register_craft({ minetest.register_craft({ output = 'default:pick_mese', recipe = { - {'default:mese', 'default:mese', 'default:mese'}, + {'default:mese_ingot', 'default:mese_ingot', 'default:mese_ingot'}, {'', 'default:stick', ''}, {'', 'default:stick', ''}, } @@ -470,6 +470,32 @@ minetest.register_craft({ } }) +minetest.register_craft({ + output = 'default:meseblock', + recipe = { + {'default:mese_ingot', 'default:mese_ingot', 'default:mese_ingot'}, + {'default:mese_ingot', 'default:mese_ingot', 'default:mese_ingot'}, + {'default:mese_ingot', 'default:mese_ingot', 'default:mese_ingot'}, + } +}) + +minetest.register_craft({ + output = 'default:mese_ingot 9', + recipe = { + {'default:meseblock'}, + } +}) + +minetest.register_craft({ + type = "shapeless", + output = 'default:mese', + recipe = { + 'default:mese_crystal', + 'default:stone', + } +}) + + -- -- Crafting (tool repair) -- @@ -500,6 +526,12 @@ minetest.register_craft({ recipe = "default:iron_lump", }) +minetest.register_craft({ + type = "cooking", + output = "default:mese_ingot", + recipe = "default:mese_crystal" +}) + minetest.register_craft({ type = "cooking", output = "default:clay_brick", @@ -566,7 +598,7 @@ minetest.register_craft({ minetest.register_craft({ type = "fuel", - recipe = "default:mese", + recipe = "default:mese_crystal", burntime = 30, }) @@ -745,6 +777,15 @@ minetest.register_node("default:stone_with_iron", { sounds = default.node_sound_stone_defaults(), }) +minetest.register_node("default:mese", { + description = "Mese Crystals in Stone", + tiles = {"default_stone.png^default_mese.png"}, + is_ground_content = true, + groups = {cracky=1}, + drop = "default:mese_crystal", + sounds = default.node_sound_defaults(), +}) + minetest.register_node("default:dirt_with_grass", { description = "Dirt with Grass", tiles = {"default_grass.png", "default_dirt.png", "default_dirt.png^default_grass_side.png"}, @@ -990,14 +1031,6 @@ minetest.register_node("default:wood", { sounds = default.node_sound_wood_defaults(), }) -minetest.register_node("default:mese", { - description = "Mese", - tiles = {"default_mese.png"}, - is_ground_content = true, - groups = {cracky=1}, - sounds = default.node_sound_defaults(), -}) - minetest.register_node("default:cloud", { description = "Cloud", tiles = {"default_cloud.png"}, @@ -1515,6 +1548,14 @@ minetest.register_node("default:steelblock", { sounds = default.node_sound_stone_defaults(), }) +minetest.register_node("default:meseblock", { + description = "Mese Block", + tiles = {"default_mese_block.png"}, + is_ground_content = true, + groups = {cracky=1}, + sounds = default.node_sound_defaults(), +}) + minetest.register_node("default:nyancat", { description = "Nyan Cat", tiles = {"default_nc_side.png", "default_nc_side.png", "default_nc_side.png", @@ -1613,6 +1654,11 @@ minetest.register_craftitem("default:iron_lump", { inventory_image = "default_iron_lump.png", }) +minetest.register_craftitem("default:mese_crystal", { + description = "Mese Crystal", + inventory_image = "default_mese_crystal.png", +}) + minetest.register_craftitem("default:clay_lump", { description = "Clay Lump", inventory_image = "default_clay_lump.png", @@ -1623,6 +1669,11 @@ minetest.register_craftitem("default:steel_ingot", { inventory_image = "default_steel_ingot.png", }) +minetest.register_craftitem("default:mese_ingot", { + description = "Mese Ingot", + inventory_image = "default_mese_ingot.png", +}) + minetest.register_craftitem("default:clay_brick", { description = "Clay Brick", inventory_image = "default_steel_ingot.png", diff --git a/mods/default/textures/default_mese.png b/mods/default/textures/default_mese.png index 4c876cdc57e2f061fcd3ff3ebe9bc4c26e08487d..2be9944b5b9d378c0ee5169860689364e7ee0a29 100644 GIT binary patch delta 453 zcmV;$0XqK60q6se83+ad001BJ|6!3Z7=H(JNliru+zbu`1~X!Wf{FkD0f$LMK~y-) zt&?9%TR{-Te>;0OHnB9AEH^W zO7X$-wlh0(4s&MUxo|v1^TO%f*m%O`eR76AR%ZZax#+8YASkR>FdDAox5x{0dw*M4 zF5&PXv~mKV8gL!x^&H)9+G3cWqrI2VaS5scfTM9#BLLPWsKV7%jZ4Z_gCuc;00x7( z;r{e7DinaGX(&su7W%!EFZ0M?j72Q`{!`L4vGK`S@^B`_MMtL@IysdG$@>F-UVJ`A zpKA5|+-kNk|Nnn9Mi*bvAIsQymVcu^e;HlyjQ$> zy4^swST`4dX+}%dXy}di@aFY;X|}c;RaGMbs*3mE{f&ZbVRUy_*xM6|i)hWxAbNf9 zwly$!&Sf;j%yOf3UE!SY?r^Ox2|)=VP%@R4s%jTc vPDMYwkGmi5AheGuFPzqOO;rhZ3!Z|1&I`CQvupy600000NkvXXu0mjf)|u0T delta 166 zcmV;X09pU&1Iq!B85aTo005AYXf^-<00VPENmK|32;1RL;E^F1e{M-cK~yM_ol;2> zz%U4cjQ{_#J+xyTGAXlPyUp{@DXIqijj5R8~(-*A29#SlPPo$(4eN Ua1o(<00000NkvXX1g=70f`r^cLjV8( diff --git a/mods/default/textures/default_mese_block.png b/mods/default/textures/default_mese_block.png new file mode 100644 index 0000000000000000000000000000000000000000..307eea24e82920c7eefcf4683b820404b624d01f GIT binary patch literal 482 zcmV<80UiE{P)6%jiZkDcYA>$*iebhHn%vwQaYX4aW6 zC`)b`Wl5_n>G#ETIseS@Si;ceM@KffTE}Dg{tXxKJl1P~S5uvwkR||CWnVpgctfNG zbUeEm-zQBNjsONdTb#wrV#1N+TL2d*)Sg9=6ovNt{QSY5e-(mm4T#uMSBN6A48W;@ zyCZ1Th_6aWAK literal 0 HcmV?d00001 diff --git a/mods/default/textures/default_mese_crystal.png b/mods/default/textures/default_mese_crystal.png new file mode 100644 index 0000000000000000000000000000000000000000..929287406a8929a03669f2b5f7174868499e5433 GIT binary patch literal 270 zcmeAS@N?(olHy`uVBq!ia0vp^0wB!61|;P_|4#%`oCO|{#S9GG!XV7ZFl&wkP>{XE z)7O>#4i6u*xsJ}fc^*KawVp1HAr`0KPTI)b6d-V{ewJP$FJIrK071w9bz8P?+sYLg zEaJIOPHoSVtu8ZcjYMYsn)cXkpY^+a);|`TuF(p7F|$oTV#*DP8y7cT%dgtKZ-%?v zq&T--w+>Wh2Hf$uth(XQcjhG`6>;-bZa%h{@ciyC(Q`@{g5(0YVy35`F_Pf_xreDC zD132b;FqPH%QRaWULIMq)imdKI;Vst0B&$<8vp5Hc-b;|{sbUS z4px{>*8~CddR>f;arFvoElHZP_*n4z(vn;SaSV2IaKyI>QaOl1C`!1#iU^~K!BYu9 z7_w6q54Zi6yK`VI7z19Qo5OtW7>ylS_IsnIf&R^Yaz`