rename computer mod to "computers"

and fix all the image and model filenames that didn't conform before.
aliases are provided for the old nodes
This commit is contained in:
Vanessa Dannenberg 2021-03-02 03:03:12 -05:00
parent 90da464add
commit 9cc6f90778
140 changed files with 175 additions and 147 deletions

View File

@ -17,21 +17,29 @@ For now just use creative mode or the `/give' or `/giveme' chat commands
These are the items currently defined by this mod:
computer:printer (printer scanner combo)
computer:server (rack server)
computer:tower (modern type)
computer:monitor (LCD with keyboard)
computer:router (wifi type)
computer:babytower
computer:shefriendSOO
computer:slaystation
computer:vanio
computer:spectre
computer:slaystation2
computer:admiral64
computer:admiral128
"computers:shefriendSOO",
"computers:vanio",
"computers:vanio_off",
"computers:slaystation",
"computers:slaystation2",
"computers:specter",
"computers:wee",
"computers:piepad",
"computers:admiral64",
"computers:admiral128",
"computers:hueg_box",
"computers:monitor",
"computers:monitor_on",
"computers:router",
"computers:tower",
"computers:server",
"computers:server_on",
"computers:printer",
"computers:3dprinter_bedflinger",
"computers:3dprinter_corexy",
"computers:tetris_arcade",
There's also a `computer:computer' alias to `computer:babytower'.
There's also a `computers:computer' alias to `computers:babytower'.
Thanks to all the people in the forums and the #minetest IRC channel for
their support and suggestions; in no particular order:

26
computers/aliases.lua Normal file
View File

@ -0,0 +1,26 @@
minetest.register_alias("computer:shefriendSOO", "computers:shefriendSOO")
minetest.register_alias("computer:vanio", "computers:vanio")
minetest.register_alias("computer:vanio_off", "computers:vanio_off")
minetest.register_alias("computer:slaystation", "computers:slaystation")
minetest.register_alias("computer:slaystation2", "computers:slaystation2")
minetest.register_alias("computer:specter", "computers:specter")
minetest.register_alias("computer:wee", "computers:wee")
minetest.register_alias("computer:piepad", "computers:piepad")
minetest.register_alias("computer:admiral64", "computers:admiral64")
minetest.register_alias("computer:admiral128", "computers:admiral128")
minetest.register_alias("computer:hueg_box", "computers:hueg_box")
minetest.register_alias("computer:monitor", "computers:monitor")
minetest.register_alias("computer:monitor_on", "computers:monitor_on")
minetest.register_alias("computer:monitor_bios", "computers:monitor")
minetest.register_alias("computer:monitor_loading", "computers:monitor")
minetest.register_alias("computer:monitor_login", "computers:monitor")
minetest.register_alias("computer:monitor_desktop", "computers:monitor")
minetest.register_alias("computer:router", "computers:router")
minetest.register_alias("computer:tower", "computers:tower")
minetest.register_alias("computer:tower_on", "computers:tower")
minetest.register_alias("computer:server", "computers:server")
minetest.register_alias("computer:server_on", "computers:server_on")
minetest.register_alias("computer:printer", "computers:printer")
minetest.register_alias("computer:3dprinter_bedflinger", "computers:3dprinter_bedflinger")
minetest.register_alias("computer:3dprinter_corexy", "computers:3dprinter_corexy")
minetest.register_alias("computer:tetris_arcade", "computers:tetris_arcade")

View File

