Add files via upload

master
Gerold55 2017-12-18 16:29:46 -05:00 committed by GitHub
parent 991a361dce
commit 4485e57ef6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
38 changed files with 409 additions and 0 deletions

1
depends.txt Normal file
View File

@ -0,0 +1 @@
laptop

408
init.lua Normal file
View File

@ -0,0 +1,408 @@
laptop.register_hardware("pc1:4k", {
description = "4K",
infotext = '4K',
sequence = { "closed", "open", "open_on" },
hw_capabilities = { 'hdd', 'usb', 'net' },
node_defs = {
["open"] = {
hw_state = "power_off",
tiles = {
"HP_Stream_top_c.png",
"HP_Stream_b.png",
"HP_Stream_s_o.png",
"HP_Stream_s_o.png",
"HP_Stream_back_o.png",
"HP_Stream_f_off.png",
},
drawtype = "nodebox",
paramtype = "light",
paramtype2 = "facedir",
node_box = {
type = "fixed",
fixed = {
{-0.4, -0.5, -0.3, 0.4, -0.45, 0.3}, --keyboard
{-0.4, -0.5, 0.3, 0.4, 0.2, 0.3500}, --monitor
}
}
},
["open_on"] = {
hw_state = "resume",
light_source = 4,
tiles = {
"HP_Stream_top_c.png",
"HP_Stream_b.png",
"HP_Stream_s_o.png",
"HP_Stream_s_o.png",
"HP_Stream_back_o.png",
"HP_Stream_f_on.png",
},
drawtype = "nodebox",
paramtype = "light",
paramtype2 = "facedir",
node_box = {
type = "fixed",
fixed = {
{-0.4, -0.5, -0.3, 0.4, -0.45, 0.3}, --keyboard
{-0.4, -0.5, 0.3, 0.4, 0.2, 0.3500}, --monitor
}
}
},
["closed"] = {
hw_state = "power_off",
tiles = {
"HP_Stream_top_co.png",
"HP_Stream_b.png",
"HP_Stream_s.png",
"HP_Stream_s.png",
"HP_Stream_back.png",
"HP_Stream_s.png",
},
drawtype = "nodebox",
paramtype = "light",
paramtype2 = "facedir",
node_box = {
type = "fixed",
fixed = {
{-0.4, -0.5, -0.3, 0.4, -0.4, 0.3}, --base
}
}
}
}
})
laptop.register_hardware("pc1:amstrum45", {
description = "Amstrum 45",
infotext = "Amstrum 45",
sequence = { "off", "on"},
custom_theme = "Red",
hw_capabilities = { "hdd", "floppy", "net", "liveboot" },
node_defs = {
["on"] = {
hw_state = "power_on",
light_source = 4,
tiles = {
"Amstrad_top.png",
"Amstrad_s.png",
"Amstrad_s.png",
"Amstrad_s.png",
"Amstrad_s.png",
"Amstrad_f_on.png",
},
drawtype = "nodebox",
paramtype = "light",
paramtype2 = "facedir",
node_box = {
type = "fixed",
fixed = {
{-0.3, -0.5, -0.1, 0.3, -0.4, 0.3}, --base
{-0.1, -0.4, -0.0, 0.1, -0.2, 0.2}, --base2
{-0.4, -0.3, -0.2, 0.4, 0.3, 0.4}, --monitor
{-0.4, -0.5, -0.5, 0.4, -0.4, -0.2}, --keyboard
}
},
},
["off"] = {
hw_state = "power_off",
tiles = {
"Amstrad_top.png",
"Amstrad_s.png",
"Amstrad_s.png",
"Amstrad_s.png",
"Amstrad_s.png",
"Amstrad_f.png",
},
drawtype = "nodebox",
paramtype = "light",
paramtype2 = "facedir",
node_box = {
type = "fixed",
fixed = {
{-0.3, -0.5, -0.1, 0.3, -0.4, 0.3}, --base
{-0.1, -0.4, -0.0, 0.1, -0.2, 0.2}, --base2
{-0.4, -0.3, -0.2, 0.4, 0.3, 0.4}, --monitor
{-0.4, -0.5, -0.5, 0.4, -0.4, -0.2}, --keyboard
}
}
}
}
})
laptop.register_hardware("pc1:os4_5", {
description = "OS 4.5",
infotext = "OS 4.5",
sequence = { "off", "on"},
node_defs = {
["on"] = {
hw_state = "power_on",
light_source = 4,
tiles = {
"old_school_top.png",
"old_school_s.png",
"old_school_s.png",
"old_school_s.png",
"old_school_s.png",
"old_school_on.png",
},
drawtype = "nodebox",
paramtype = "light",
paramtype2 = "facedir",
node_box = {
type = "fixed",
fixed = {
{-0.4, -0.5, -0.1, 0.0, -0.4, 0.3}, --base
{-0.5, -0.4, -0.1, 0.1, 0.1, 0.4}, --base2
{-0.6, -0.3, -0.2, 0.2, 0.3, 0.2}, --monitor
{-0.5, -0.5, -0.2, 0.2, -0.4, -0.5}, --keyboard
{0.30990, -0.5, -0.320, 0.4600, -0.4, -0.5}, --mouse
{0.1, -0.5, -0.1, 0.6, -0.3, 0.4}, --system
}
}
},
["off"] = {
hw_state = "power_off",
tiles = {
"old_school_top.png",
"old_school_s.png",
"old_school_s.png",
"old_school_s.png",
"old_school_s.png",
"old_school_f.png",
},
drawtype = "nodebox",
paramtype = "light",
paramtype2 = "facedir",
node_box = {
type = "fixed",
fixed = {
{-0.4, -0.5, -0.1, 0.0, -0.4, 0.3}, --base
{-0.5, -0.4, -0.1, 0.1, 0.1, 0.4}, --base2
{-0.6, -0.3, -0.2, 0.2, 0.3, 0.2}, --monitor
{-0.5, -0.5, -0.2, 0.2, -0.4, -0.5}, --keyboard
{0.30990, -0.5, -0.320, 0.4600, -0.4, -0.5}, --mouse
{0.1, -0.5, -0.1, 0.6, -0.3, 0.4}, --system
}
}
}
}
})
laptop.register_hardware("pc1:war5000", {
description = "WAR 5000",
infotext = "WAR 5000",
sequence = { "off", "on"},
node_defs = {
["on"] = {
hw_state = "power_on",
light_source = 4,
tiles = {
"war_pc_top.png",
"war_pc_s.png",
"war_pc_s.png",
"war_pc_s.png",
"war_pc_back.png",
{name='war_pc_f_on.png', animation={type='vertical_frames', aspect_w=32, aspect_h=32,length=2}},
},
drawtype = "nodebox",
paramtype = "light",
paramtype2 = "facedir",
node_box = {
type = "fixed",
fixed = {
{-0.5, -0.5, -0.1, 0.5, 0.5, 0.5}, --base
{-0.5, -0.3, -0.5, 0.5, -0.5, 0.5}, --base
}
}
},
["off"] = {
hw_state = "power_off",
tiles = {
"war_pc_top.png",
"war_pc_s.png",
"war_pc_s.png",
"war_pc_s.png",
"war_pc_back.png",
"war_pc_f_off.png",
},
drawtype = "nodebox",
paramtype = "light",
paramtype2 = "facedir",
node_box = {
type = "fixed",
fixed = {
{-0.5, -0.5, -0.1, 0.5, 0.5, 0.5}, --base
{-0.5, -0.3, -0.5, 0.5, -0.5, 0.5}, --base
}
}
}
}
})
minetest.register_craft({
output = 'pc1:monitor4_off',
recipe = {
{'default:steel_ingot', 'default:steel_ingot', 'default:steel_ingot'},
{'default:steel_ingot', 'default:glass', 'default:steel_ingot'},
{'default:steel_ingot', 'default:gold_ingot', 'default:steel_ingot'},
}
})
-- pc1 v2.0
laptop.register_hardware("pc1:4k_pink", {
description = "4K (pink)",
infotext = "4K (pink)",
sequence = { "closed", "open", "open_on"},
node_defs = {
["closed"] = {
hw_state = "power_off",
tiles = {
"HP_Stream_top_co_p.png",
"HP_Stream_b_p.png",
"HP_Stream_s_p.png",
"HP_Stream_s_p.png",
"HP_Stream_back_p2.png",
"HP_Stream_s_p.png",
},
drawtype = "nodebox",
paramtype = "light",
paramtype2 = "facedir",
node_box = {
type = "fixed",
fixed = {
{-0.4, -0.5, -0.3, 0.4, -0.4, 0.3}, --base
}
}
},
["open"] = {
hw_state = "power_off",
tiles = {
"HP_Stream_top_c_p.png",
"HP_Stream_b_p.png",
"HP_Stream_back_p.png",
"HP_Stream_back_p.png",
"HP_Stream_back_o_p.png",
"HP_Stream_f_off_p.png",
},
drawtype = "nodebox",
paramtype = "light",
paramtype2 = "facedir",
node_box = {
type = "fixed",
fixed = {
{-0.4, -0.5, -0.3, 0.4, -0.45, 0.3}, --keyboard
{-0.4, -0.5, 0.3, 0.4, 0.2, 0.3500}, --monitor
}
}
},
["open_on"] = {
hw_state = "resume",
light_source = 4,
tiles = {
"HP_Stream_top_c_p.png",
"HP_Stream_b_p.png",
"HP_Stream_back_p.png",
"HP_Stream_back_p.png",
"HP_Stream_back_o_p.png",
"HP_Stream_f_on_p.png",
},
drawtype = "nodebox",
paramtype = "light",
paramtype2 = "facedir",
node_box = {
type = "fixed",
fixed = {
{-0.4, -0.5, -0.3, 0.4, -0.45, 0.3}, --keyboard
{-0.4, -0.5, 0.3, 0.4, 0.2, 0.3500}, --monitor
}
}
}
}
})
minetest.register_craft({
output = 'pc1:laptop_closed',
recipe = {
{'default:steel_ingot', 'default:steel_ingot', 'default:steel_ingot'},
{'default:copper_ingot', 'default:copper_ingot', 'default:copper_ingot'},
{'default:steel_ingot', 'default:glass', 'default:steel_ingot'},
}
})
laptop.register_hardware("pc1:linux", {
description = "MineTu",
infotext = "MineTu",
sequence = { "closed", "open", "open_on"},
node_defs = {
["closed"] = {
hw_state = "power_off",
tiles = {
"l_back.png",
"l_back.png",
"l_back.png",
"l_back.png",
"l_back.png",
"l_back.png",
},
drawtype = "nodebox",
paramtype = "light",
paramtype2 = "facedir",
node_box = {
type = "fixed",
fixed = {
{-0.4, -0.5, -0.3, 0.4, -0.4, 0.3}, --base
}
}
},
["open"] = {
hw_state = "power_off",
tiles = {
"l_top_co.png",
"l_back.png",
"l_back.png",
"l_back.png",
"l_back.png",
"l_f_off.png",
},
drawtype = "nodebox",
paramtype = "light",
paramtype2 = "facedir",
node_box = {
type = "fixed",
fixed = {
{-0.4, -0.5, -0.3, 0.4, -0.45, 0.3}, --keyboard
{-0.4, -0.5, 0.3, 0.4, 0.2, 0.3500}, --monitor
}
}
},
["open_on"] = {
hw_state = "resume",
light_source = 4,
tiles = {
"l_top_co.png",
"l_back.png",
"l_back.png",
"l_back.png",
"l_back.png",
"l_f_on.png",
},
drawtype = "nodebox",
paramtype = "light",
paramtype2 = "facedir",
node_box = {
type = "fixed",
fixed = {
{-0.4, -0.5, -0.3, 0.4, -0.45, 0.3}, --keyboard
{-0.4, -0.5, 0.3, 0.4, 0.2, 0.3500}, --monitor
}
}
}
}
})
minetest.register_craft({
output = 'pc1:laptop_closed',
recipe = {
{'default:steel_ingot', 'default:steel_ingot', 'default:steel_ingot'},
{'default:copper_ingot', 'default:copper_ingot', 'default:copper_ingot'},
{'default:steel_ingot', 'default:glass', 'default:steel_ingot'},
}
})

