From 6eab8e213c23c5aaafeb0ad0ce34825c8f3cb6db Mon Sep 17 00:00:00 2001 From: Wuzzy Date: Fri, 24 Nov 2017 12:07:16 +0100 Subject: [PATCH] Add 5 wood trapdoors, change oak trapdoor texture --- mods/ITEMS/mcl_doors/README.txt | 5 ++ mods/ITEMS/mcl_doors/register.lua | 57 +++++++++++------- .../mcl_doors/textures/doors_trapdoor.png | Bin 280 -> 181 bytes .../textures/mcl_doors_trapdoor_acacia.png | Bin 0 -> 212 bytes .../textures/mcl_doors_trapdoor_birch.png | Bin 0 -> 580 bytes .../textures/mcl_doors_trapdoor_dark_oak.png | Bin 0 -> 211 bytes .../textures/mcl_doors_trapdoor_jungle.png | Bin 0 -> 303 bytes .../textures/mcl_doors_trapdoor_spruce.png | Bin 0 -> 261 bytes 8 files changed, 39 insertions(+), 23 deletions(-) create mode 100644 mods/ITEMS/mcl_doors/textures/mcl_doors_trapdoor_acacia.png create mode 100644 mods/ITEMS/mcl_doors/textures/mcl_doors_trapdoor_birch.png create mode 100644 mods/ITEMS/mcl_doors/textures/mcl_doors_trapdoor_dark_oak.png create mode 100644 mods/ITEMS/mcl_doors/textures/mcl_doors_trapdoor_jungle.png create mode 100644 mods/ITEMS/mcl_doors/textures/mcl_doors_trapdoor_spruce.png diff --git a/mods/ITEMS/mcl_doors/README.txt b/mods/ITEMS/mcl_doors/README.txt index 189ba89d..c0cfc052 100644 --- a/mods/ITEMS/mcl_doors/README.txt +++ b/mods/ITEMS/mcl_doors/README.txt @@ -29,3 +29,8 @@ With modifications by GitHub user kingoscargames: - `doors_item_steel.png` - `mcl_doors_door_iron_lower.png` - `mcl_doors_door_iron_upper.png` +- `mcl_doors_trapdoor_acaica.png` +- `mcl_doors_trapdoor_birch.png` +- `mcl_doors_trapdoor_spruce.png` +- `mcl_doors_trapdoor_dark_oak.png` +- `mcl_doors_trapdoor_jungle.png` diff --git a/mods/ITEMS/mcl_doors/register.lua b/mods/ITEMS/mcl_doors/register.lua index ea8459fb..ed3f43b7 100644 --- a/mods/ITEMS/mcl_doors/register.lua +++ b/mods/ITEMS/mcl_doors/register.lua @@ -202,32 +202,43 @@ minetest.register_craft({ --[[ Trapdoors ]] +local woods = { + -- id, desc, texture, craftitem + { "trapdoor", "Oak Trapdoor", "doors_trapdoor.png", "mcl_core:wood" }, + { "acacia_trapdoor", "Acacia Trapdoor", "mcl_doors_trapdoor_acacia.png", "mcl_core:acaciawood" }, + { "birch_trapdoor", "Birch Trapdoor", "mcl_doors_trapdoor_birch.png", "mcl_core:birchwood" }, + { "spruce_trapdoor", "Spruce Trapdoor", "mcl_doors_trapdoor_spruce.png", "mcl_core:sprucewood" }, + { "dark_oak_trapdoor", "Dark Oak Trapdoor", "mcl_doors_trapdoor_dark_oak.png", "mcl_core:darkwood" }, + { "jungle_trapdoor", "Jungle Trapdoor", "mcl_doors_trapdoor_jungle.png", "mcl_core:junglewood" }, +} -mcl_doors:register_trapdoor("mcl_doors:trapdoor", { - description = "Wooden Trapdoor", - _doc_items_longdesc = "Wooden trapdoors are horizontal barriers which can be opened and closed by hand or a redstone signal. They occupy the upper or lower part of a block, depending on how they have been placed. When open, they can be climbed like a ladder.", - _doc_items_usagehelp = "To open or close the trapdoor, rightclick it or send a redstone signal to it.", - tiles = {"doors_trapdoor.png"}, - wield_image = "doors_trapdoor.png", - groups = {handy=1,axey=1, mesecon_effector_on=1, material_wood=1}, - _mcl_hardness = 3, - _mcl_blast_resistance = 15, - sounds = mcl_sounds.node_sound_wood_defaults(), -}) +for w=1, #woods do + mcl_doors:register_trapdoor("mcl_doors:"..woods[w][1], { + description = woods[w][2], + _doc_items_longdesc = "Wooden trapdoors are horizontal barriers which can be opened and closed by hand or a redstone signal. They occupy the upper or lower part of a block, depending on how they have been placed. When open, they can be climbed like a ladder.", + _doc_items_usagehelp = "To open or close the trapdoor, rightclick it or send a redstone signal to it.", + tiles = {woods[w][3]}, + wield_image = woods[w][3], + groups = {handy=1,axey=1, mesecon_effector_on=1, material_wood=1}, + _mcl_hardness = 3, + _mcl_blast_resistance = 15, + sounds = mcl_sounds.node_sound_wood_defaults(), + }) -minetest.register_craft({ - output = 'mcl_doors:trapdoor 2', - recipe = { - {'group:wood', 'group:wood', 'group:wood'}, - {'group:wood', 'group:wood', 'group:wood'}, - } -}) + minetest.register_craft({ + output = "mcl_doors:"..woods[w][1].." 2", + recipe = { + {woods[w][4], woods[w][4], woods[w][4]}, + {woods[w][4], woods[w][4], woods[w][4]}, + } + }) -minetest.register_craft({ - type = "fuel", - recipe = "mcl_doors:trapdoor", - burntime = 15, -}) + minetest.register_craft({ + type = "fuel", + recipe = "mcl_doors:"..woods[w][1], + burntime = 15, + }) +end mcl_doors:register_trapdoor("mcl_doors:iron_trapdoor", { description = "Iron Trapdoor", diff --git a/mods/ITEMS/mcl_doors/textures/doors_trapdoor.png b/mods/ITEMS/mcl_doors/textures/doors_trapdoor.png index ec3f4d7c056ffd0394bcc4191e914b8304f24239..24e34c35b3e942df5397a1a678ef7626635df92d 100644 GIT binary patch delta 153 zcmbQiw3Ts!N&ra?Rt`jD(lwDKH=Cydfqr@S0 zS>DV4i}ROFbcmR(Jn^()Q+a0PzK`WunY?9{y1a)jaho!C?G_TY+naISpMima!PC{x JWt~$(699B_JPrT= delta 252 zcmdnWID=_|O1*l3Pl&6Ij*hajvW>o)sez7*xpugVNwSZ1a;R6JgQ<^`wWOpZ0|SGp zspOxEVDwSesd!L&{{;gB1B0ilpUXO@geCwRaB0E- diff --git a/mods/ITEMS/mcl_doors/textures/mcl_doors_trapdoor_acacia.png b/mods/ITEMS/mcl_doors/textures/mcl_doors_trapdoor_acacia.png new file mode 100644 index 0000000000000000000000000000000000000000..7e01900ed0c8ebd49af6daa9ff0758e8c4f113a7 GIT binary patch literal 212 zcmeAS@N?(olHy`uVBq!ia0y~yU=RRd7G?$phPQVgfdu3Nd_r7Xe2hw+w5LVe&P;dP z-j>L~z_7G5NS*-%1Q{4aRd)0+Ffg!{1o;L32LXo7`q?=0|(|*0j?0JXC&8?^2-Q6U= zGG+gTe~ HDWM4f_#jY& literal 0 HcmV?d00001 diff --git a/mods/ITEMS/mcl_doors/textures/mcl_doors_trapdoor_birch.png b/mods/ITEMS/mcl_doors/textures/mcl_doors_trapdoor_birch.png new file mode 100644 index 0000000000000000000000000000000000000000..fbd39dbcb848b4b6b3f3f984154ed04779753301 GIT binary patch literal 580 zcmeAS@N?(olHy`uVBq!ia0y~yU=RRd4kiW$h6xih%orG$xIJAQLn;_mCo#Xd8z6D? zc69PKQNE8!=X(AfT$8Zvu;q+g>lwL6X6CXQ%dh_aE&F}ti|d~s&fzXS`b5h2@~Y6Q zpLrEo3UhC-OgquuxJcvwziGL*`yOwI&{?%=)$Vow-`rFe3VE^XU8Ub7m6B>RBZV zDs&%x? z^Hbk!E*Cv)E^<8UAf2)@Bxx7NsnBa(fo{)=SI)}2u_aVnFnHy(YF>F3P30G6JiRSb zlorf9`r#CZ*G#4I)+_JhEg4hv-kwqTK3z^SSm8J0+{~?4ie%KgnXhpATvl1YbYfml z_!ZO3?E5P}FD;(_ENJ?!bJvX4zyF{aVm!4zC&psK zytmJne7w7|nu*g)H)h7W#w$nj-d25WNvznKecyKXde7#n+-TF9ijNbxZ?Di?61`e% zp5e0R|5$rs%xag#d_PbZyZrpEAAz2M{(;}LPxanD&($jQEukhp(ENbP0l+XkKjeZws literal 0 HcmV?d00001 diff --git a/mods/ITEMS/mcl_doors/textures/mcl_doors_trapdoor_dark_oak.png b/mods/ITEMS/mcl_doors/textures/mcl_doors_trapdoor_dark_oak.png new file mode 100644 index 0000000000000000000000000000000000000000..1a75bb9a68d3518edd1f23993df1cb1878cd4079 GIT binary patch literal 211 zcmeAS@N?(olHy`uVBq!ia0y~yU=RRd7G?$phPQVgfdmu-d_r7pO|<-+%p$$*Q^Gv* z5&{iWB;*-DK#+mKT36A{LTgLeemw>ThFnh<$B+s}k?u^<<^&#=^v?nl5*oaneXskm z2C%a*rvBcyznDYyLD-t7#@Ft*ywH+bd)U>tlP`X|v&h^Oh4^G%^{3Bz-29W3K9o!M z&TdlUDY|@VBhz{JjdA;m=c#Ym`)aQ2f5Yj=bthHCQUZX z>0m>J>L|PBIM=ceyI^DOJRhrAE4}V4zhp;)6n7JUL-l-rtFkC31_p)@bIn)>LpN;| z1_lOSEx9XBnfwe43_>MAe!>6I0mGyH`-K=77}`Bu978G?ZBKJfI;z0o8o1%BrQ*My z-|<<(K2NRYYjs-uF)Z|%^Qc(SNpD4lZ0wsuQ+{#pOlIV1dnIGP`$;``&jq$d>H=&bq=kwj{sl!G#k0Ql7#DW(Tj+6SVF+ n2I#+Tl+tih>Js}|`JY*+pYye_TEcn;1_lOCS3j3^P6QU;)7aWz1yYK$r;Ct%zW~GVz*#}JYU++5mdfWTcHq6f^ia6;x zE^cTPfAR9(0ya)oL5E2bHuXxf7`RPO3A@7Y);#4Co4$9tG_S?E&%4g$@6c9xuvhAg z)vmn`*H*BZP1sxGY85hJ607y91Kbg*2Ul?LGB~^0m3s2lAOFt~D$5bO$?L~K1_lNO MPgg&ebxsLQ0P7V})Bpeg literal 0 HcmV?d00001