@ -1,10 +1,10 @@
local S = minetest.get_translator("computer")
local S = minetest.get_translator("computers")
-- Amiga 500 lookalike
computer.register("computer:shefriendSOO", {
computers.register("computers:shefriendSOO", {
description = S("SheFriendSOO"),
tiles_off = { front=true },
node_box = computer.pixelnodebox(32, {
node_box = computers.pixelnodebox(32, {
-- X Y Z W H L
{ 0, 0, 17, 32, 32, 12 }, -- Monitor Screen
{ 3, 3, 29, 26, 26, 3 }, -- Monitor Tube
@ -13,12 +13,12 @@ computer.register("computer:shefriendSOO", {
})
-- Some generic laptop
minetest.register_node("computer:vanio", {
minetest.register_node("computers:vanio", {
drawtype = "mesh",
mesh = "computer_laptop.obj",
mesh = "computers_laptop.obj",
description = S("Pony Vanio"),
inventory_image = "computer_laptop_inv.png",
tiles = {"computer_laptop.png"},
inventory_image = "computers_laptop_inv.png",
tiles = {"computers_laptop.png"},
paramtype = "light",
paramtype2 = "facedir",
light_source = 4,
@ -29,16 +29,16 @@ minetest.register_node("computer:vanio", {
fixed = {-0.35, -0.5, -0.35, 0.35, 0.05, 0.35},
},
on_rightclick = function(pos, node, clicker, itemstack)
node.name = "computer:vanio_off"
node.name = "computers:vanio_off"
minetest.set_node(pos, node)
return itemstack
end
})
minetest.register_node("computer:vanio_off", {
minetest.register_node("computers:vanio_off", {
drawtype = "mesh",
mesh = "computer_laptop_closed.obj",
tiles = {"computer_laptop.png"},
mesh = "computers_laptop_closed.obj",
tiles = {"computers_laptop.png"},
paramtype = "light",
paramtype2 = "facedir",
groups = {snappy=3, not_in_creative_inventory=1},
@ -47,20 +47,20 @@ minetest.register_node("computer:vanio_off", {
type = "fixed",
fixed = {-0.35, -0.5, -0.35, 0.35, -0.4, 0.25},
},
drop = "computer:vanio",
drop = "computers:vanio",
on_rightclick = function(pos, node, clicker, itemstack)
node.name = "computer:vanio"
node.name = "computers:vanio"
minetest.set_node(pos, node)
return itemstack
end
})
-- Sony PlayStation lookalike
computer.register("computer:slaystation", {
computers.register("computers:slaystation", {
description = S("Pony SlayStation"),
inventory_image = "computer_ps1_inv.png",
inventory_image = "computers_ps1_inv.png",
tiles_off = { top=true },
node_box = computer.pixelnodebox(32, {
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
@ -73,11 +73,11 @@ computer.register("computer:slaystation", {
})
-- Sony PlayStation 2 lookalike
computer.register("computer:slaystation2", {
computers.register("computers:slaystation2", {
description = S("Pony SlayStation 2"),
inventory_image = "computer_ps2_inv.png",
inventory_image = "computers_ps2_inv.png",
tiles_off = { front=true },
node_box = computer.pixelnodebox(32, {
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)
@ -91,11 +91,11 @@ computer.register("computer:slaystation2", {
})
-- Sinclair ZX Spectrum lookalike
computer.register("computer:specter", {
computers.register("computers:specter", {
description = S("SX Specter"),
inventory_image = "computer_specter_inv.png",
inventory_image = "computers_specter_inv.png",
tiles_off = { },
node_box = computer.pixelnodebox(32, {
node_box = computers.pixelnodebox(32, {
-- X Y Z W H L
{ 3, 0, 0, 26, 4, 17 }, -- Keyboard
{ 18, 0, 18, 12, 6, 14 } -- Tape Player
@ -103,11 +103,11 @@ computer.register("computer:specter", {
})
-- Nintendo Wii lookalike
computer.register("computer:wee", {
computers.register("computers:wee", {
description = S("Nientiendo Wee"),
inventory_image = "computer_wii_inv.png",
inventory_image = "computers_wii_inv.png",
tiles_off = { front=true },
node_box = computer.pixelnodebox(32, {
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
@ -115,12 +115,12 @@ computer.register("computer:wee", {
})
-- Apple iPad lookalike
minetest.register_node("computer:piepad", {
minetest.register_node("computers:piepad", {
description = S("Snapple Piepad"),
drawtype = "signlike",
tiles = {"computer_piepad_inv.png"},
inventory_image = "computer_piepad_inv.png",
wield_image = "computer_piepad_inv.png",
tiles = {"computers_piepad_inv.png"},
inventory_image = "computers_piepad_inv.png",
wield_image = "computers_piepad_inv.png",
paramtype = "light",
paramtype2 = "wallmounted",
light_source = 8,
@ -131,32 +131,32 @@ minetest.register_node("computer:piepad", {
})
-- Commodore 64 lookalike
computer.register("computer:admiral64", {
computers.register("computers:admiral64", {
description = S("Admiral64"),
inventory_image = "computer_ad64_inv.png",
inventory_image = "computers_ad64_inv.png",
tiles_off = { },
node_box = computer.pixelnodebox(32, {
node_box = computers.pixelnodebox(32, {
-- X Y Z W H L
{ 0, 0, 0, 32, 4, 18 } -- Keyboard
})
})
-- Commodore 128 lookalike
computer.register("computer:admiral128", {
computers.register("computers:admiral128", {
description = S("Admiral128"),
inventory_image = "computer_ad128_inv.png",
inventory_image = "computers_ad128_inv.png",
tiles_off = { },
node_box = computer.pixelnodebox(32, {
node_box = computers.pixelnodebox(32, {
-- X Y Z W H L
{ 0, 0, 0, 32, 4, 27 } -- Keyboard
})
})
-- XBox lookalike
computer.register("computer:hueg_box", {
computers.register("computers:hueg_box", {
description = S("HUEG Box"),
tiles_off = { },
node_box = computer.pixelnodebox(16, {
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
@ -171,62 +171,57 @@ local mo_sbox = {
fixed = { -0.5, -0.5, -0.43, 0.5, 0.2, 0.25 }
}
minetest.register_node("computer:monitor", {
minetest.register_node("computers:monitor", {
description = S("Monitor and keyboard"),
inventory_image = "computer_monitor_inv.png",
inventory_image = "computers_monitor_inv.png",
drawtype = "mesh",
mesh = "computer_monitor.obj",
tiles = {"computer_black.png", "monitor_plastic.png", "computer_black.png", "monitor_plastic.png"},
mesh = "computers_monitor.obj",
tiles = {"computers_black.png", "computers_monitor_plastic.png", "computers_black.png", "computers_monitor_plastic.png"},
paramtype = "light",
paramtype2 = "facedir",
walkable = false,
groups = {snappy=3},
selection_box = mo_sbox,
on_rightclick = function(pos, node, clicker, itemstack)
node.name = "computer:monitor_on"
node.name = "computers:monitor_on"
minetest.set_node(pos, node)
return itemstack
end
})
minetest.register_node("computer:monitor_on", {
minetest.register_node("computers:monitor_on", {
drawtype = "mesh",
mesh = "computer_monitor.obj",
tiles = {"monitor_display.png^[transformFX", "monitor_plastic.png", "computer_black.png", "monitor_plastic.png"},
mesh = "computers_monitor.obj",
tiles = {"computers_monitor_display.png^[transformFX", "computers_monitor_plastic.png", "computers_black.png", "computers_monitor_plastic.png"},
paramtype = "light",
paramtype2 = "facedir",
light_source = 9,
walkable = false,
groups = {snappy=3, not_in_creative_inventory=1},
selection_box = mo_sbox,
drop = "computer:monitor",
drop = "computers:monitor",
on_rightclick = function(pos, node, clicker, itemstack)
node.name = "computer:monitor"
node.name = "computers:monitor"
minetest.set_node(pos, node)
return itemstack
end
})
minetest.register_alias("computer:monitor_bios", "computer:monitor")
minetest.register_alias("computer:monitor_loading", "computer:monitor")
minetest.register_alias("computer:monitor_login", "computer:monitor")
minetest.register_alias("computer:monitor_desktop", "computer:monitor")
--WIFI Router (linksys look-a-like)
minetest.register_node("computer:router", {
minetest.register_node("computers:router", {
description = S("WIFI Router"),
inventory_image = "computer_router_inv.png",
inventory_image = "computers_router_inv.png",
tiles = {
"computer_router_t.png",
"computer_router_bt.png",
"computer_router_l.png",
"computer_router_r.png",
"computer_router_b.png",
"computers_router_t.png",
"computers_router_bt.png",
"computers_router_l.png",
"computers_router_r.png",
"computers_router_b.png",
{
name = "computer_router_f_animated.png",
name = "computers_router_f_animated.png",
animation = {type="vertical_frames", aspect_w=32, aspect_h=32, length=1.0}
},
}, --"computer_router_f.png"},
}, --"computers_router_f.png"},
paramtype = "light",
paramtype2 = "facedir",
walkable = false,
@ -250,12 +245,12 @@ local pct_cbox = {
}
--Modern PC Tower
minetest.register_node("computer:tower", {
minetest.register_node("computers:tower", {
description = S("Computer Tower"),
inventory_image = "computer_tower_inv.png",
inventory_image = "computers_tower_inv.png",
drawtype = "mesh",
mesh = "computer_tower.obj",
tiles = {"computer_tower.png"},
mesh = "computers_tower.obj",
tiles = {"computers_tower.png"},
paramtype = "light",
paramtype2 = "facedir",
groups = {snappy=3},
@ -264,21 +259,19 @@ minetest.register_node("computer:tower", {
collision_box = pct_cbox
})
minetest.register_alias("computer:tower_on", "computer:tower")
--Rack Server
minetest.register_node("computer:server", {
minetest.register_node("computers:server", {
drawtype = "nodebox",
description = S("Rack Server"),
tiles = {
'computer_server_t.png',
'computer_server_bt.png',
'computer_server_l.png',
'computer_server_r.png',
'computer_server_bt.png',
'computer_server_f_off.png'
'computers_server_t.png',
'computers_server_bt.png',
'computers_server_l.png',
'computers_server_r.png',
'computers_server_bt.png',
'computers_server_f_off.png'
},
inventory_image = "computer_server_inv.png",
inventory_image = "computers_server_inv.png",
paramtype = "light",
paramtype2 = "facedir",
groups = {snappy=3},
@ -292,7 +285,7 @@ minetest.register_node("computer:server", {
},
sounds = default.node_sound_wood_defaults(),
on_rightclick = function(pos, node, clicker, itemstack)
node.name = "computer:server_on"
node.name = "computers:server_on"
minetest.set_node(pos, node)
return itemstack
end,
@ -307,17 +300,17 @@ minetest.register_node("computer:server", {
end
})
minetest.register_node("computer:server_on", {
minetest.register_node("computers:server_on", {
drawtype = "nodebox",
tiles = {
'computer_server_t.png',
'computer_server_bt.png',
'computer_server_l.png',
'computer_server_r.png',
'computer_server_bt.png',
'computer_server_f_on.png',
'computers_server_t.png',
'computers_server_bt.png',
'computers_server_l.png',
'computers_server_r.png',
'computers_server_bt.png',
'computers_server_f_on.png',
},
inventory_image = "computer_server_inv.png",
inventory_image = "computers_server_inv.png",
paramtype = "light",
paramtype2 = "facedir",
groups = {snappy=3,not_in_creative_inventory=1},
@ -330,9 +323,9 @@ minetest.register_node("computer:server_on", {
fixed = {-0.5, -0.5, -0.25, 0.5, 1.125, 0.4375}
},
sounds = default.node_sound_wood_defaults(),
drop = 'computer:server',
drop = 'computers:server',
on_rightclick = function(pos, node, clicker, itemstack)
node.name = "computer:server"
node.name = "computers:server"
minetest.set_node(pos, node)
return itemstack
end

View File

@ -1,6 +1,6 @@
computer = {}
computers = {}
computer.register = function (name, def)
computers.register = function (name, def)
if (name:sub(1, 1) == ":") then name = name:sub(2) end
local modname, basename = name:match("^([^:]+):(.*)")
local TEXPFX = modname.."_"..basename.."_"
@ -60,7 +60,7 @@ computer.register = function (name, def)
})
end
computer.register_handheld = function (name, def)
computers.register_handheld = function (name, def)
if (name:sub(1, 1) == ":") then name = name:sub(2) end
local modname, basename = name:match("^([^:]+):(.*)")
local TEXPFX = modname.."_"..basename.."_inv"
@ -72,7 +72,7 @@ computer.register_handheld = function (name, def)
})
end
computer.pixelnodebox = function (size, boxes)
computers.pixelnodebox = function (size, boxes)
local fixed = { }
for _, box in ipairs(boxes) do
local x, y, z, w, h, l = unpack(box)
@ -91,8 +91,9 @@ computer.pixelnodebox = function (size, boxes)
}
end
local MODPATH = minetest.get_modpath("computer")
local MODPATH = minetest.get_modpath("computers")
dofile(MODPATH.."/computers.lua")
dofile(MODPATH.."/printers.lua")
dofile(MODPATH.."/recipes.lua")
dofile(MODPATH.."/tetris.lua")
dofile(MODPATH.."/aliases.lua")

View File

@ -1,3 +1,3 @@
name = computer
name = computers
depends = default, basic_materials, unifieddyes
optional_depends = screwdriver

View File

@ -1,12 +1,12 @@
-- Printers of some kind or another
local S = minetest.get_translator("computer")
local S = minetest.get_translator("computers")
minetest.register_node("computer:printer", {
minetest.register_node("computers:printer", {
description = S("Printer-Scanner 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"},
inventory_image = "computers_printer_inv.png",
tiles = {"computers_printer_t.png","computers_printer_bt.png","computers_printer_l.png",
"computers_printer_r.png","computers_printer_b.png","computers_printer_f.png"},
paramtype = "light",
paramtype2 = "facedir",
walkable = true,
@ -35,19 +35,19 @@ local cbox = {
fixed = {-0.25, -0.25, -0.5, 0.3, 0.3, 0.25 }
}
minetest.register_node("computer:3dprinter_bedflinger", {
minetest.register_node("computers:3dprinter_bedflinger", {
description = S('3D Printer ("bedflinger" design)'),
inventory_image = "computer_3dprinter_bedflinger_inv.png",
inventory_image = "computers_3dprinter_bedflinger_inv.png",
tiles = {
{ name = "computer_3dprinter.png", color = 0xffffffff },
"computer_3dprinter_filament.png"
{ name = "computers_3dprinter.png", color = 0xffffffff },
"computers_3dprinter_filament.png"
},
paramtype = "light",
walkable = true,
groups = {snappy=3, ud_param2_colorable = 1},
sound = default.node_sound_wood_defaults(),
drawtype = "mesh",
mesh = "computer_3dprinter_bedflinger.obj",
mesh = "computers_3dprinter_bedflinger.obj",
paramtype2 = "colorwallmounted",
palette = "unifieddyes_palette_colorwallmounted.png",
selection_box = cbox,
@ -66,18 +66,18 @@ cbox = {
fixed = {-0.4375, -0.5, -0.5, 0.4375, 0.5, 0.375 }
}
minetest.register_node("computer:3dprinter_corexy", {
minetest.register_node("computers:3dprinter_corexy", {
description = S('3D Printer (CoreXY design)'),
tiles = {
{ name = "computer_3dprinter.png", color = 0xffffffff },
"computer_3dprinter_filament.png"
{ name = "computers_3dprinter.png", color = 0xffffffff },
"computers_3dprinter_filament.png"
},
paramtype = "light",
walkable = true,
groups = {snappy=3, ud_param2_colorable = 1},
sound = default.node_sound_wood_defaults(),
drawtype = "mesh",
mesh = "computer_3dprinter_corexy.obj",
mesh = "computers_3dprinter_corexy.obj",
paramtype2 = "colorwallmounted",
palette = "unifieddyes_palette_colorwallmounted.png",
selection_box = cbox,

View File

@ -1,7 +1,7 @@
-- Copyright (C) 2012-2013 Diego Martínez <kaeza@users.sf.net>
minetest.register_craft({
output = "computer:shefriendSOO",
output = "computers:shefriendSOO",
recipe = {
{ "basic_materials:plastic_sheet", "basic_materials:plastic_sheet", "basic_materials:plastic_sheet" },
{ "basic_materials:plastic_sheet", "default:glass", "basic_materials:plastic_sheet" },
@ -10,7 +10,7 @@ minetest.register_craft({
})
minetest.register_craft({
output = "computer:slaystation",
output = "computers:slaystation",
recipe = {
{ "basic_materials:plastic_sheet", "basic_materials:plastic_sheet", "basic_materials:plastic_sheet" },
{ "basic_materials:plastic_sheet", "group:wood", "basic_materials:plastic_sheet" }
@ -18,7 +18,7 @@ minetest.register_craft({
})
minetest.register_craft({
output = "computer:vanio",
output = "computers:vanio",
recipe = {
{ "basic_materials:plastic_sheet", "", "" },
{ "default:glass", "", "" },
@ -27,7 +27,7 @@ minetest.register_craft({
})
minetest.register_craft({
output = "computer:specter",
output = "computers:specter",
recipe = {
{ "", "", "basic_materials:plastic_sheet" },
{ "basic_materials:plastic_sheet", "basic_materials:plastic_sheet", "basic_materials:plastic_sheet" },
@ -36,7 +36,7 @@ minetest.register_craft({
})
minetest.register_craft({
output = "computer:slaystation2",
output = "computers:slaystation2",
recipe = {
{ "basic_materials:plastic_sheet", "basic_materials:plastic_sheet", "basic_materials:plastic_sheet" },
{ "basic_materials:plastic_sheet", "default:steel_ingot", "basic_materials:plastic_sheet" }
@ -44,7 +44,7 @@ minetest.register_craft({
})
minetest.register_craft({
output = "computer:admiral64",
output = "computers:admiral64",
recipe = {
{ "basic_materials:plastic_sheet", "basic_materials:plastic_sheet", "basic_materials:plastic_sheet" },
{ "group:wood", "group:wood", "group:wood" }
@ -52,7 +52,7 @@ minetest.register_craft({
})
minetest.register_craft({
output = "computer:admiral128",
output = "computers:admiral128",
recipe = {
{ "basic_materials:plastic_sheet", "basic_materials:plastic_sheet", "basic_materials:plastic_sheet" },
{ "default:steel_ingot", "default:steel_ingot", "default:steel_ingot" }
@ -60,7 +60,7 @@ minetest.register_craft({
})
minetest.register_craft({
output = "computer:wee",
output = "computers:wee",
recipe = {
{ "basic_materials:plastic_sheet", "basic_materials:plastic_sheet", "basic_materials:plastic_sheet" },
{ "basic_materials:plastic_sheet", "default:copper_ingot", "basic_materials:plastic_sheet" }
@ -68,7 +68,7 @@ minetest.register_craft({
})
minetest.register_craft({
output = "computer:piepad",
output = "computers:piepad",
recipe = {
{ "basic_materials:plastic_sheet", "basic_materials:plastic_sheet", "basic_materials:plastic_sheet" },
{ "basic_materials:plastic_sheet", "default:glass", "basic_materials:plastic_sheet" }
@ -78,7 +78,7 @@ minetest.register_craft({
--new stuff
minetest.register_craft({
output = "computer:monitor",
output = "computers:monitor",
recipe = {
{ "basic_materials:plastic_sheet", "default:glass","" },
{ "basic_materials:plastic_sheet", "default:glass","" },
@ -87,7 +87,7 @@ minetest.register_craft({
})
minetest.register_craft({
output = "computer:router",
output = "computers:router",
recipe = {
{ "default:steel_ingot","","" },
{ "default:steel_ingot" ,"basic_materials:plastic_sheet", "basic_materials:plastic_sheet" },
@ -96,7 +96,7 @@ minetest.register_craft({
})
minetest.register_craft({
output = "computer:tower",
output = "computers:tower",
recipe = {
{ "basic_materials:plastic_sheet", "default:steel_ingot", "basic_materials:plastic_sheet" },
{ "basic_materials:plastic_sheet", "default:mese_crystal", "basic_materials:plastic_sheet" },
@ -105,7 +105,7 @@ minetest.register_craft({
})
minetest.register_craft({
output = "computer:printer",
output = "computers:printer",
recipe = {
{ "basic_materials:plastic_sheet", "default:steel_ingot","" },
{ "basic_materials:plastic_sheet", "default:mese_crystal", "basic_materials:plastic_sheet" },
@ -114,7 +114,7 @@ minetest.register_craft({
})
minetest.register_craft({
output = "computer:printer",
output = "computers:printer",
recipe = {
{ "basic_materials:plastic_sheet", "default:steel_ingot","" },
{ "basic_materials:plastic_sheet", "default:mese_crystal", "basic_materials:plastic_sheet" },
@ -123,16 +123,16 @@ minetest.register_craft({
})
minetest.register_craft({
output = "computer:server",
output = "computers:server",
recipe = {
{ "computer:tower", "computer:tower", "computer:tower", },
{ "computer:tower", "computer:tower", "computer:tower" },
{ "computer:tower", "computer:tower", "computer:tower" }
{ "computers:tower", "computers:tower", "computers:tower", },
{ "computers:tower", "computers:tower", "computers:tower" },
{ "computers:tower", "computers:tower", "computers:tower" }
}
})
minetest.register_craft({
output = "computer:tetris_arcade",
output = "computers:tetris_arcade",
recipe = {
{ "basic_materials:plastic_sheet", "basic_materials:energy_crystal_simple", "basic_materials:plastic_sheet", },
{ "dye:black", "default:glass", "dye:black" },

View File

@ -1,4 +1,4 @@
local S = minetest.get_translator("computer")
local S = minetest.get_translator("computers")
local shapes = {
{ { x = {0, 1, 0, 1}, y = {0, 0, 1, 1} } },
@ -27,10 +27,10 @@ local shapes = {
{ x = {0, 1, 2, 1}, y = {1, 1, 1, 2} },
{ x = {0, 1, 1, 1}, y = {1, 0, 1, 2} } } }
local colors = { "computer_cyan.png", "computer_magenta.png", "computer_red.png",
"computer_blue.png", "computer_green.png", "computer_orange.png", "computer_yellow.png" }
local colors = { "computers_cyan.png", "computers_magenta.png", "computers_red.png",
"computers_blue.png", "computers_green.png", "computers_orange.png", "computers_yellow.png" }
local background = "image[0,0;3.55,6.66;computer_black.png]"
local background = "image[0,0;3.55,6.66;computers_black.png]"
local buttons = "button[3,4.5;0.6,0.6;left;<]"
.."button[3.6,4.5;0.6,0.6;rotateleft;"..minetest.formspec_escape(S("L")).."]"
.."button[4.2,4.5;0.6,0.6;down;v]"
@ -242,11 +242,11 @@ local function step(pos, fields)
return run
end
minetest.register_node("computer:tetris_arcade", {
minetest.register_node("computers:tetris_arcade", {
description=S("Tetris Arcade"),
drawtype = "mesh",
mesh = "tetris_arcade.obj",
tiles = {"tetris_arcade.png"},
mesh = "computers_tetris_arcade.obj",
tiles = {"computers_tetris_arcade.png"},
paramtype = "light",
paramtype2 = "facedir",
groups = {snappy=3},
@ -282,7 +282,7 @@ minetest.register_node("computer:tetris_arcade", {
return itemstack
end
local dir = placer:get_look_dir()
local node = {name="computer:tetris_arcade", param1=0, param2 = minetest.dir_to_facedir(dir)}
local node = {name="computers:tetris_arcade", param1=0, param2 = minetest.dir_to_facedir(dir)}
minetest.set_node(pos, node)
itemstack:take_item()
return itemstack

View File

Before

Width:  |  Height:  |  Size: 3.6 KiB

After

Width:  |  Height:  |  Size: 3.6 KiB

View File

Before

Width:  |  Height:  |  Size: 3.0 KiB

After

Width:  |  Height:  |  Size: 3.0 KiB

View File

Before

Width:  |  Height:  |  Size: 216 B

After

Width:  |  Height:  |  Size: 216 B

View File

Before

Width:  |  Height:  |  Size: 2.3 KiB

After

Width:  |  Height:  |  Size: 2.3 KiB

View File

Before

Width:  |  Height:  |  Size: 2.2 KiB

After

Width:  |  Height:  |  Size: 2.2 KiB

View File

Before

Width:  |  Height:  |  Size: 105 B

After

Width:  |  Height:  |  Size: 105 B

View File

Before

Width:  |  Height:  |  Size: 115 B

After

Width:  |  Height:  |  Size: 115 B

View File

Before

Width:  |  Height:  |  Size: 105 B

After

Width:  |  Height:  |  Size: 105 B

View File

Before

Width:  |  Height:  |  Size: 107 B

After

Width:  |  Height:  |  Size: 107 B

View File

Before

Width:  |  Height:  |  Size: 109 B

After

Width:  |  Height:  |  Size: 109 B

View File

Before

Width:  |  Height:  |  Size: 261 B

After

Width:  |  Height:  |  Size: 261 B

View File

Before

Width:  |  Height:  |  Size: 103 B

After

Width:  |  Height:  |  Size: 103 B

View File

Before

Width:  |  Height:  |  Size: 113 B

After

Width:  |  Height:  |  Size: 113 B

View File

Before

Width:  |  Height:  |  Size: 103 B

After

Width:  |  Height:  |  Size: 103 B

View File

Before

Width:  |  Height:  |  Size: 106 B

After

Width:  |  Height:  |  Size: 106 B

View File

Before

Width:  |  Height:  |  Size: 107 B

After

Width:  |  Height:  |  Size: 107 B

View File

Before

Width:  |  Height:  |  Size: 235 B

After

Width:  |  Height:  |  Size: 235 B

View File

Before

Width:  |  Height:  |  Size: 67 B

After

Width:  |  Height:  |  Size: 67 B

View File

Before

Width:  |  Height:  |  Size: 98 B

After

Width:  |  Height:  |  Size: 98 B

View File

Before

Width:  |  Height:  |  Size: 118 B

After

Width:  |  Height:  |  Size: 118 B

View File

Before

Width:  |  Height:  |  Size: 123 B

After

Width:  |  Height:  |  Size: 123 B

View File

Before

Width:  |  Height:  |  Size: 102 B

After

Width:  |  Height:  |  Size: 102 B

View File

Before

Width:  |  Height:  |  Size: 98 B

After

Width:  |  Height:  |  Size: 98 B

View File

Before

Width:  |  Height:  |  Size: 76 B

After

Width:  |  Height:  |  Size: 76 B

View File

Before

Width:  |  Height:  |  Size: 89 B

After

Width:  |  Height:  |  Size: 89 B

View File

Before

Width:  |  Height:  |  Size: 98 B

After

Width:  |  Height:  |  Size: 98 B

View File

Before

Width:  |  Height:  |  Size: 80 B

After

Width:  |  Height:  |  Size: 80 B

View File

Before

Width:  |  Height:  |  Size: 80 B

After

Width:  |  Height:  |  Size: 80 B

View File

Before

Width:  |  Height:  |  Size: 153 B

After

Width:  |  Height:  |  Size: 153 B

View File

Before

Width:  |  Height:  |  Size: 8.3 KiB

After

Width:  |  Height:  |  Size: 8.3 KiB

View File

Before

Width:  |  Height:  |  Size: 2.6 KiB

After

Width:  |  Height:  |  Size: 2.6 KiB

View File

Before

Width:  |  Height:  |  Size: 106 B

After

Width:  |  Height:  |  Size: 106 B

View File

Before

Width:  |  Height:  |  Size: 6.1 KiB

After

Width:  |  Height:  |  Size: 6.1 KiB

View File

Before

Width:  |  Height:  |  Size: 2.6 KiB

After

Width:  |  Height:  |  Size: 2.6 KiB

View File

Before

Width:  |  Height:  |  Size: 164 B

After

Width:  |  Height:  |  Size: 164 B

View File

Before

Width:  |  Height:  |  Size: 101 B

After

Width:  |  Height:  |  Size: 101 B

View File

Before

Width:  |  Height:  |  Size: 187 B

After

Width:  |  Height:  |  Size: 187 B

View File

Before

Width:  |  Height:  |  Size: 115 B

After

Width:  |  Height:  |  Size: 115 B

View File

Before

Width:  |  Height:  |  Size: 168 B

After

Width:  |  Height:  |  Size: 168 B

View File

Before

Width:  |  Height:  |  Size: 153 B

After

Width:  |  Height:  |  Size: 153 B

View File

Before

Width:  |  Height:  |  Size: 163 B

After

Width:  |  Height:  |  Size: 163 B

View File

Before

Width:  |  Height:  |  Size: 2.4 KiB

After

Width:  |  Height:  |  Size: 2.4 KiB

View File

Before

Width:  |  Height:  |  Size: 157 B

After

Width:  |  Height:  |  Size: 157 B

View File

Before

Width:  |  Height:  |  Size: 155 B

After

Width:  |  Height:  |  Size: 155 B

View File

Before

Width:  |  Height:  |  Size: 196 B

After

Width:  |  Height:  |  Size: 196 B

View File

Before

Width:  |  Height:  |  Size: 2.3 KiB

After

Width:  |  Height:  |  Size: 2.3 KiB

View File

Before

Width:  |  Height:  |  Size: 2.3 KiB

After

Width:  |  Height:  |  Size: 2.3 KiB

View File

Before

Width:  |  Height:  |  Size: 98 B

After

Width:  |  Height:  |  Size: 98 B

View File

Before

Width:  |  Height:  |  Size: 252 B

After

Width:  |  Height:  |  Size: 252 B

View File

Before

Width:  |  Height:  |  Size: 153 B

After

Width:  |  Height:  |  Size: 153 B

View File

Before

Width:  |  Height:  |  Size: 1.0 KiB

After

Width:  |  Height:  |  Size: 1.0 KiB

View File

Before

Width:  |  Height:  |  Size: 2.3 KiB

After

Width:  |  Height:  |  Size: 2.3 KiB

View File

Before

Width:  |  Height:  |  Size: 1.9 KiB

After

Width:  |  Height:  |  Size: 1.9 KiB

View File

Before

Width:  |  Height:  |  Size: 211 B

After

Width:  |  Height:  |  Size: 211 B

View File

Before

Width:  |  Height:  |  Size: 207 B

After

Width:  |  Height:  |  Size: 207 B

View File

Before

Width:  |  Height:  |  Size: 143 B

After

Width:  |  Height:  |  Size: 143 B

View File

Before

Width:  |  Height:  |  Size: 67 B

After

Width:  |  Height:  |  Size: 67 B

View File

Before

Width:  |  Height:  |  Size: 1.2 KiB

After

Width:  |  Height:  |  Size: 1.2 KiB

View File

Before

Width:  |  Height:  |  Size: 2.2 KiB

After

Width:  |  Height:  |  Size: 2.2 KiB

View File

Before

Width:  |  Height:  |  Size: 3.5 KiB

After

Width:  |  Height:  |  Size: 3.5 KiB

View File

Before

Width:  |  Height:  |  Size: 127 B

After

Width:  |  Height:  |  Size: 127 B

View File

Before

Width:  |  Height:  |  Size: 127 B

After

Width:  |  Height:  |  Size: 127 B

View File

Before

Width:  |  Height:  |  Size: 67 B

After

Width:  |  Height:  |  Size: 67 B

View File

Before

Width:  |  Height:  |  Size: 97 B

After

Width:  |  Height:  |  Size: 97 B

View File

Before

Width:  |  Height:  |  Size: 108 B

After

Width:  |  Height:  |  Size: 108 B

View File

Before

Width:  |  Height:  |  Size: 170 B

After

Width:  |  Height:  |  Size: 170 B

View File

Before

Width:  |  Height:  |  Size: 117 B

After

Width:  |  Height:  |  Size: 117 B

View File

Before

Width:  |  Height:  |  Size: 117 B

After

Width:  |  Height:  |  Size: 117 B

View File

Before

Width:  |  Height:  |  Size: 121 B

After

Width:  |  Height:  |  Size: 121 B

View File

Before

Width:  |  Height:  |  Size: 205 B

After

Width:  |  Height:  |  Size: 205 B

View File

Before

Width:  |  Height:  |  Size: 230 B

After

Width:  |  Height:  |  Size: 230 B

View File

Before

Width:  |  Height:  |  Size: 165 B

After

Width:  |  Height:  |  Size: 165 B

Some files were not shown because too many files have changed in this diff Show More