diff --git a/computers/computers.lua b/computers/computers.lua index d545048e..0853e6b5 100644 --- a/computers/computers.lua +++ b/computers/computers.lua @@ -270,3 +270,31 @@ minetest.register_node("computers:server_on", { return itemstack end }) + +-- Printer of some kind + +minetest.register_node("computers:printer", { + description = S("Printer-Scanner Combo"), + 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, + groups = {snappy=3}, + sound = default.node_sound_wood_defaults(), + drawtype = "nodebox", + node_box = { + type = "fixed", + fixed = { + {-0.4375, -0.3125, -0.125, 0.4375, -0.0625, 0.375}, + {-0.4375, -0.5, -0.125, 0.4375, -0.4375, 0.375}, + {-0.4375, -0.5, -0.125, -0.25, -0.0625, 0.375}, + {0.25, -0.5, -0.125, 0.4375, -0.0625, 0.375}, + {-0.4375, -0.5, -0.0625, 0.4375, -0.0625, 0.375}, + {-0.375, -0.4375, 0.25, 0.375, -0.0625, 0.4375}, + {-0.25, -0.25, 0.4375, 0.25, 0.0625, 0.5}, + {-0.25, -0.481132, -0.3125, 0.25, -0.4375, 0} + }, + }, +}) diff --git a/computers/printers.lua b/computers/printers.lua index 6e7874ec..50abf254 100644 --- a/computers/printers.lua +++ b/computers/printers.lua @@ -1,33 +1,5 @@ --- Printers of some kind or another - local S = minetest.get_translator("computers") -minetest.register_node("computers:printer", { - description = S("Printer-Scanner Combo"), - 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, - groups = {snappy=3}, - sound = default.node_sound_wood_defaults(), - drawtype = "nodebox", - node_box = { - type = "fixed", - fixed = { - {-0.4375, -0.3125, -0.125, 0.4375, -0.0625, 0.375}, - {-0.4375, -0.5, -0.125, 0.4375, -0.4375, 0.375}, - {-0.4375, -0.5, -0.125, -0.25, -0.0625, 0.375}, - {0.25, -0.5, -0.125, 0.4375, -0.0625, 0.375}, - {-0.4375, -0.5, -0.0625, 0.4375, -0.0625, 0.375}, - {-0.375, -0.4375, 0.25, 0.375, -0.0625, 0.4375}, - {-0.25, -0.25, 0.4375, 0.25, 0.0625, 0.5}, - {-0.25, -0.481132, -0.3125, 0.25, -0.4375, 0} - }, - }, -}) - -- "bedflinger" style 3D Printer (Prusa i3 or equivalent) local cbox = {