summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZefram <zefram@fysh.org>2014-07-06 13:50:23 +0100
committerNovatux <nathanael.courant@laposte.net>2014-07-09 09:17:43 +0200
commit430b310eb435c5c88c249dfcd827a838a21a6b35 (patch)
tree6b6767b8457eb90d06ee4b35f66ce684b367ace8
parent636b0f20df4fef3eef821c23ccc2f606828f5c6f (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.lua9
-rw-r--r--technic/items.lua9
-rw-r--r--technic/textures/technic_machine_casing.pngbin0 -> 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
new file mode 100644
index 0000000..d596733
--- /dev/null
+++ b/technic/textures/technic_machine_casing.png
Binary files differ