diff --git a/computer/fusrodah/_.lua b/computer/fusrodah/_.lua deleted file mode 100644 index 974e8176..00000000 --- a/computer/fusrodah/_.lua +++ /dev/null @@ -1,4 +0,0 @@ - -local name = "foo:bar" -local modname = name:gsub(":.*", "") -print(modname) diff --git a/computer/fusrodah/craft-grid.png b/computer/fusrodah/craft-grid.png deleted file mode 100644 index 9624300e..00000000 Binary files a/computer/fusrodah/craft-grid.png and /dev/null differ diff --git a/computer/fusrodah/init.lua.old b/computer/fusrodah/init.lua.old deleted file mode 100644 index 28cfa140..00000000 --- a/computer/fusrodah/init.lua.old +++ /dev/null @@ -1,83 +0,0 @@ - --- Copyright (C) 2012-2013 Diego Martínez --- License is WTFPL (see README.txt). - -local MODNAME = "computer"; - -if (computer ~= nil) then - error("some other mod defined computer"); -end - -computer = { }; - ---[[ computer.pixelnodebox: - | - | Helper to create node boxes. - | - | Parameters: - | size Resolution of the `boxes'. - | boxes The shape of the object. - | - | Return Value: - | The new nodebox, ready to be assigned to `nodedef.node_box'. - ]] -computer.pixelnodebox = function ( size, boxes ) - local fixed = { }; - local i, box; - for i, box in ipairs(boxes) do - local x, y, z, w, h, l = unpack(box); - fixed[#fixed + 1] = { - (x / size) - 0.5, - (y / size) - 0.5, - (z / size) - 0.5, - ((x + w) / size) - 0.5, - ((y + h) / size) - 0.5, - ((z + l) / size) - 0.5, - }; - end - return { - type = "fixed"; - fixed = fixed; - }; -end - ---[[ computer.register: - | - | Helper to register a new computer node. - | - | Parameters: - | name Short ID string used as the object name. - | desc Description of the object for the inventory. - | nodebox The shape of the object. Also used as selection. - | - | Return Value: - | None. - ]] -computer.register = function ( name, desc, nodebox ) - - local TEXPFX = MODNAME.."_"..name.."_"; - - minetest.register_node(MODNAME..":"..name, { - drawtype = "nodebox"; - paramtype = "light"; - paramtype2 = "facedir"; - description = desc; - groups = { snappy=2, choppy=2, oddly_breakable_by_hand=2 }; - tiles = { - TEXPFX.."top.png", - TEXPFX.."bottom.png", - TEXPFX.."right.png", - TEXPFX.."left.png", - TEXPFX.."back.png", - TEXPFX.."front.png" - }; - node_box = nodebox; - selection_box = nodebox; - }); - -end - -local MODPATH = minetest.get_modpath(MODNAME); -dofile(MODPATH.."/nodes.lua"); -dofile(MODPATH.."/miscitems.lua"); -dofile(MODPATH.."/recipes.lua"); diff --git a/computer/fusrodah/nodes.lua b/computer/fusrodah/nodes.lua deleted file mode 100644 index fd046e3b..00000000 --- a/computer/fusrodah/nodes.lua +++ /dev/null @@ -1,99 +0,0 @@ - --- Copyright (C) 2012-2013 Diego Martínez --- License is WTFPL (see README.txt). - --- Just a generic Baby Tower, modeled somewhat after my old Dell cabinet --- (an Intel Celeron @ 233MHz, with 160MB of ram and 4GB of disk; good --- old times). -computer.register("babytower", "Baby Tower", - computer.pixelnodebox(16, { - -- X Y Z W H L - { 1, 5, 6, 14, 11, 6 }, -- Monitor Screen - { 3, 7, 12, 10, 7, 4 }, -- Monitor Tube - { 0, 0, 6, 16, 5, 10 }, -- CPU - { 0, 0, 0, 12, 1, 5 }, -- Keyboard - { 13, 0, 0, 3, 3, 5 }, -- Mouse - }) -); - --- Amiga 500 lookalike --- Fun fact: "Amiga" is spanish for "female friend" ("Amigo" is for male); --- that's why this computer was named "She Friend". -computer.register("shefriendSOO", "SheFriend SOO", - computer.pixelnodebox(32, { - -- X Y Z W H L - { 0, 0, 17, 32, 32, 12 }, -- Monitor Screen - { 3, 3, 29, 26, 26, 3 }, -- Monitor Tube - { 0, 0, 0, 32, 4, 17 }, -- Keyboard - }) -); - --- Sony PlayStation lookalike --- Fun fact: Swapping the first letters gives valid words :) --- Pony SureiSutteshun!!! -computer.register("slaystation", "Pony SlayStation", - computer.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 - }) -); - --- Some generic laptop. Sony VAIO came to mind when thinking about a name :) --- Fun fact: "Vanio" sounds like "baño" ("bathroom" in spanish, pronounced --- as something like "bah-nee-oh") -computer.register("vanio", "Pony Vanio", - computer.pixelnodebox(32, { - -- X Y Z W H L - { 0, 0, 4, 32, 3, 24 }, -- Keyboard - { 0, 3, 25, 32, 21, 3 }, -- Screen - }) -); - --- Sinclair ZX Spectrum lookalike -computer.register("spectre", "SX Spectre", - computer.pixelnodebox(32, { - -- X Y Z W H L - { 3, 0, 0, 26, 4, 17 }, -- Keyboard - { 18, 0, 18, 12, 6, 14 }, -- Tape Player - }) -); - --- Sony PlayStation 2 lookalike -computer.register("slaystation2", "Pony SlayStation 2", - computer.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 - }) -); - --- Commodore 64 lookalike -computer.register("admiral64", "Admiral 64", - computer.pixelnodebox(32, { - -- X Y Z W H L - { 0, 0, 0, 32, 4, 18 }, -- Keyboard - }) -); - --- Commodore 128 lookalike -computer.register("admiral128", "Admiral 128", - computer.pixelnodebox(32, { - -- X Y Z W H L - { 0, 0, 0, 32, 4, 27 }, -- Keyboard - }) -); - --- Old node name -minetest.register_alias("computer:computer", "computer:babytower");