Merge pull request #107 from Grizzly-Adam/master
Recipes, CPUs, Monochrome Monitors
This commit is contained in:
commit
6a549e2559
173
craftitems.lua
173
craftitems.lua
@ -1,3 +1,63 @@
|
||||
----------------------------
|
||||
---------PROCESSORS---------
|
||||
----------------------------
|
||||
|
||||
minetest.register_craftitem("laptop:cpu_c6", {
|
||||
description = 'Ziram c6 Processor',
|
||||
inventory_image = "laptop_cpu_c6.png",
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
output = 'laptop:cpu_c6',
|
||||
recipe = {
|
||||
{'', '', '', },
|
||||
{'mesecons_materials:silicon', 'mesecons_gates:diode_off', 'default:tin_ingot', },
|
||||
{'mesecons_gates:and_off', 'mesecons_gates:or_off', 'mesecons_gates:nand_off', },
|
||||
}
|
||||
})
|
||||
|
||||
minetest.register_craftitem("laptop:cpu_d75a", {
|
||||
description = 'Interlink D75A Processor',
|
||||
inventory_image = "laptop_cpu_d75a.png",
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
output = 'laptop:cpu_d75a',
|
||||
recipe = {
|
||||
{'mesecons_materials:silicon', 'mesecons_materials:silicon', 'mesecons_materials:silicon', },
|
||||
{'mesecons_gates:xor_off', 'default:copper_ingot', 'mesecons_gates:nand_off', },
|
||||
{'mesecons_fpga:fpga0000', 'mesecons_fpga:programmer', 'mesecons_fpga:fpga0000', },
|
||||
}
|
||||
})
|
||||
|
||||
minetest.register_craftitem("laptop:cpu_jetcore", {
|
||||
description = 'Interlink jetCore Processor',
|
||||
inventory_image = "laptop_cpu_jetcore.png",
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
output = 'laptop:cpu_jetcore',
|
||||
recipe = {
|
||||
{'mesecons_materials:silicon', 'mesecons_materials:silicon', 'mesecons_materials:silicon', },
|
||||
{'mesecons_materials:fiber', 'default:gold_ingot', 'mesecons_delayer:delayer_off_1', },
|
||||
{'mesecons_fpga:fpga0000', 'mesecons_luacontroller:luacontroller0000', 'mesecons_fpga:programmer', },
|
||||
}
|
||||
})
|
||||
|
||||
minetest.register_craftitem("laptop:cpu_65536", {
|
||||
description = 'Transpose 65536 Processor',
|
||||
inventory_image = "laptop_cpu_65536.png",
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
output = 'laptop:cpu_65536',
|
||||
recipe = {
|
||||
{'', '', '', },
|
||||
{'mesecons_materials:silicon', 'default:copper_ingot', 'mesecons_materials:silicon', },
|
||||
{'mesecons_gates:not_off', 'mesecons_fpga:fpga0000', 'mesecons_delayer:delayer_off_1', },
|
||||
}
|
||||
})
|
||||
|
||||
minetest.register_craftitem("laptop:bat", {
|
||||
description = 'Battery',
|
||||
inventory_image = "laptop_bat.png",
|
||||
@ -40,6 +100,34 @@ minetest.register_craft({
|
||||
}
|
||||
})
|
||||
|
||||
minetest.register_craftitem("laptop:crt_amber", {
|
||||
description = 'Amber CRT Screen',
|
||||
inventory_image = "laptop_crt_amber.png",
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
output = 'laptop:crt_amber',
|
||||
recipe = {
|
||||
{'default:glass', 'dye:orange', 'default:glass', },
|
||||
{'mesecons_lightstone:lightstone_red_off', 'mesecons_lightstone:lightstone_green_off', 'mesecons_lightstone:lightstone_blue_off', },
|
||||
{'default:steel_ingot', 'mesecons_luacontroller:luacontroller0000', 'default:steel_ingot', },
|
||||
}
|
||||
})
|
||||
|
||||
minetest.register_craftitem("laptop:crt_green", {
|
||||
description = 'Green CRT Screen',
|
||||
inventory_image = "laptop_crt_green.png",
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
output = 'laptop:crt_green',
|
||||
recipe = {
|
||||
{'default:glass', 'dye:green', 'default:glass', },
|
||||
{'mesecons_lightstone:lightstone_red_off', 'mesecons_lightstone:lightstone_green_off', 'mesecons_lightstone:lightstone_blue_off', },
|
||||
{'default:steel_ingot', 'mesecons_luacontroller:luacontroller0000', 'default:steel_ingot', },
|
||||
}
|
||||
})
|
||||
|
||||
minetest.register_craftitem("laptop:lcd", {
|
||||
description = 'LCD Screen',
|
||||
inventory_image = "laptop_lcd.png",
|
||||
@ -140,4 +228,87 @@ minetest.register_craft({
|
||||
{'', 'mesecons_fpga:programmer', '', },
|
||||
{'', 'default:steel_ingot', '', },
|
||||
}
|
||||
})
|
||||
})
|
||||
|
||||
minetest.register_craftitem("laptop:printed_paper", {
|
||||
description = 'Printed paper',
|
||||
inventory_image = "laptop_printed_paper.png",
|
||||
groups = {not_in_creative_inventory = 1},
|
||||
stack_max = 1,
|
||||
on_use = function(itemstack, user)
|
||||
local meta = itemstack:get_meta()
|
||||
local data = meta:to_table().fields
|
||||
local formspec = "size[8,8]" .. default.gui_bg .. default.gui_bg_img ..
|
||||
"label[0,0;" .. minetest.formspec_escape(data.title or "unnamed") ..
|
||||
" by " .. (data.author or "unknown") .. " from " .. os.date("%c", data.timestamp) .. "]"..
|
||||
"textarea[0.5,1;7.5,7;;" ..
|
||||
minetest.formspec_escape(data.text or "test text") .. ";]"
|
||||
minetest.show_formspec(user:get_player_name(), "laptop:printed_paper", formspec)
|
||||
return itemstack
|
||||
end
|
||||
|
||||
})
|
||||
|
||||
--Computers--
|
||||
minetest.register_craft({
|
||||
output = 'laptop:core_closed',
|
||||
recipe = {
|
||||
{'dye:red', 'laptop:lcd', 'dye:red', },
|
||||
{'laptop:HDD', 'laptop:motherboard', 'laptop:gpu', },
|
||||
{'laptop:bat', 'laptop:case', 'dye:red', },
|
||||
}
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
output = 'laptop:printer_off',
|
||||
recipe = {
|
||||
{'', 'laptop:motherboard', '', },
|
||||
{'', 'laptop:psu', '', },
|
||||
{'', 'laptop:case', '', },
|
||||
}
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
output = 'laptop:cube_off',
|
||||
recipe = {
|
||||
{'', 'laptop:crt', '', },
|
||||
{'laptop:HDD', 'laptop:motherboard', 'laptop:psu', },
|
||||
{'laptop:cpu_65536', 'laptop:case', '', },
|
||||
}
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
output = 'laptop:fruit_zero_off',
|
||||
recipe = {
|
||||
{'dye:white', 'laptop:lcd', 'dye:white', },
|
||||
{'laptop:gpu', 'laptop:motherboard', 'laptop:HDD', },
|
||||
{'laptop:cpu_jetcore', 'laptop:case', 'laptop:psu', },
|
||||
}
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
output = 'laptop:bell_crossover_off',
|
||||
recipe = {
|
||||
{'dye:dark_grey', 'laptop:lcd', 'dye:dark_grey', },
|
||||
{'laptop:psu', 'laptop:motherboard', 'laptop:HDD', },
|
||||
{'laptop:cpu_d75a', 'laptop:case', 'dye:dark_grey', },
|
||||
}
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
output = 'laptop:kodiak_1000_off',
|
||||
recipe = {
|
||||
{'', 'laptop:crt_green', '', },
|
||||
{'laptop:cpu_c6', 'laptop:motherboard', 'laptop:psu', },
|
||||
{'laptop:HDD', 'laptop:case', '', },
|
||||
}
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
output = 'laptop:portable_workstation_2_closed',
|
||||
recipe = {
|
||||
{'dye:dark_grey', 'laptop:lcd', 'dye:dark_grey', },
|
||||
{'laptop:HDD', 'laptop:motherboard', 'laptop:cpu_d75a', },
|
||||
{'laptop:bat', 'laptop:case', 'dye:dark_grey', },
|
||||
}
|
||||
})
|
||||
|
BIN
textures/laptop_cpu_65536.png
Normal file
BIN
textures/laptop_cpu_65536.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 404 B |
BIN
textures/laptop_cpu_c6.png
Normal file
BIN
textures/laptop_cpu_c6.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 360 B |
BIN
textures/laptop_cpu_d75a.png
Normal file
BIN
textures/laptop_cpu_d75a.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 350 B |
BIN
textures/laptop_cpu_jetcore.png
Normal file
BIN
textures/laptop_cpu_jetcore.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 442 B |
BIN
textures/laptop_crt_amber.png
Normal file
BIN
textures/laptop_crt_amber.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 292 B |
BIN
textures/laptop_crt_green.png
Normal file
BIN
textures/laptop_crt_green.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 306 B |
Loading…
x
Reference in New Issue
Block a user