Machine casing item

The casing is intended to be an ingredient in craft recipes for machines.
It isn't actually used in any recipes yet.  Although mainly a craft
item, it is defined as a node type, mainly to get an appropriately cubic
inventory image.  It is incidentally possible to place it as a node:
this makes some sense, although the empty machine casing isn't actually
useful as a node.
This commit is contained in:
Zefram 2014-07-06 13:50:23 +01:00 committed by Novatux
parent 636b0f20df
commit 430b310eb4
3 changed files with 18 additions and 0 deletions

View File

@ -131,6 +131,15 @@ minetest.register_craft({
} }
}) })
minetest.register_craft({
output = "technic:machine_casing",
recipe = {
{ "technic:cast_iron_ingot", "technic:cast_iron_ingot", "technic:cast_iron_ingot" },
{ "technic:cast_iron_ingot", "technic:brass_ingot", "technic:cast_iron_ingot" },
{ "technic:cast_iron_ingot", "technic:cast_iron_ingot", "technic:cast_iron_ingot" },
},
})
-- Remove some recipes -- Remove some recipes
minetest.register_craftitem("technic:nothing", { minetest.register_craftitem("technic:nothing", {
description = "", description = "",

View File

@ -144,3 +144,12 @@ minetest.register_craftitem("technic:carbon_cloth", {
inventory_image = "technic_carbon_cloth.png", inventory_image = "technic_carbon_cloth.png",
}) })
minetest.register_node("technic:machine_casing", {
description = S("Machine Casing"),
groups = {cracky=2},
sunlight_propagates = true,
paramtype = "light",
drawtype = "allfaces",
tiles = {"technic_machine_casing.png"},
sounds = default.node_sound_stone_defaults(),
})

Binary file not shown.

After

Width:  |  Height:  |  Size: 673 B