Better inv. images for computer items
@ -15,6 +15,7 @@ minetest.register_node("computer:vanio", {
|
|||||||
drawtype = "mesh",
|
drawtype = "mesh",
|
||||||
mesh = "computer_laptop.obj",
|
mesh = "computer_laptop.obj",
|
||||||
description = "Pony Vanio",
|
description = "Pony Vanio",
|
||||||
|
inventory_image = "computer_laptop_inv.png",
|
||||||
tiles = {"computer_laptop.png"},
|
tiles = {"computer_laptop.png"},
|
||||||
paramtype = "light",
|
paramtype = "light",
|
||||||
paramtype2 = "facedir",
|
paramtype2 = "facedir",
|
||||||
@ -53,6 +54,7 @@ minetest.register_node("computer:vanio_off", {
|
|||||||
-- Sony PlayStation lookalike
|
-- Sony PlayStation lookalike
|
||||||
computer.register("computer:slaystation", {
|
computer.register("computer:slaystation", {
|
||||||
description = "Pony SlayStation",
|
description = "Pony SlayStation",
|
||||||
|
inventory_image = "computer_ps1_inv.png",
|
||||||
tiles_off = { top=true },
|
tiles_off = { top=true },
|
||||||
node_box = computer.pixelnodebox(32, {
|
node_box = computer.pixelnodebox(32, {
|
||||||
-- X Y Z W H L
|
-- X Y Z W H L
|
||||||
@ -69,6 +71,7 @@ computer.register("computer:slaystation", {
|
|||||||
-- Sony PlayStation 2 lookalike
|
-- Sony PlayStation 2 lookalike
|
||||||
computer.register("computer:slaystation2", {
|
computer.register("computer:slaystation2", {
|
||||||
description = "Pony SlayStation 2",
|
description = "Pony SlayStation 2",
|
||||||
|
inventory_image = "computer_ps2_inv.png",
|
||||||
tiles_off = { front=true },
|
tiles_off = { front=true },
|
||||||
node_box = computer.pixelnodebox(32, {
|
node_box = computer.pixelnodebox(32, {
|
||||||
-- X Y Z W H L
|
-- X Y Z W H L
|
||||||
@ -86,6 +89,7 @@ computer.register("computer:slaystation2", {
|
|||||||
-- Sinclair ZX Spectrum lookalike
|
-- Sinclair ZX Spectrum lookalike
|
||||||
computer.register("computer:specter", {
|
computer.register("computer:specter", {
|
||||||
description = "SX Specter",
|
description = "SX Specter",
|
||||||
|
inventory_image = "computer_specter_inv.png",
|
||||||
tiles_off = { },
|
tiles_off = { },
|
||||||
node_box = computer.pixelnodebox(32, {
|
node_box = computer.pixelnodebox(32, {
|
||||||
-- X Y Z W H L
|
-- X Y Z W H L
|
||||||
@ -97,6 +101,7 @@ computer.register("computer:specter", {
|
|||||||
-- Nintendo Wii lookalike
|
-- Nintendo Wii lookalike
|
||||||
computer.register("computer:wee", {
|
computer.register("computer:wee", {
|
||||||
description = "Nientiendo Wee",
|
description = "Nientiendo Wee",
|
||||||
|
inventory_image = "computer_wii_inv.png",
|
||||||
tiles_off = { front=true },
|
tiles_off = { front=true },
|
||||||
node_box = computer.pixelnodebox(32, {
|
node_box = computer.pixelnodebox(32, {
|
||||||
-- X Y Z W H L
|
-- X Y Z W H L
|
||||||
@ -124,6 +129,7 @@ minetest.register_node("computer:piepad", {
|
|||||||
-- Commodore 64 lookalike
|
-- Commodore 64 lookalike
|
||||||
computer.register("computer:admiral64", {
|
computer.register("computer:admiral64", {
|
||||||
description = "Admiral64",
|
description = "Admiral64",
|
||||||
|
inventory_image = "computer_ad64_inv.png",
|
||||||
tiles_off = { },
|
tiles_off = { },
|
||||||
node_box = computer.pixelnodebox(32, {
|
node_box = computer.pixelnodebox(32, {
|
||||||
-- X Y Z W H L
|
-- X Y Z W H L
|
||||||
@ -134,6 +140,7 @@ computer.register("computer:admiral64", {
|
|||||||
-- Commodore 128 lookalike
|
-- Commodore 128 lookalike
|
||||||
computer.register("computer:admiral128", {
|
computer.register("computer:admiral128", {
|
||||||
description = "Admiral128",
|
description = "Admiral128",
|
||||||
|
inventory_image = "computer_ad128_inv.png",
|
||||||
tiles_off = { },
|
tiles_off = { },
|
||||||
node_box = computer.pixelnodebox(32, {
|
node_box = computer.pixelnodebox(32, {
|
||||||
-- X Y Z W H L
|
-- X Y Z W H L
|
||||||
@ -149,6 +156,7 @@ local mo_sbox = {
|
|||||||
|
|
||||||
minetest.register_node("computer:monitor", {
|
minetest.register_node("computer:monitor", {
|
||||||
description = "Monitor and keyboard",
|
description = "Monitor and keyboard",
|
||||||
|
inventory_image = "computer_monitor_inv.png",
|
||||||
drawtype = "mesh",
|
drawtype = "mesh",
|
||||||
mesh = "computer_monitor.obj",
|
mesh = "computer_monitor.obj",
|
||||||
tiles = {"computer_black.png", "monitor_plastic.png", "computer_black.png", "monitor_plastic.png"},
|
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)
|
--WIFI Router (linksys look-a-like)
|
||||||
minetest.register_node("computer:router", {
|
minetest.register_node("computer:router", {
|
||||||
description = "WIFI 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",
|
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"},
|
{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",
|
paramtype = "light",
|
||||||
@ -216,6 +225,7 @@ local pct_cbox = {
|
|||||||
--Modern PC Tower
|
--Modern PC Tower
|
||||||
minetest.register_node("computer:tower", {
|
minetest.register_node("computer:tower", {
|
||||||
description = "Computer Tower",
|
description = "Computer Tower",
|
||||||
|
inventory_image = "computer_tower_inv.png",
|
||||||
drawtype = "mesh",
|
drawtype = "mesh",
|
||||||
mesh = "computer_tower.obj",
|
mesh = "computer_tower.obj",
|
||||||
tiles = {"computer_tower.png"},
|
tiles = {"computer_tower.png"},
|
||||||
@ -232,6 +242,7 @@ minetest.register_alias("computer:tower_on", "computer:tower")
|
|||||||
-- Printer/scaner combo
|
-- Printer/scaner combo
|
||||||
minetest.register_node("computer:printer", {
|
minetest.register_node("computer:printer", {
|
||||||
description = "Printer Scaner Combo",
|
description = "Printer Scaner Combo",
|
||||||
|
inventory_image = "computer_printer_inv.png",
|
||||||
tiles = {"computer_printer_t.png","computer_printer_bt.png","computer_printer_l.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"},
|
"computer_printer_r.png","computer_printer_b.png","computer_printer_f.png"},
|
||||||
paramtype = "light",
|
paramtype = "light",
|
||||||
|
@ -13,6 +13,7 @@ computer.register = function (name, def)
|
|||||||
paramtype = "light",
|
paramtype = "light",
|
||||||
paramtype2 = "facedir",
|
paramtype2 = "facedir",
|
||||||
description = def.description,
|
description = def.description,
|
||||||
|
inventory_image = def.inventory_image,
|
||||||
groups = {snappy=2, choppy=2, oddly_breakable_by_hand=2},
|
groups = {snappy=2, choppy=2, oddly_breakable_by_hand=2},
|
||||||
tiles = {
|
tiles = {
|
||||||
TEXPFX.."tp.png",
|
TEXPFX.."tp.png",
|
||||||
|
@ -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" }
|
"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 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[3.6,4.5;0.6,0.6;rotateleft;L]"
|
||||||
.."button[4.2,4.5;0.6,0.6;down;V]"
|
.."button[4.2,4.5;0.6,0.6;down;v]"
|
||||||
.."button[4.2,5.3;0.6,0.6;drop;▼]"
|
.."button[4.2,5.3;0.6,0.6;drop;V]"
|
||||||
.."button[4.8,4.5;0.6,0.6;rotateright;R]"
|
.."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]"
|
.."button[3.5,3;2,2;new;New Game]"
|
||||||
|
|
||||||
local formsize = "size[5.9,5.7]"
|
local formsize = "size[5.9,5.7]"
|
||||||
@ -240,7 +240,7 @@ local function step(pos, fields)
|
|||||||
return run
|
return run
|
||||||
end
|
end
|
||||||
|
|
||||||
local arcade = {
|
minetest.register_node("computer:tetris_arcade", {
|
||||||
description="Tetris Arcade",
|
description="Tetris Arcade",
|
||||||
drawtype = "mesh",
|
drawtype = "mesh",
|
||||||
mesh = "tetris_arcade.obj",
|
mesh = "tetris_arcade.obj",
|
||||||
@ -276,7 +276,6 @@ local arcade = {
|
|||||||
local node = {name="computer:tetris_arcade", param1=0, param2 = minetest.dir_to_facedir(dir)}
|
local node = {name="computer:tetris_arcade", param1=0, param2 = minetest.dir_to_facedir(dir)}
|
||||||
minetest.set_node(pos, node)
|
minetest.set_node(pos, node)
|
||||||
itemstack:take_item()
|
itemstack:take_item()
|
||||||
|
return itemstack
|
||||||
end
|
end
|
||||||
}
|
})
|
||||||
|
|
||||||
minetest.register_node("computer:tetris_arcade", arcade)
|
|
||||||
|
BIN
computer/textures/computer_ad128_inv.png
Normal file
After Width: | Height: | Size: 2.3 KiB |
BIN
computer/textures/computer_ad64_inv.png
Normal file
After Width: | Height: | Size: 2.2 KiB |
BIN
computer/textures/computer_laptop_inv.png
Normal file
After Width: | Height: | Size: 2.7 KiB |
BIN
computer/textures/computer_monitor_inv.png
Normal file
After Width: | Height: | Size: 2.7 KiB |
BIN
computer/textures/computer_printer_inv.png
Normal file
After Width: | Height: | Size: 2.4 KiB |
BIN
computer/textures/computer_ps1_inv.png
Normal file
After Width: | Height: | Size: 2.3 KiB |
BIN
computer/textures/computer_ps2_inv.png
Normal file
After Width: | Height: | Size: 2.3 KiB |
BIN
computer/textures/computer_router_inv.png
Normal file
After Width: | Height: | Size: 1.9 KiB |
BIN
computer/textures/computer_specter_inv.png
Normal file
After Width: | Height: | Size: 2.3 KiB |
BIN
computer/textures/computer_tower_inv.png
Normal file
After Width: | Height: | Size: 1.7 KiB |
BIN
computer/textures/computer_wii_inv.png
Normal file
After Width: | Height: | Size: 2.1 KiB |
@ -108,7 +108,7 @@ minetest.register_node("fake_fire:fancy_fire", {
|
|||||||
walkable = false,
|
walkable = false,
|
||||||
damage_per_second = 4,
|
damage_per_second = 4,
|
||||||
tiles = {
|
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'}},
|
animation={type='vertical_frames', aspect_w=16, aspect_h=16, length=1}}, {name='fake_fire_logs.png'}},
|
||||||
on_rightclick = function (pos, node, clicker)
|
on_rightclick = function (pos, node, clicker)
|
||||||
start_smoke(pos, node, clicker)
|
start_smoke(pos, node, clicker)
|
||||||
|