mirror of
https://github.com/mt-mods/homedecor_modpack.git
synced 2024-12-23 08:20:21 +01:00
move all of the gaming-specific items into their own file
This commit is contained in:
parent
3b5b6adfda
commit
0e8a213185
@ -55,41 +55,6 @@ minetest.register_node("computers:vanio_off", {
|
|||||||
end
|
end
|
||||||
})
|
})
|
||||||
|
|
||||||
-- Sony PlayStation lookalike
|
|
||||||
computers.register("computers:slaystation", {
|
|
||||||
description = S("Pony SlayStation"),
|
|
||||||
inventory_image = "computers_ps1_inv.png",
|
|
||||||
tiles_off = { top=true },
|
|
||||||
node_box = computers.pixelnodebox(32, {
|
|
||||||
-- X Y Z W H L
|
|
||||||
{ 0, 0, 11, 32, 6, 21 }, -- Console
|
|
||||||
{ 1, 0, 1, 4, 2, 9 }, -- Controller 1 L Grip
|
|
||||||
{ 10, 0, 1, 4, 2, 9 }, -- Controller 1 R Grip
|
|
||||||
{ 5, 0, 4, 5, 2, 5 }, -- Controller 1 Center
|
|
||||||
{ 18, 0, 1, 4, 2, 9 }, -- Controller 2 L Grip
|
|
||||||
{ 27, 0, 1, 4, 2, 9 }, -- Controller 2 R Grip
|
|
||||||
{ 22, 0, 4, 5, 2, 5 } -- Controller 2 Center
|
|
||||||
})
|
|
||||||
})
|
|
||||||
|
|
||||||
-- Sony PlayStation 2 lookalike
|
|
||||||
computers.register("computers:slaystation2", {
|
|
||||||
description = S("Pony SlayStation 2"),
|
|
||||||
inventory_image = "computers_ps2_inv.png",
|
|
||||||
tiles_off = { front=true },
|
|
||||||
node_box = computers.pixelnodebox(32, {
|
|
||||||
-- X Y Z W H L
|
|
||||||
{ 2, 2, 11, 28, 3, 19 }, -- Console (Upper part)
|
|
||||||
{ 2, 0, 11, 26, 2, 19 }, -- Console (Lower part)
|
|
||||||
{ 1, 0, 1, 4, 2, 9 }, -- Controller 1 L Grip
|
|
||||||
{ 10, 0, 1, 4, 2, 9 }, -- Controller 1 R Grip
|
|
||||||
{ 5, 0, 1, 5, 2, 8 }, -- Controller 1 Center
|
|
||||||
{ 18, 0, 1, 4, 2, 9 }, -- Controller 2 L Grip
|
|
||||||
{ 27, 0, 1, 4, 2, 9 }, -- Controller 2 R Grip
|
|
||||||
{ 22, 0, 1, 5, 2, 8 } -- Controller 2 Center
|
|
||||||
})
|
|
||||||
})
|
|
||||||
|
|
||||||
-- Sinclair ZX Spectrum lookalike
|
-- Sinclair ZX Spectrum lookalike
|
||||||
computers.register("computers:specter", {
|
computers.register("computers:specter", {
|
||||||
description = S("SX Specter"),
|
description = S("SX Specter"),
|
||||||
@ -102,18 +67,6 @@ computers.register("computers:specter", {
|
|||||||
})
|
})
|
||||||
})
|
})
|
||||||
|
|
||||||
-- Nintendo Wii lookalike
|
|
||||||
computers.register("computers:wee", {
|
|
||||||
description = S("Nientiendo Wee"),
|
|
||||||
inventory_image = "computers_wii_inv.png",
|
|
||||||
tiles_off = { front=true },
|
|
||||||
node_box = computers.pixelnodebox(32, {
|
|
||||||
-- X Y Z W H L
|
|
||||||
{ 11, 0, 3, 10, 6, 26 }, -- Base
|
|
||||||
{ 12, 6, 4, 8, 22, 24 } -- Top
|
|
||||||
})
|
|
||||||
})
|
|
||||||
|
|
||||||
-- Apple iPad lookalike
|
-- Apple iPad lookalike
|
||||||
minetest.register_node("computers:piepad", {
|
minetest.register_node("computers:piepad", {
|
||||||
description = S("Snapple Piepad"),
|
description = S("Snapple Piepad"),
|
||||||
@ -152,19 +105,6 @@ computers.register("computers:admiral128", {
|
|||||||
})
|
})
|
||||||
})
|
})
|
||||||
|
|
||||||
-- XBox lookalike
|
|
||||||
computers.register("computers:hueg_box", {
|
|
||||||
description = S("HUEG Box"),
|
|
||||||
tiles_off = { },
|
|
||||||
node_box = computers.pixelnodebox(16, {
|
|
||||||
-- X Y Z W H L
|
|
||||||
{ 0, 0, 7, 16, 6, 9 }, -- Console
|
|
||||||
{ 2, 0, 1, 11, 3, 6 }, -- Controller
|
|
||||||
{ 2, 0, 0, 2, 3, 1 },
|
|
||||||
{ 11, 0, 0, 2, 3, 1 },
|
|
||||||
})
|
|
||||||
})
|
|
||||||
|
|
||||||
-- Generic Flat Screen LCD (16x9) with keyboard
|
-- Generic Flat Screen LCD (16x9) with keyboard
|
||||||
local mo_sbox = {
|
local mo_sbox = {
|
||||||
type = "fixed",
|
type = "fixed",
|
||||||
|
@ -1,5 +1,69 @@
|
|||||||
local S = minetest.get_translator("computers")
|
local S = minetest.get_translator("computers")
|
||||||
|
|
||||||
|
-- Sony PlayStation lookalike
|
||||||
|
computers.register("computers:slaystation", {
|
||||||
|
description = S("Pony SlayStation"),
|
||||||
|
inventory_image = "computers_ps1_inv.png",
|
||||||
|
tiles_off = { top=true },
|
||||||
|
node_box = computers.pixelnodebox(32, {
|
||||||
|
-- X Y Z W H L
|
||||||
|
{ 0, 0, 11, 32, 6, 21 }, -- Console
|
||||||
|
{ 1, 0, 1, 4, 2, 9 }, -- Controller 1 L Grip
|
||||||
|
{ 10, 0, 1, 4, 2, 9 }, -- Controller 1 R Grip
|
||||||
|
{ 5, 0, 4, 5, 2, 5 }, -- Controller 1 Center
|
||||||
|
{ 18, 0, 1, 4, 2, 9 }, -- Controller 2 L Grip
|
||||||
|
{ 27, 0, 1, 4, 2, 9 }, -- Controller 2 R Grip
|
||||||
|
{ 22, 0, 4, 5, 2, 5 } -- Controller 2 Center
|
||||||
|
})
|
||||||
|
})
|
||||||
|
|
||||||
|
-- Sony PlayStation 2 lookalike
|
||||||
|
computers.register("computers:slaystation2", {
|
||||||
|
description = S("Pony SlayStation 2"),
|
||||||
|
inventory_image = "computers_ps2_inv.png",
|
||||||
|
tiles_off = { front=true },
|
||||||
|
node_box = computers.pixelnodebox(32, {
|
||||||
|
-- X Y Z W H L
|
||||||
|
{ 2, 2, 11, 28, 3, 19 }, -- Console (Upper part)
|
||||||
|
{ 2, 0, 11, 26, 2, 19 }, -- Console (Lower part)
|
||||||
|
{ 1, 0, 1, 4, 2, 9 }, -- Controller 1 L Grip
|
||||||
|
{ 10, 0, 1, 4, 2, 9 }, -- Controller 1 R Grip
|
||||||
|
{ 5, 0, 1, 5, 2, 8 }, -- Controller 1 Center
|
||||||
|
{ 18, 0, 1, 4, 2, 9 }, -- Controller 2 L Grip
|
||||||
|
{ 27, 0, 1, 4, 2, 9 }, -- Controller 2 R Grip
|
||||||
|
{ 22, 0, 1, 5, 2, 8 } -- Controller 2 Center
|
||||||
|
})
|
||||||
|
})
|
||||||
|
|
||||||
|
-- Nintendo Wii lookalike
|
||||||
|
computers.register("computers:wee", {
|
||||||
|
description = S("Nientiendo Wee"),
|
||||||
|
inventory_image = "computers_wii_inv.png",
|
||||||
|
tiles_off = { front=true },
|
||||||
|
node_box = computers.pixelnodebox(32, {
|
||||||
|
-- X Y Z W H L
|
||||||
|
{ 11, 0, 3, 10, 6, 26 }, -- Base
|
||||||
|
{ 12, 6, 4, 8, 22, 24 } -- Top
|
||||||
|
})
|
||||||
|
})
|
||||||
|
|
||||||
|
-- XBox lookalike
|
||||||
|
computers.register("computers:hueg_box", {
|
||||||
|
description = S("HUEG Box"),
|
||||||
|
tiles_off = { },
|
||||||
|
node_box = computers.pixelnodebox(16, {
|
||||||
|
-- X Y Z W H L
|
||||||
|
{ 0, 0, 7, 16, 6, 9 }, -- Console
|
||||||
|
{ 2, 0, 1, 11, 3, 6 }, -- Controller
|
||||||
|
{ 2, 0, 0, 2, 3, 1 },
|
||||||
|
{ 11, 0, 0, 2, 3, 1 },
|
||||||
|
})
|
||||||
|
})
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
-- Tetris arcade machine
|
||||||
|
|
||||||
local shapes = {
|
local shapes = {
|
||||||
{ { x = {0, 1, 0, 1}, y = {0, 0, 1, 1} } },
|
{ { x = {0, 1, 0, 1}, y = {0, 0, 1, 1} } },
|
||||||
|
|
@ -95,5 +95,5 @@ local MODPATH = minetest.get_modpath("computers")
|
|||||||
dofile(MODPATH.."/computers.lua")
|
dofile(MODPATH.."/computers.lua")
|
||||||
dofile(MODPATH.."/printers.lua")
|
dofile(MODPATH.."/printers.lua")
|
||||||
dofile(MODPATH.."/recipes.lua")
|
dofile(MODPATH.."/recipes.lua")
|
||||||
dofile(MODPATH.."/tetris.lua")
|
dofile(MODPATH.."/gaming.lua")
|
||||||
dofile(MODPATH.."/aliases.lua")
|
dofile(MODPATH.."/aliases.lua")
|
||||||
|
Loading…
Reference in New Issue
Block a user