diff --git a/computer/computers.lua b/computer/computers.lua index 96d8f9f..cf7c6ac 100644 --- a/computer/computers.lua +++ b/computer/computers.lua @@ -15,6 +15,7 @@ minetest.register_node("computer:vanio", { drawtype = "mesh", mesh = "computer_laptop.obj", description = "Pony Vanio", + inventory_image = "computer_laptop_inv.png", tiles = {"computer_laptop.png"}, paramtype = "light", paramtype2 = "facedir", @@ -53,6 +54,7 @@ minetest.register_node("computer:vanio_off", { -- Sony PlayStation lookalike computer.register("computer:slaystation", { description = "Pony SlayStation", + inventory_image = "computer_ps1_inv.png", tiles_off = { top=true }, node_box = computer.pixelnodebox(32, { -- X Y Z W H L @@ -69,6 +71,7 @@ computer.register("computer:slaystation", { -- Sony PlayStation 2 lookalike computer.register("computer:slaystation2", { description = "Pony SlayStation 2", + inventory_image = "computer_ps2_inv.png", tiles_off = { front=true }, node_box = computer.pixelnodebox(32, { -- X Y Z W H L @@ -86,6 +89,7 @@ computer.register("computer:slaystation2", { -- Sinclair ZX Spectrum lookalike computer.register("computer:specter", { description = "SX Specter", + inventory_image = "computer_specter_inv.png", tiles_off = { }, node_box = computer.pixelnodebox(32, { -- X Y Z W H L @@ -97,6 +101,7 @@ computer.register("computer:specter", { -- Nintendo Wii lookalike computer.register("computer:wee", { description = "Nientiendo Wee", + inventory_image = "computer_wii_inv.png", tiles_off = { front=true }, node_box = computer.pixelnodebox(32, { -- X Y Z W H L @@ -124,6 +129,7 @@ minetest.register_node("computer:piepad", { -- Commodore 64 lookalike computer.register("computer:admiral64", { description = "Admiral64", + inventory_image = "computer_ad64_inv.png", tiles_off = { }, node_box = computer.pixelnodebox(32, { -- X Y Z W H L @@ -134,6 +140,7 @@ computer.register("computer:admiral64", { -- Commodore 128 lookalike computer.register("computer:admiral128", { description = "Admiral128", + inventory_image = "computer_ad128_inv.png", tiles_off = { }, node_box = computer.pixelnodebox(32, { -- X Y Z W H L @@ -149,6 +156,7 @@ local mo_sbox = { minetest.register_node("computer:monitor", { description = "Monitor and keyboard", + inventory_image = "computer_monitor_inv.png", drawtype = "mesh", mesh = "computer_monitor.obj", tiles = {"computer_black.png", "monitor_plastic.png", "computer_black.png", "monitor_plastic.png"}, @@ -189,6 +197,7 @@ minetest.register_alias("computer:monitor_desktop", "computer:monitor") --WIFI Router (linksys look-a-like) minetest.register_node("computer:router", { description = "WIFI Router", + inventory_image = "computer_router_inv.png", tiles = {"computer_router_t.png","computer_router_bt.png","computer_router_l.png","computer_router_r.png","computer_router_b.png", {name="computer_router_f_animated.png", animation={type="vertical_frames", aspect_w=32, aspect_h=32, length=1.0}},}, --"computer_router_f.png"}, paramtype = "light", @@ -216,6 +225,7 @@ local pct_cbox = { --Modern PC Tower minetest.register_node("computer:tower", { description = "Computer Tower", + inventory_image = "computer_tower_inv.png", drawtype = "mesh", mesh = "computer_tower.obj", tiles = {"computer_tower.png"}, @@ -232,6 +242,7 @@ minetest.register_alias("computer:tower_on", "computer:tower") -- Printer/scaner combo minetest.register_node("computer:printer", { description = "Printer Scaner Combo", + inventory_image = "computer_printer_inv.png", tiles = {"computer_printer_t.png","computer_printer_bt.png","computer_printer_l.png", "computer_printer_r.png","computer_printer_b.png","computer_printer_f.png"}, paramtype = "light", diff --git a/computer/init.lua b/computer/init.lua index faa42a9..f43cc8a 100644 --- a/computer/init.lua +++ b/computer/init.lua @@ -13,6 +13,7 @@ computer.register = function (name, def) paramtype = "light", paramtype2 = "facedir", description = def.description, + inventory_image = def.inventory_image, groups = {snappy=2, choppy=2, oddly_breakable_by_hand=2}, tiles = { TEXPFX.."tp.png", diff --git a/computer/tetris.lua b/computer/tetris.lua index ecfb718..6e7aa87 100644 --- a/computer/tetris.lua +++ b/computer/tetris.lua @@ -29,12 +29,12 @@ local colors = { "computer_cyan.png", "computer_magenta.png", "computer_red.png" "computer_blue.png", "computer_green.png", "computer_orange.png", "computer_yellow.png" } local background = "image[0,0;3.55,6.66;computer_black.png]" -local buttons = "button[3,4.5;0.6,0.6;left;◄]" +local buttons = "button[3,4.5;0.6,0.6;left;<]" .."button[3.6,4.5;0.6,0.6;rotateleft;L]" - .."button[4.2,4.5;0.6,0.6;down;V]" - .."button[4.2,5.3;0.6,0.6;drop;▼]" + .."button[4.2,4.5;0.6,0.6;down;v]" + .."button[4.2,5.3;0.6,0.6;drop;V]" .."button[4.8,4.5;0.6,0.6;rotateright;R]" - .."button[5.4,4.5;0.6,0.6;right;►]" + .."button[5.4,4.5;0.6,0.6;right;>]" .."button[3.5,3;2,2;new;New Game]" local formsize = "size[5.9,5.7]" @@ -240,7 +240,7 @@ local function step(pos, fields) return run end -local arcade = { +minetest.register_node("computer:tetris_arcade", { description="Tetris Arcade", drawtype = "mesh", mesh = "tetris_arcade.obj", @@ -276,7 +276,6 @@ local arcade = { local node = {name="computer:tetris_arcade", param1=0, param2 = minetest.dir_to_facedir(dir)} minetest.set_node(pos, node) itemstack:take_item() + return itemstack end -} - -minetest.register_node("computer:tetris_arcade", arcade) +}) diff --git a/computer/textures/computer_ad128_inv.png b/computer/textures/computer_ad128_inv.png new file mode 100644 index 0000000..846497a Binary files /dev/null and b/computer/textures/computer_ad128_inv.png differ diff --git a/computer/textures/computer_ad64_inv.png b/computer/textures/computer_ad64_inv.png new file mode 100644 index 0000000..7970341 Binary files /dev/null and b/computer/textures/computer_ad64_inv.png differ diff --git a/computer/textures/computer_laptop_inv.png b/computer/textures/computer_laptop_inv.png new file mode 100644 index 0000000..7d02a2b Binary files /dev/null and b/computer/textures/computer_laptop_inv.png differ diff --git a/computer/textures/computer_monitor_inv.png b/computer/textures/computer_monitor_inv.png new file mode 100644 index 0000000..314197b Binary files /dev/null and b/computer/textures/computer_monitor_inv.png differ diff --git a/computer/textures/computer_printer_inv.png b/computer/textures/computer_printer_inv.png new file mode 100644 index 0000000..064d996 Binary files /dev/null and b/computer/textures/computer_printer_inv.png differ diff --git a/computer/textures/computer_ps1_inv.png b/computer/textures/computer_ps1_inv.png new file mode 100644 index 0000000..4017872 Binary files /dev/null and b/computer/textures/computer_ps1_inv.png differ diff --git a/computer/textures/computer_ps2_inv.png b/computer/textures/computer_ps2_inv.png new file mode 100644 index 0000000..8f46fb4 Binary files /dev/null and b/computer/textures/computer_ps2_inv.png differ diff --git a/computer/textures/computer_router_inv.png b/computer/textures/computer_router_inv.png new file mode 100644 index 0000000..3f935ee Binary files /dev/null and b/computer/textures/computer_router_inv.png differ diff --git a/computer/textures/computer_specter_inv.png b/computer/textures/computer_specter_inv.png new file mode 100644 index 0000000..d4ac3b0 Binary files /dev/null and b/computer/textures/computer_specter_inv.png differ diff --git a/computer/textures/computer_tower_inv.png b/computer/textures/computer_tower_inv.png new file mode 100644 index 0000000..ab200f2 Binary files /dev/null and b/computer/textures/computer_tower_inv.png differ diff --git a/computer/textures/computer_wii_inv.png b/computer/textures/computer_wii_inv.png new file mode 100644 index 0000000..da7f91b Binary files /dev/null and b/computer/textures/computer_wii_inv.png differ diff --git a/fake_fire/init.lua b/fake_fire/init.lua index c781100..79307fb 100644 --- a/fake_fire/init.lua +++ b/fake_fire/init.lua @@ -108,7 +108,7 @@ minetest.register_node("fake_fire:fancy_fire", { walkable = false, damage_per_second = 4, tiles = { - {name='fire_basic_flame_animated.png', + {name="fake_fire_animated.png", animation={type='vertical_frames', aspect_w=16, aspect_h=16, length=1}}, {name='fake_fire_logs.png'}}, on_rightclick = function (pos, node, clicker) start_smoke(pos, node, clicker)