summaryrefslogtreecommitdiff
path: root/technic_worldgen/crafts.lua
diff options
context:
space:
mode:
authorVanessa Ezekowitz <vanessaezekowitz@gmail.com>2014-07-30 15:36:27 -0400
committerVanessa Ezekowitz <vanessaezekowitz@gmail.com>2014-07-30 15:36:27 -0400
commit88bdac62e3f36c1125c82b44e2bc6fd718e05322 (patch)
treeebccbef615c51104a6cbca2d3ab957a29445a4ae /technic_worldgen/crafts.lua
parent12d0c6522bbca906910aae0321cbaa7eb48db8c2 (diff)
parent60bc80692ba51ad0a7f2391803ee454b18cb7174 (diff)
Merge remote-tracking branch 'zefram/zefram/centrifuge'
Diffstat (limited to 'technic_worldgen/crafts.lua')
-rw-r--r--technic_worldgen/crafts.lua22
1 files changed, 18 insertions, 4 deletions
diff --git a/technic_worldgen/crafts.lua b/technic_worldgen/crafts.lua
index 759d8ed..3965258 100644
--- a/technic_worldgen/crafts.lua
+++ b/technic_worldgen/crafts.lua
@@ -1,11 +1,19 @@
local S = technic.worldgen.gettext
-minetest.register_craftitem(":technic:uranium", {
- description = S("Uranium"),
- inventory_image = "technic_uranium.png",
+minetest.register_craftitem(":technic:uranium_lump", {
+ description = S("Uranium Lump"),
+ inventory_image = "technic_uranium_lump.png",
on_place_on_ground = minetest.craftitem_place_item,
})
+minetest.register_alias("technic:uranium", "technic:uranium_lump")
+
+minetest.register_craftitem(":technic:uranium_ingot", {
+ description = S("Uranium Ingot"),
+ inventory_image = "technic_uranium_ingot.png",
+ on_place_on_ground = minetest.craftitem_place_item,
+ groups = {uranium_ingot=1},
+})
minetest.register_craftitem(":technic:chromium_lump", {
description = S("Chromium Lump"),
@@ -74,7 +82,7 @@ local function register_block(block, ingot)
})
end
-register_block("technic:uranium_block", "technic:uranium")
+register_block("technic:uranium_block", "technic:uranium_ingot")
register_block("technic:chromium_block", "technic:chromium_ingot")
register_block("technic:zinc_block", "technic:zinc_ingot")
register_block("technic:brass_block", "technic:brass_ingot")
@@ -96,6 +104,12 @@ minetest.register_craft({
minetest.register_craft({
type = 'cooking',
+ recipe = "technic:uranium_lump",
+ output = "technic:uranium_ingot",
+})
+
+minetest.register_craft({
+ type = 'cooking',
recipe = minetest.registered_aliases["technic:wrought_iron_ingot"],
output = "technic:cast_iron_ingot",
})