Corrected spelling, fixed a recipe, and added a config option

master
jojoa1997 2013-09-05 16:15:49 -04:00
parent 69508d5a14
commit 534f9095ec
3 changed files with 15 additions and 12 deletions

View File

@ -1,4 +1,6 @@
-- Disable to make the uranium only be "technic"uranium". Enable to add "display_blocks:uranium"
enable_display_uranium = true
--Enable to make "technic:uranium" spawning like "display_blocks:uranium".
technic_uranium_new_ore_gen = true
technic_uranium_new_ore_gen = true
--Enable to add a recipe that uses "technic:uranium"
enable_technic_recipe = true

View File

@ -1,11 +1,10 @@
local PATH = minetest.get_modpath("display_blocks")
dofile(PATH.."/config.lua")
dofile(PATH.."/technic.lua")
if enable_display_uranium == true then
dofile(minetest.get_modpath("display_blocks").."/uranium.lua")
elseif dofile(minetest.get_modpath("technic")) then
dofile(PATH.."/tecnic.lua")
end
local Scale = 0.9

View File

@ -3,7 +3,7 @@ if enable_display_uranium == false then
minetest.register_alias("display_blocks:uranium_block", "technic:uranium_block")
end
if technic_uranium_new_ore_gen = true then
if technic_uranium_new_ore_gen == true then
minetest.register_ore({
ore_type = "scatter",
ore = "technic:uranium_mineral",
@ -27,11 +27,13 @@ if technic_uranium_new_ore_gen = true then
})
end
minetest.register_craft({
output = 'display_blocks:uranium_base 5',
recipe = {
{'', 'default:mese_crystal_fragment', ''},
{'technic:uranium', 'default:glass', 'technic:uranium'},
{'', 'technic:uranium', ''},
}
})
if enable_technic_recipe == true then
minetest.register_craft({
output = 'display_blocks:uranium_base 5',
recipe = {
{'', 'default:mese_crystal_fragment', ''},
{'technic:uranium_block', 'display_blocks:empty_display', 'technic:uranium_block'},
{'', 'technic:uranium_block', ''},
}
})
end