mirror of
https://github.com/mt-mods/home_workshop_modpack.git
synced 2025-07-12 21:40:28 +02:00
improve game agnostic ism (#18)
* start work on xcompating this * make items digable in farlands * remove reduntant if check * use xcompat for copperblock and remove checks that prevent issues on non mtg before * computers crafting * last two crafts
This commit is contained in:
@ -85,7 +85,7 @@ minetest.register_node("computers:piepad", {
|
||||
groups = {oddly_breakable_by_hand=2},
|
||||
is_ground_content = false,
|
||||
selection_box = {type = "wallmounted"},
|
||||
sounds = default and default.node_sound_wood_defaults() or nil
|
||||
sounds = xcompat.sounds.node_sound_wood_defaults()
|
||||
})
|
||||
|
||||
-- Commodore 64 lookalike
|
||||
@ -182,7 +182,7 @@ minetest.register_node("computers:router", {
|
||||
walkable = false,
|
||||
groups = {snappy=3},
|
||||
is_ground_content = false,
|
||||
sound = default and default.node_sound_wood_defaults() or nil,
|
||||
sound = xcompat.sounds.node_sound_wood_defaults(),
|
||||
drawtype = "nodebox",
|
||||
node_box = {
|
||||
type = "fixed",
|
||||
@ -211,7 +211,7 @@ minetest.register_node("computers:tower", {
|
||||
paramtype2 = "facedir",
|
||||
groups = {snappy=3},
|
||||
is_ground_content = false,
|
||||
sound = default and default.node_sound_wood_defaults() or nil,
|
||||
sound = xcompat.sounds.node_sound_wood_defaults(),
|
||||
selection_box = pct_cbox,
|
||||
collision_box = pct_cbox
|
||||
})
|
||||
@ -242,7 +242,7 @@ minetest.register_node("computers:server", {
|
||||
type = "fixed",
|
||||
fixed = {-0.5, -0.5, -0.25, 0.5, 1.125, 0.4375}
|
||||
},
|
||||
sounds = default and default.node_sound_wood_defaults() or nil,
|
||||
sounds = xcompat.sounds.node_sound_wood_defaults(),
|
||||
on_rightclick = function(pos, node, clicker, itemstack)
|
||||
node.name = "computers:server_on"
|
||||
minetest.set_node(pos, node)
|
||||
@ -283,7 +283,7 @@ minetest.register_node("computers:server_on", {
|
||||
type = "fixed",
|
||||
fixed = {-0.5, -0.5, -0.25, 0.5, 1.125, 0.4375}
|
||||
},
|
||||
sounds = default and default.node_sound_wood_defaults() or nil,
|
||||
sounds = xcompat.sounds.node_sound_wood_defaults(),
|
||||
drop = 'computers:server',
|
||||
on_rightclick = function(pos, node, clicker, itemstack)
|
||||
node.name = "computers:server"
|
||||
@ -305,7 +305,7 @@ minetest.register_node("computers:printer", {
|
||||
walkable = true,
|
||||
groups = {snappy=3},
|
||||
is_ground_content = false,
|
||||
sound = default and default.node_sound_wood_defaults() or nil,
|
||||
sound = xcompat.sounds.node_sound_wood_defaults(),
|
||||
drawtype = "nodebox",
|
||||
node_box = {
|
||||
type = "fixed",
|
||||
|
@ -1,2 +1,3 @@
|
||||
name = computers
|
||||
depends = xcompat
|
||||
optional_depends = screwdriver, default, basic_materials
|
||||
|
@ -1,10 +1,11 @@
|
||||
-- Copyright (C) 2012-2013 Diego Martínez <kaeza@users.sf.net>
|
||||
local materials = xcompat.materials
|
||||
|
||||
minetest.register_craft({
|
||||
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" },
|
||||
{ "basic_materials:plastic_sheet", materials.glass, "basic_materials:plastic_sheet" },
|
||||
{ "basic_materials:plastic_sheet", "group:wood", "basic_materials:plastic_sheet" }
|
||||
}
|
||||
})
|
||||
@ -21,7 +22,7 @@ minetest.register_craft({
|
||||
output = "computers:vanio",
|
||||
recipe = {
|
||||
{ "basic_materials:plastic_sheet", "", "" },
|
||||
{ "default:glass", "", "" },
|
||||
{ materials.glass, "", "" },
|
||||
{ "basic_materials:plastic_sheet", "basic_materials:plastic_sheet", "basic_materials:plastic_sheet" }
|
||||
}
|
||||
})
|
||||
@ -39,7 +40,7 @@ minetest.register_craft({
|
||||
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" }
|
||||
{ "basic_materials:plastic_sheet", materials.steel_ingot, "basic_materials:plastic_sheet" }
|
||||
}
|
||||
})
|
||||
|
||||
@ -55,7 +56,7 @@ minetest.register_craft({
|
||||
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" }
|
||||
{ materials.steel_ingot, materials.steel_ingot, materials.steel_ingot }
|
||||
}
|
||||
})
|
||||
|
||||
@ -63,7 +64,7 @@ minetest.register_craft({
|
||||
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" }
|
||||
{ "basic_materials:plastic_sheet", materials.copper_ingot, "basic_materials:plastic_sheet" }
|
||||
}
|
||||
})
|
||||
|
||||
@ -71,7 +72,7 @@ minetest.register_craft({
|
||||
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" }
|
||||
{ "basic_materials:plastic_sheet", materials.glass, "basic_materials:plastic_sheet" }
|
||||
}
|
||||
})
|
||||
|
||||
@ -80,45 +81,45 @@ minetest.register_craft({
|
||||
minetest.register_craft({
|
||||
output = "computers:monitor",
|
||||
recipe = {
|
||||
{ "basic_materials:plastic_sheet", "default:glass","" },
|
||||
{ "basic_materials:plastic_sheet", "default:glass","" },
|
||||
{ "basic_materials:plastic_sheet", "default:mese_crystal_fragment", "basic_materials:plastic_sheet" }
|
||||
{ "basic_materials:plastic_sheet", materials.glass,"" },
|
||||
{ "basic_materials:plastic_sheet", materials.glass,"" },
|
||||
{ "basic_materials:plastic_sheet", materials.mese_crystal_fragment, "basic_materials:plastic_sheet" }
|
||||
}
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
output = "computers:router",
|
||||
recipe = {
|
||||
{ "default:steel_ingot","","" },
|
||||
{ "default:steel_ingot" ,"basic_materials:plastic_sheet", "basic_materials:plastic_sheet" },
|
||||
{ "default:mese_crystal_fragment","basic_materials:plastic_sheet", "basic_materials:plastic_sheet" }
|
||||
{ materials.steel_ingot,"","" },
|
||||
{ materials.steel_ingot ,"basic_materials:plastic_sheet", "basic_materials:plastic_sheet" },
|
||||
{ materials.mese_crystal_fragment,"basic_materials:plastic_sheet", "basic_materials:plastic_sheet" }
|
||||
}
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
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" },
|
||||
{ "basic_materials:plastic_sheet", "default:steel_ingot", "basic_materials:plastic_sheet" }
|
||||
{ "basic_materials:plastic_sheet", materials.steel_ingot, "basic_materials:plastic_sheet" },
|
||||
{ "basic_materials:plastic_sheet", materials.mese_crystal, "basic_materials:plastic_sheet" },
|
||||
{ "basic_materials:plastic_sheet", materials.steel_ingot, "basic_materials:plastic_sheet" }
|
||||
}
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
output = "computers:printer",
|
||||
recipe = {
|
||||
{ "basic_materials:plastic_sheet", "default:steel_ingot","" },
|
||||
{ "basic_materials:plastic_sheet", "default:mese_crystal", "basic_materials:plastic_sheet" },
|
||||
{ "basic_materials:plastic_sheet", "default:coal_lump", "basic_materials:plastic_sheet" }
|
||||
{ "basic_materials:plastic_sheet", materials.steel_ingot,"" },
|
||||
{ "basic_materials:plastic_sheet", materials.mese_crystal, "basic_materials:plastic_sheet" },
|
||||
{ "basic_materials:plastic_sheet", materials.coal_lump, "basic_materials:plastic_sheet" }
|
||||
}
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
output = "computers:printer",
|
||||
recipe = {
|
||||
{ "basic_materials:plastic_sheet", "default:steel_ingot","" },
|
||||
{ "basic_materials:plastic_sheet", "default:mese_crystal", "basic_materials:plastic_sheet" },
|
||||
{ "basic_materials:plastic_sheet", "dye:black", "basic_materials:plastic_sheet", }
|
||||
{ "basic_materials:plastic_sheet", materials.steel_ingot,"" },
|
||||
{ "basic_materials:plastic_sheet", materials.mese_crystal, "basic_materials:plastic_sheet" },
|
||||
{ "basic_materials:plastic_sheet", materials.dye_black, "basic_materials:plastic_sheet", }
|
||||
}
|
||||
})
|
||||
|
||||
@ -135,7 +136,7 @@ minetest.register_craft({
|
||||
output = "computers:tetris_arcade",
|
||||
recipe = {
|
||||
{ "basic_materials:plastic_sheet", "basic_materials:energy_crystal_simple", "basic_materials:plastic_sheet", },
|
||||
{ "dye:black", "default:glass", "dye:black" },
|
||||
{ materials.dye_black, materials.glass, materials.dye_black },
|
||||
{ "basic_materials:plastic_sheet", "basic_materials:energy_crystal_simple", "basic_materials:plastic_sheet" }
|
||||
}
|
||||
})
|
||||
|
Reference in New Issue
Block a user