BIN
textures/Amstrad_f.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 336 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 357 B

BIN
textures/Amstrad_f_on.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 346 B

BIN
textures/Amstrad_s.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 104 B

BIN
textures/Amstrad_top.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 193 B

BIN
textures/HP_Stream_b.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 175 B

BIN
textures/HP_Stream_b_p.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 177 B

BIN
textures/HP_Stream_back.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 174 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 270 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 277 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 156 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 176 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 170 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 171 B

BIN
textures/HP_Stream_f_on.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 256 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 261 B

BIN
textures/HP_Stream_s.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 159 B

BIN
textures/HP_Stream_s_o.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 155 B

BIN
textures/HP_Stream_s_p.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 165 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 234 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 235 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 236 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 245 B

BIN
textures/l_back.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 194 B

BIN
textures/l_f_off.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 170 B

BIN
textures/l_f_on.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 208 B

BIN
textures/l_top_co.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 245 B

BIN
textures/old_school_f.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 213 B

BIN
textures/old_school_on.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 276 B

BIN
textures/old_school_s.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 104 B

BIN
textures/old_school_top.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 273 B

BIN
textures/war_pc_back.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 192 B

BIN
textures/war_pc_f_off.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 152 B

BIN
textures/war_pc_f_on.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 252 B

BIN
textures/war_pc_s.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 103 B

BIN
textures/war_pc_top.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 159 B