From 6e63b7750b0e69894cf9c12d9a61e125d90ecaa5 Mon Sep 17 00:00:00 2001 From: kilbith Date: Sun, 27 Sep 2015 14:35:20 +0200 Subject: [PATCH] Add Wood Frame --- hive.lua | 2 +- nodes.lua | 17 +++++++++++++++++ textures/{xdecor_bee.png => hive_bee.png} | Bin textures/hive_layout.png | Bin 338 -> 235 bytes .../{xdecor_anvil.png => worktable_anvil.png} | Bin textures/{xdecor_saw.png => worktable_saw.png} | Bin textures/xdecor_lightbox.png | Bin 240 -> 236 bytes textures/xdecor_wood_frame.png | Bin 0 -> 255 bytes worktable.lua | 2 +- 9 files changed, 19 insertions(+), 2 deletions(-) rename textures/{xdecor_bee.png => hive_bee.png} (100%) rename textures/{xdecor_anvil.png => worktable_anvil.png} (100%) rename textures/{xdecor_saw.png => worktable_saw.png} (100%) create mode 100644 textures/xdecor_wood_frame.png diff --git a/hive.lua b/hive.lua index 13a3b95..7256239 100644 --- a/hive.lua +++ b/hive.lua @@ -6,7 +6,7 @@ function hive.construct(pos) local xbg = default.gui_bg..default.gui_bg_img..default.gui_slots local formspec = "size[8,5;]"..xbg.. - "label[1.35,0;Bees are making honey\nwith pollen around...]image[6,0;1,1;xdecor_bee.png]image[5,0;1,1;hive_layout.png]list[current_name;honey;5,0;1,1;]list[current_player;main;0,1.35;8,4;]" + "label[1.35,0;Bees are making honey\nwith pollen around...]image[6,0;1,1;hive_bee.png]image[5,0;1,1;hive_layout.png]list[current_name;honey;5,0;1,1;]list[current_player;main;0,1.35;8,4;]" meta:set_string("formspec", formspec) meta:set_string("infotext", "Artificial Hive") diff --git a/nodes.lua b/nodes.lua index 052992f..927c8d3 100644 --- a/nodes.lua +++ b/nodes.lua @@ -513,6 +513,23 @@ xdecor.register("tv", { } }) +xpanes.register_pane("wood_frame", { + description = "Wood Frame", + tiles = {"xdecor_wood_frame.png"}, + drawtype = "airlike", + paramtype = "light", + textures = {"xdecor_wood_frame.png", "xdecor_wood_frame.png", "xpanes_space.png"}, + inventory_image = "xdecor_wood_frame.png", + wield_image = "xdecor_wood_frame.png", + groups = {choppy=3, pane=1, flammable=3}, + sounds = default.node_sound_wood_defaults(), + recipe = { + {"group:wood", "group:stick", "group:wood"}, + {"group:stick", "group:stick", "group:stick"}, + {"group:wood", "group:stick", "group:wood"} + } +}) + xdecor.register("woodframed_glass", { description = "Wood Framed Glass", drawtype = "glasslike_framed", diff --git a/textures/xdecor_bee.png b/textures/hive_bee.png similarity index 100% rename from textures/xdecor_bee.png rename to textures/hive_bee.png diff --git a/textures/hive_layout.png b/textures/hive_layout.png index 9d7aeb0db798cc2547f864226e20cc38bbc43ae1..90280d8e803cec969597282718bf31c572f9568a 100644 GIT binary patch delta 219 zcmV<103`p?0_y>g7=Hu<0002(-QrRJ001FSOjJd1aBzEjdw6(wV`F1%Y;1vnfqs5| zbaZrPW@cSoU0`5fq>ilH0001mNkl#H9>4>BUAl`sM z<64>?KgebxZQlN9Rw|(I%H-BcODd^^&qjM!?lvm!>85DvC+q? z&&8^;p?b`~q}0lox{!LpCPuZ*^)f2o&nt( za5jK+tJ-xtukF4Q;a9l(ljZThQ`VE<&S#*^HSHVC?$99K`Mk~Gv$%$8u2nUPHAIkB zu=rCLN7%gEUp(EAp=V}iVeSR0jPV_^(V;B(97wKyq3b#bdR_2HWzAUlooXcu`+pE{ V39N8IHtYZZ002ovPDHLkV1j*PtIPlZ diff --git a/textures/xdecor_anvil.png b/textures/worktable_anvil.png similarity index 100% rename from textures/xdecor_anvil.png rename to textures/worktable_anvil.png diff --git a/textures/xdecor_saw.png b/textures/worktable_saw.png similarity index 100% rename from textures/xdecor_saw.png rename to textures/worktable_saw.png diff --git a/textures/xdecor_lightbox.png b/textures/xdecor_lightbox.png index 4bfd18326c1c94513ac07c3763ede326b9fd9d80..a89b09b3dd1bab665a18b49c3cbe14c38a33320e 100644 GIT binary patch delta 208 zcmV;>05AXW0qg;gB!3}LOjJcWCKFON8|Bz(@#=wRL?T5k7x?q4T|FQ4?vVNPn|x9! zmZ$O>0001nNklX-Csra|G)bD}>GS@OS)MlQkiQCJ znPa8T6`p0%uSE*Nl8ajdcG^9LF5O@)51(FLU;*LoK^qrcX;L*I@#=wILM%-(A3`h|`17h)J16w+kookR zYf?0hKa6$&004(cL_t&t*JDs(RdrHQ(oki912;86Ac){#VBlbs5)^O%iU_z)myAy2 zU{Di|;4E+wWCbz|95~nofohD4BSnh^foi0R*#(LhGBLPKE=_P?VK-!9XqcSAKA{yT z!XVIEJUN7!fk7c7xZKjfHH9HSLC|uhF;fzQ0@%j12nHoK6$ce<6(<1KR2T4h_GL-{ O0000mT5ffk`jDOiG@2?O?c(H;N(Py$$KX^>@tyDXKb*=*u-cB xgQ2ssfYvZ8zZ#@R{gtg9Km7X#hG;OXk;vd$@?2>>WeP?!J! literal 0 HcmV?d00001 diff --git a/worktable.lua b/worktable.lua index dd798db..62eb1d3 100644 --- a/worktable.lua +++ b/worktable.lua @@ -55,7 +55,7 @@ function worktable.construct(pos) inv:set_size("hammer", 1) local formspec = "size[8,7;]"..xbg.. - "list[context;forms;4,0;4,3;]label[0.95,1.23;Cut]box[-0.05,1;2.05,0.9;#555555]image[3,1;1,1;gui_furnace_arrow_bg.png^[transformR270]label[0.95,2.23;Repair]box[-0.05,2;2.05,0.9;#555555]image[0,1;1,1;xdecor_saw.png]image[0,2;1,1;xdecor_anvil.png]image[3,2;1,1;hammer_layout.png]list[current_name;input;2,1;1,1;]list[current_name;tool;2,2;1,1;]list[current_name;hammer;3,2;1,1;]button[0,0;2,1;craft;Crafting]button[2,0;2,1;storage;Storage]list[current_player;main;0,3.25;8,4;]" + "list[context;forms;4,0;4,3;]label[0.95,1.23;Cut]box[-0.05,1;2.05,0.9;#555555]image[3,1;1,1;gui_furnace_arrow_bg.png^[transformR270]label[0.95,2.23;Repair]box[-0.05,2;2.05,0.9;#555555]image[0,1;1,1;worktable_saw.png]image[0,2;1,1;worktable_anvil.png]image[3,2;1,1;hammer_layout.png]list[current_name;input;2,1;1,1;]list[current_name;tool;2,2;1,1;]list[current_name;hammer;3,2;1,1;]button[0,0;2,1;craft;Crafting]button[2,0;2,1;storage;Storage]list[current_player;main;0,3.25;8,4;]" meta:set_string("formspec", formspec) meta:set_string("infotext", "Work Table")