remove mese giver entirely from the mod
This commit is contained in:
parent
f1b6f22bdf
commit
723276d58a
@ -4,5 +4,3 @@ enable_display_uranium = false
|
||||
technic_uranium_new_ore_gen = true
|
||||
--Enable to add a recipe that uses "technic:uranium"
|
||||
enable_technic_recipe = true
|
||||
--Enable a way to build the mese giver ingame
|
||||
enable_mese_giver_recipe = false
|
||||
|
95
init.lua
95
init.lua
@ -86,73 +86,6 @@ if minetest.get_modpath("titanium") then
|
||||
disp("titanium", "Titanium", 0, "titanium:block", "")
|
||||
end
|
||||
|
||||
--
|
||||
--Mese Giver Display
|
||||
--
|
||||
|
||||
minetest.register_node( "display_blocks:mese_giver_base", {
|
||||
description = "Mese Giver Display Base",
|
||||
tile_images = { "display_blocks_mese_giver_block.png" },
|
||||
is_ground_content = true,
|
||||
groups = {cracky=3},
|
||||
drawtype = "glasslike",
|
||||
paramtype = "light",
|
||||
})
|
||||
|
||||
minetest.register_abm({
|
||||
nodenames = {"display_blocks:mese_giver_base"},
|
||||
interval = 20.0,
|
||||
chance = 1,
|
||||
action = function(pos, node, active_object_count, active_object_count_wider)
|
||||
pos.y = pos.y + 1
|
||||
minetest.env:add_node(pos, {name="default:mese"})
|
||||
end
|
||||
})
|
||||
|
||||
function remove_crystal(pos, node, active_object_count, active_object_count_wider)
|
||||
if
|
||||
node.name == "display_blocks:mese_giver_base"
|
||||
then
|
||||
pos.y = pos.y + 1
|
||||
minetest.env:remove_node(pos, {name="default:mese"})
|
||||
end
|
||||
end
|
||||
minetest.register_on_dignode(remove_crystal)
|
||||
if enable_mese_giver_recipe == true then
|
||||
minetest.register_craft({
|
||||
type = "shapeless",
|
||||
output = 'display_blocks:mese_giver_base',
|
||||
recipe = {
|
||||
'default:mese_crystal_fragment',
|
||||
'display_blocks:earth_base',
|
||||
'display_blocks:water_base',
|
||||
'display_blocks:air_base',
|
||||
'display_blocks:mese_base',
|
||||
'display_blocks:fire_base',
|
||||
'display_blocks:uranium_base',
|
||||
'display_blocks:metal_base',
|
||||
'display_blocks:glass_base',
|
||||
}
|
||||
})
|
||||
end
|
||||
|
||||
minetest.register_craft({
|
||||
type = "shapeless",
|
||||
output = 'display_blocks:mese_giver_base',
|
||||
recipe = {
|
||||
'display_blocks:earth_crystal',
|
||||
'display_blocks:water_crystal',
|
||||
'display_blocks:air_crystal',
|
||||
'display_blocks:mese_crystal',
|
||||
'display_blocks:fire_crystal',
|
||||
'display_blocks:uranium_crystal',
|
||||
'display_blocks:metal_crystal',
|
||||
'display_blocks:glass_crystal',
|
||||
'display_blocks:universia_crystal',
|
||||
}
|
||||
})
|
||||
|
||||
|
||||
--
|
||||
-- Universia Display
|
||||
--
|
||||
@ -202,25 +135,15 @@ function remove_crystal(pos, node, active_object_count, active_object_count_wide
|
||||
end
|
||||
end
|
||||
minetest.register_on_dignode(remove_crystal)
|
||||
if enable_mese_giver_recipe == true then
|
||||
minetest.register_craft({
|
||||
output = "display_blocks:universia_base",
|
||||
recipe = {
|
||||
{'default:mese_crystal', 'default:mese_crystal', 'default:mese_crystal'},
|
||||
{'display_blocks:natura_cube', 'display_blocks:mese_giver_base', 'display_blocks:industria_cube'},
|
||||
{'default:obsidian', 'default:obsidian', 'default:obsidian'},
|
||||
},
|
||||
})
|
||||
elseif enable_mese_giver_recipe == false then
|
||||
minetest.register_craft({
|
||||
output = "display_blocks:universia_base",
|
||||
recipe = {
|
||||
{'default:mese_crystal', 'default:mese_crystal', 'default:mese_crystal'},
|
||||
{'display_blocks:natura_cube', 'default:mese_block', 'display_blocks:industria_cube'},
|
||||
{'default:obsidian', 'default:obsidian', 'default:obsidian'},
|
||||
},
|
||||
})
|
||||
end
|
||||
|
||||
minetest.register_craft({
|
||||
output = "display_blocks:universia_base",
|
||||
recipe = {
|
||||
{'default:mese_crystal', 'default:mese_crystal', 'default:mese_crystal'},
|
||||
{'display_blocks:natura_cube', 'default:mese_block', 'display_blocks:industria_cube'},
|
||||
{'default:obsidian', 'default:obsidian', 'default:obsidian'},
|
||||
},
|
||||
})
|
||||
|
||||
--
|
||||
-- Other Blocks
|
||||
|
Loading…
x
Reference in New Issue
Block a user