From 54a011b52140674c4f7027ed5b8c11a0357189b8 Mon Sep 17 00:00:00 2001 From: Wuzzy Date: Wed, 1 Mar 2017 01:04:56 +0100 Subject: [PATCH] Add huge mushrooms --- mods/ITEMS/mcl_mushrooms/depends.txt | 1 + mods/ITEMS/mcl_mushrooms/init.lua | 75 ++++++++++++++++++ mods/ITEMS/mcl_mushrooms/mod.conf | 1 + .../mcl_mushrooms_mushroom_block_inside.png | Bin 0 -> 740 bytes ...cl_mushrooms_mushroom_block_skin_brown.png | Bin 0 -> 1220 bytes .../mcl_mushrooms_mushroom_block_skin_red.png | Bin 0 -> 957 bytes ...mcl_mushrooms_mushroom_block_skin_stem.png | Bin 0 -> 894 bytes 7 files changed, 77 insertions(+) create mode 100644 mods/ITEMS/mcl_mushrooms/depends.txt create mode 100644 mods/ITEMS/mcl_mushrooms/init.lua create mode 100644 mods/ITEMS/mcl_mushrooms/mod.conf create mode 100644 mods/ITEMS/mcl_mushrooms/textures/mcl_mushrooms_mushroom_block_inside.png create mode 100644 mods/ITEMS/mcl_mushrooms/textures/mcl_mushrooms_mushroom_block_skin_brown.png create mode 100644 mods/ITEMS/mcl_mushrooms/textures/mcl_mushrooms_mushroom_block_skin_red.png create mode 100644 mods/ITEMS/mcl_mushrooms/textures/mcl_mushrooms_mushroom_block_skin_stem.png diff --git a/mods/ITEMS/mcl_mushrooms/depends.txt b/mods/ITEMS/mcl_mushrooms/depends.txt new file mode 100644 index 0000000000..3d96266de1 --- /dev/null +++ b/mods/ITEMS/mcl_mushrooms/depends.txt @@ -0,0 +1 @@ +mcl_sounds diff --git a/mods/ITEMS/mcl_mushrooms/init.lua b/mods/ITEMS/mcl_mushrooms/init.lua new file mode 100644 index 0000000000..0981f234b7 --- /dev/null +++ b/mods/ITEMS/mcl_mushrooms/init.lua @@ -0,0 +1,75 @@ +local template = { + groups = {handy=1,axey=1, huge_mushroom = 1, building_block = 1 }, + sounds = mcl_sounds.node_sound_wood_defaults(), + is_ground_content = true, + _mcl_blast_resistance = 1, + _mcl_hardness = 0.2, +} + +local red = table.copy(template) +red.drop = { + items = { + { items = {'mcl_farming:mushroom_red 1'}, rarity = 2 }, + { items = {'mcl_farming:mushroom_red 1'}, rarity = 2 }, + } +} + +local brown= table.copy(template) +brown.drop = { + items = { + { items = {'mcl_farming:mushroom_brown 1'}, rarity = 2 }, + { items = {'mcl_farming:mushroom_brown 1'}, rarity = 2 }, + } +} + +local register_mushroom = function(color, template, d_cap_top, d_cap_side, d_cap_corner, d_stem, d_pores, d_cap_all, d_stem_all) + + -- DV (Minecraft dava value) 14: Cap texture on all sides + local full = table.copy(template) + full.description = d_cap_all + full.tiles = { "mcl_mushrooms_mushroom_block_skin_"..color..".png" } + minetest.register_node("mcl_mushrooms:"..color.."_mushroom_block_cap_full", full) + + -- DV 0: Pores on all sides + local pores_full = table.copy(template) + pores_full.description = d_pores + pores_full.tiles = { "mcl_mushrooms_mushroom_block_inside.png" } + minetest.register_node("mcl_mushrooms:"..color.."_mushroom_block_pores_full", pores_full) + + -- DV 15: Stem texture on all sides + local stem_full = table.copy(template) + stem_full.description = d_stem_all + stem_full.tiles = { "mcl_mushrooms_mushroom_block_skin_stem.png" } + minetest.register_node("mcl_mushrooms:"..color.."_mushroom_block_stem_full", stem_full) + + -- DV 10: Stem + local stem = table.copy(template) + stem.description = d_stem + stem.tiles = { "mcl_mushrooms_mushroom_block_inside.png", "mcl_mushrooms_mushroom_block_inside.png", "mcl_mushrooms_mushroom_block_skin_stem.png" } + minetest.register_node("mcl_mushrooms:"..color.."_mushroom_block_stem", stem) + + -- DV 1, DV 3, DV 7, DV 9: Cap corner. Cap texture on top and two sides in a corner formation + local cap_corner = table.copy(template) + cap_corner.description = d_cap_corner + cap_corner.paramtype2 = "facedir" + cap_corner.tiles = { "mcl_mushrooms_mushroom_block_skin_"..color..".png", "mcl_mushrooms_mushroom_block_inside.png", "mcl_mushrooms_mushroom_block_inside.png", "mcl_mushrooms_mushroom_block_skin_"..color..".png", "mcl_mushrooms_mushroom_block_inside.png", "mcl_mushrooms_mushroom_block_skin_"..color..".png" } + minetest.register_node("mcl_mushrooms:"..color.."_mushroom_block_cap_corner", cap_corner) + + -- DV 5: Cap texture on top + local cap_top = table.copy(template) + cap_top.description = d_cap_top + cap_top.tiles = { "mcl_mushrooms_mushroom_block_skin_"..color..".png", "mcl_mushrooms_mushroom_block_inside.png" } + minetest.register_node("mcl_mushrooms:"..color.."_mushroom_block_cap_top", cap_top) + + -- DV 2, DV 4, DV 6, DV 8: Cap texture on top and one side + local cap_side = table.copy(template) + cap_side.description = d_cap_side + cap_side.paramtype2 = "facedir" + cap_side.tiles = { "mcl_mushrooms_mushroom_block_skin_"..color..".png", "mcl_mushrooms_mushroom_block_inside.png", "mcl_mushrooms_mushroom_block_inside.png", "mcl_mushrooms_mushroom_block_inside.png", "mcl_mushrooms_mushroom_block_inside.png", "mcl_mushrooms_mushroom_block_skin_"..color..".png" } + minetest.register_node("mcl_mushrooms:"..color.."_mushroom_block_cap_side", cap_side) + +end + +register_mushroom("red", red, "Huge Red Mushroom Cap Top", "Huge Red Mushroom Cap Side", "Huge Red Mushroom Cap Corner", "Huge Red Mushroom Stem", "Huge Red Mushroom Pores", "Huge Red Mushroom All-Faces Cap", "Huge Red Mushroom All-Faces Stem") + +register_mushroom("brown", brown, "Huge Brown Mushroom Cap Top", "Huge Brown Mushroom Cap Side", "Huge Brown Mushroom Cap Corner", "Huge Brown Mushroom Stem", "Huge Brown Mushroom Pores", "Huge Brown Mushroom All-Faces Cap", "Huge Brown Mushroom All-Faces Stem") diff --git a/mods/ITEMS/mcl_mushrooms/mod.conf b/mods/ITEMS/mcl_mushrooms/mod.conf new file mode 100644 index 0000000000..64bbd8ca48 --- /dev/null +++ b/mods/ITEMS/mcl_mushrooms/mod.conf @@ -0,0 +1 @@ +name = mcl_mushrooms diff --git a/mods/ITEMS/mcl_mushrooms/textures/mcl_mushrooms_mushroom_block_inside.png b/mods/ITEMS/mcl_mushrooms/textures/mcl_mushrooms_mushroom_block_inside.png new file mode 100644 index 0000000000000000000000000000000000000000..abbeb2e7bb1fb4da00c16ffd3d212035d9545057 GIT binary patch literal 740 zcmeAS@N?(olHy`uVBq!ia0vp^3LwnF3?v&v(vJfvmUKs7M+SzC{oH>NSwWJ?9znhg z3{`3j3=J&|48MRv4KElNN(~qoUL`OvSj}Ky5HFasE6@fgAs65i;(BFs{lyJ6*S0oZ z-c)yfUDees4Hwo|ubz;0X=CmG|Nm!iPg@OC$(ZEr?!x);=F&Gn4tt5GuPggQCK+)F ziJy0Ktbo#oJzX3_G|rn&++DROK*F`&WrENXB~{1c5l%ZiRvKDp_CI3u7Gd$~w31hC zaj1A>c=C+!nyug1l5%!sm$`KE1x}f}s^O}ox=*2t_vv+k7YvV_>D;rWDO#p~*8y28 zi`sc7YK4XRG9+|A&3F7{_uy)ystm)uHFQambgFkkyxi2Na|LlGZV-uTvc zs(re{e$L$qi|24&e?9U24u%r$*kgUBRvkw39tb7yXHR#$?5k7Yzgl}*L)C|^S6p@_ zhOdABJmdgRazSJjs|bd8-e@BB$~XPaFSLy4-vG#$J7AF+(cvv%Q%`>~G2(`$!rUI3_^&4#kf?sJrd#lbiO{KZ|YV^wpg=oor+yBHIzrX(U?oYw2 zUR9ZSJkw*<)eDp4T^x>XfB7|U7tb$lK?aWcSg%!eB}-1}Zf{uTXtV3RHjB`CtDi!f z4DU7TCih3rJe+a(KdX&!t;_M*(;R>?tXkq4QIe8al4_M)lnSI6j0_CTbq$PkjVwZp ujIE4JfJocG(8|Ez{JFWRC>nC}Q!>*kackH&S#>5*1B0ilpUXO@geCxkyD)J8 literal 0 HcmV?d00001 diff --git a/mods/ITEMS/mcl_mushrooms/textures/mcl_mushrooms_mushroom_block_skin_brown.png b/mods/ITEMS/mcl_mushrooms/textures/mcl_mushrooms_mushroom_block_skin_brown.png new file mode 100644 index 0000000000000000000000000000000000000000..00564345c72b740701fe4a8365e96244badb1082 GIT binary patch literal 1220 zcmeAS@N?(olHy`uVBq!ia0vp^3Lw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VxG7o`Fz1|tJQb6o=?T_cMSBV#Kg6ClzyFtjo-IDc-gDvE~O b{FKbJO57UuO;()=)WG2B>gTe~DWM4fKz|N6 literal 0 HcmV?d00001 diff --git a/mods/ITEMS/mcl_mushrooms/textures/mcl_mushrooms_mushroom_block_skin_red.png b/mods/ITEMS/mcl_mushrooms/textures/mcl_mushrooms_mushroom_block_skin_red.png new file mode 100644 index 0000000000000000000000000000000000000000..89d723086b07a9d8e3d25c057063eb26af014a6c GIT binary patch literal 957 zcmeAS@N?(olHy`uVBq!ia0vp^3LwnE3?yBabR7dyEa{HEjtmSN`?>!lvVtU&J%W50 z7^>757#dm_7=8hT8eT9klo~KFyh>nTu$sZZAYL$MSD+10B0Rt+#C5Bz^bQ5NJt|7O zloU2dh^-eF-L0&+Q&E14jMO$cna$FY8zsfJ%gb((lDK*E=B-<|?%ut7<;s=ImoMMA zapT&xYZotGyng-q)vH%8UAlDV&Yj!0Z{NFj@Bjb*JDcxX0Igt5@^*KTnZx494&<21sKV*^-myq~*H^+*BfhpP3#WBRk_*mwyYQKz&hs_0)2{8+b(+%>>}~$^_g;Ws|%6RWrL+M0h;+NLyrjsin#)+}9-G=FV$eMltL6 zk$g!e@zM3qyLS1eUDZfs z*Dt+Zuyo^`%;tCJzStfqchveeF?x%->Z_zHoVG9XIek*!3jS%k$y#+uYV+2zmrvGm zN0=SmY42aHd9YU}eZkVG9sEmKS3Ljqt4cOt=>kCo3&*`?Rfl@_KChd1duQ!Ai4O-1 zy1nz$zQ}E25xZ4sTVE&Z#QHGn#aT^L<7@W>PMMsKw?E(i_+3h_fabQ1D~!Bc)eO#6 z#vT{vJFxXbQ>S!Vv$FoO3oH3%**tvv|Ki3F*F~G&+?~ohEvId+VS>~$k>_l)*Iv6K z-8psDu`?+z8K<_gaG!YXH)T%phfAgh=Q`E7m(J_|EU)Dv{4n{@6{T%nrw^UmS-+3( zP}ZfXS*C(3yILHjJCf|yJ%9XhLHV@HA7c{iSoiZwi>vV5#sU+*bEzL< zR1dmVSyNvxe=vHs-|m%e%DhP)u}dPk4=-Z2I2<7K=AphrE3aYx&=_ zagSpCrd-Y?GKOc$?##cLzp7PzE%UE!;y+ow+?nBRdP`(kYX@0Ff`XSFw!-$2r)9YGBN=oZ39Cq1B3JD=BlD-$jwj5OsmAL UVc%rcnLrH;p00i_>zopr06kKtT>t<8 literal 0 HcmV?d00001 diff --git a/mods/ITEMS/mcl_mushrooms/textures/mcl_mushrooms_mushroom_block_skin_stem.png b/mods/ITEMS/mcl_mushrooms/textures/mcl_mushrooms_mushroom_block_skin_stem.png new file mode 100644 index 0000000000000000000000000000000000000000..0afcbad2781771317c1b3db462dfb3deca0b013f GIT binary patch literal 894 zcmeAS@N?(olHy`uVBq!ia0vp^3LwnE3?yBabR7dyEa{HEjtmSN`?>!lvVtU&J%W50 z7^>757#dm_7=8hT8eT9klo~KFyh>nTu$sZZAYL$MSD+10A|${k#P!I*?U&9Sxpw)) z&8w$wT|0B)$gaJ+Hl9Co@W9^9*Df7DxNqyO?d$jL-gNciv7Ou2?%BEi%7vo`_inj- z{^+f1r}yvKeEsr?8&^*5-m!ki)-}7ftvhmH+yDRn!z!g4f#x$NdAqwvGbLPE0_3ol zc>21sKV*^-myq~*H^+*Bfl1xd#WBR{QoA2(Z*KUcA{g-?JaV?(hWPz5@mvu( z{!3XdsD;(k+U(fR#k%6%Yz7VnKZUU4jPXC0pLc4VE7ABY%XQkfD|WkAT|N1^;hfmF z)f<>s?Cbaz?r=cux=O?C0I@J@pRk9SzgQKjcqWH1T=>pX;G`5O;itO3<8S3ZrX6eM zEI%JOdF=|*{>KN-KCg@~WHx;!b70}j^czowzpbrhu5g{UN@(KL+IK7OGQKhSlV|X= zYw?N|KNzgECieCk3FJ@v>BaP>axa60_nK$iEZ5r7w!HLU(s;is@4lU}nOI9+TyERioSKF^AK>{$%)|92Rf%uEX_$dkIIl0LPUOp@xM^Sy*H< z%#4=gQol-{qHo$WmYoTE8oYkth7*C;B^-JxrfFDuuT`2;HAS_( z?Yqg$J-2zU9Q`SM^TWe46>YJ)PjCNbo!izK^{#Pw(pS!DGyRx0aQ`-VY5u`w4OeR4 zx|?6!wB`RL%seGr@wa9pmvi%qe4R;U{~5pDk$LKKTKXX{6{(iEMwFx^mZVxG7o`Fz z1|tJQb6o=?T_cMSBV#Kg6ClzyFtjo-IDc-gDvE~O{FKbJO57UuO;()=)WG2B>gTe~ HDWM4fTQH0r literal 0 HcmV?d00001