diff options
author | Zefram <zefram@fysh.org> | 2014-07-06 13:50:23 +0100 |
---|---|---|
committer | Novatux <nathanael.courant@laposte.net> | 2014-07-07 15:15:30 +0200 |
commit | c26f45c962a979a5d6d820fcde4376e10fc9e9d7 (patch) | |
tree | 846edf4009626c126821733d1bc45302fcc261a2 | |
parent | 775cb9d1324b36d8fe72b1a094a2287720cc41f3 (diff) |
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.
-rw-r--r-- | technic/crafts.lua | 9 | ||||
-rw-r--r-- | technic/items.lua | 9 | ||||
-rw-r--r-- | technic/textures/technic_machine_casing.png | bin | 0 -> 673 bytes |
3 files changed, 18 insertions, 0 deletions
diff --git a/technic/crafts.lua b/technic/crafts.lua index 1bc1e42..4ed2ebb 100644 --- a/technic/crafts.lua +++ b/technic/crafts.lua @@ -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 minetest.register_craftitem("technic:nothing", { description = "", diff --git a/technic/items.lua b/technic/items.lua index d62642c..1fdb018 100644 --- a/technic/items.lua +++ b/technic/items.lua @@ -144,3 +144,12 @@ minetest.register_craftitem("technic:carbon_cloth", { 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(), +}) diff --git a/technic/textures/technic_machine_casing.png b/technic/textures/technic_machine_casing.png Binary files differnew file mode 100644 index 0000000..d596733 --- /dev/null +++ b/technic/textures/technic_machine_casing.png |