From 8b806bf0825bf3ea5d8ea2ff6fd3a69cc2e201d9 Mon Sep 17 00:00:00 2001 From: Vanessa Ezekowitz Date: Mon, 23 Mar 2015 02:09:39 -0400 Subject: [PATCH] if technic isn't installed, define its granite node (as a building material only) and make it from 5 tar + 4 marble (both from building_blocks). If moreblocks is installed (and technic isn't), this node is routed through the stairsplus component, and a recipe is added that uses moreblocks' own tar node also. --- building_blocks/init.lua | 36 +++++++++++++++++++ building_blocks/textures/technic_granite.png | Bin 0 -> 947 bytes homedecor/crafts.lua | 3 +- 3 files changed, 38 insertions(+), 1 deletion(-) create mode 100644 building_blocks/textures/technic_granite.png diff --git a/building_blocks/init.lua b/building_blocks/init.lua index b6c1753b..b4d99606 100644 --- a/building_blocks/init.lua +++ b/building_blocks/init.lua @@ -569,3 +569,39 @@ minetest.register_craft({ } }) +if not minetest.get_modpath("technic") then + minetest.register_node( ":technic:granite", { + description = "Granite", + tiles = { "technic_granite.png" }, + is_ground_content = true, + groups = {cracky=1}, + sounds = default.node_sound_stone_defaults(), + }) + + minetest.register_craft({ + output = "technic:granite 9", + recipe = { + { "building_blocks:Tar", "building_blocks:Marble", "building_blocks:Tar" }, + { "building_blocks:Marble", "building_blocks:Tar", "building_blocks:Marble" }, + { "building_blocks:Tar", "building_blocks:Marble", "building_blocks:Tar" } + }, + }) + + if minetest.get_modpath("moreblocks") then + stairsplus:register_all("technic", "granite", "technic:granite", { + description="Granite", + groups={cracky=1, not_in_creative_inventory=1}, + tiles={"technic_granite.png"}, + }) + + minetest.register_craft({ + output = "technic:granite 9", + recipe = { + { "moreblocks:tar", "building_blocks:Marble", "moreblocks:tar" }, + { "building_blocks:Marble", "moreblocks:tar", "building_blocks:Marble" }, + { "moreblocks:tar", "building_blocks:Marble", "moreblocks:tar" } + }, + }) + end +end + diff --git a/building_blocks/textures/technic_granite.png b/building_blocks/textures/technic_granite.png new file mode 100644 index 0000000000000000000000000000000000000000..abb1385018cf7f1acdeac44bc9a87f04e8dbbce5 GIT binary patch literal 947 zcmV;k15EshP)Px#24YJ`L;(K){{a7>y{D4^000SaNLh0L01m4F01m4Gj_kzz00007bV*G`2iyt~ z5gRS~FaQSt00T2gL_t(I%LTzpQyT>U!14b+lWekize5Wt5Hx6MM`#&4PA$E7bG+!y z&%&4S;8Bl`7iSzRqYgTSX$9n&5J*C@VYBaK*WXWg{`hgU_OQa$?Je$Hp)J3%*ZFL@j?k>vBPAyD&CV7-ym?EjTHt(OaCu{p z(lzFxKq;5v==7XdpKj8~YRsZJ6U!s!&ydUIG+%zQ!QQ{e)GAdr9#zm>I1W`kfggrcGdj(M zGP0tQ(PX;)Fk?Dg~X3!4$`LP(_KCts0%NNhzBqLcp?I zOvgcti;z#oFfEs}>j5DW#ZrmOI~RW*5?5q~rp>P>J^nen<UPp=rp%oI+M74CmY$Cf~l^;_SMQ7)x?+_@16|PkVippZ5+CzIwS8DT<8i z&j_N3c@VN%EAabC58Lx-FIK4+Q`ol0ad(I+$>g*Ihn*fvl|1rNDUYBkkkI(<$6pYX z7;oNRpeGW@vOr3Ond{IueYV>xEEaW6&$`r$A7J`E!WS<#qvP8NaY-bbRJa=1M6&=l z@JYxDkvK<7W=Ja%rCb`<3y4Y3C}lYvnuyoK5udNG;Di!Koe|+Y1W{o7Nt+iRE)k*< zcmb*s$FN;;y2eT0;J2eL_vQqtSSs#D;f#+SHMn;I5-|x`(J=4F$jJ=0ZLzib04*Ug zG;C^F9We@t6qU1!8^poLV&cr1PAx3kW&7zGvI2L8#mqMFeV_k^6E;^@*jZo3^ISIS zIa>7!YFt4SWr0^u*60mKMjd70}*LZu}R5dQg7UA5XS+CG6q;M^Vi;0EfdpuuT