register lom-nodeboxes only when ethereal mod is detected

This commit is contained in:
Milan* 2017-03-20 22:34:18 +01:00
parent f0c10c432f
commit c3454c1b77

View File

@ -197,50 +197,51 @@ minetest.register_node("illuna:lw_instructions", {
})
-- nodeboxes by https://github.com/D00Med/LegendofMinetest
if minetest.get_modpath("ethereal") then
minetest.override_item("default:furnace", {
drawtype = "nodebox",
paramtype = "light",
node_box = {
type = "fixed",
fixed = {
{-0.5, -0.5, -0.5, 0.5, -0.3125, 0.5}, -- NodeBox1
{-0.4375, 0.375, -0.5, 0.4375, 0.4375, 0.5}, -- NodeBox2
{-0.375, 0.4375, -0.5, 0.375, 0.5, 0.5}, -- NodeBox3
{-0.5, 0.3125, -0.5, 0.5, 0.375, 0.5}, -- NodeBox4
{-0.5, -0.5, -0.5, -0.3125, 0.3125, 0.5}, -- NodeBox5
{0.3125, -0.5, -0.5, 0.5, 0.375, 0.5}, -- NodeBox6
{-0.5, -0.0625, -0.5, 0.5, 0.0625, 0.5}, -- NodeBox7
{-0.5, -0.5, -0.375, 0.5, 0.3125, 0.5}, -- NodeBox8
}
},
})
minetest.override_item("default:furnace", {
drawtype = "nodebox",
paramtype = "light",
node_box = {
type = "fixed",
fixed = {
{-0.5, -0.5, -0.5, 0.5, -0.3125, 0.5}, -- NodeBox1
{-0.4375, 0.375, -0.5, 0.4375, 0.4375, 0.5}, -- NodeBox2
{-0.375, 0.4375, -0.5, 0.375, 0.5, 0.5}, -- NodeBox3
{-0.5, 0.3125, -0.5, 0.5, 0.375, 0.5}, -- NodeBox4
{-0.5, -0.5, -0.5, -0.3125, 0.3125, 0.5}, -- NodeBox5
{0.3125, -0.5, -0.5, 0.5, 0.375, 0.5}, -- NodeBox6
{-0.5, -0.0625, -0.5, 0.5, 0.0625, 0.5}, -- NodeBox7
{-0.5, -0.5, -0.375, 0.5, 0.3125, 0.5}, -- NodeBox8
}
},
})
minetest.override_item("default:chest_locked", {
paramtype = "light",
drawtype = "nodebox",
node_box = {
type = "fixed",
fixed = {
{-0.5, -0.5, -0.5, 0.5, 0.25, 0.5}, -- NodeBox1
{-0.5, 0.375, -0.375, 0.5, 0.4375, 0.375}, -- NodeBox2
{-0.5, 0.25, -0.4375, 0.5, 0.375, 0.4375}, -- NodeBox3
{-0.5, 0.4375, -0.3125, 0.5, 0.5, 0.3125}, -- NodeBox4
}
},
})
minetest.override_item("default:chest_locked", {
paramtype = "light",
drawtype = "nodebox",
node_box = {
type = "fixed",
fixed = {
{-0.5, -0.5, -0.5, 0.5, 0.25, 0.5}, -- NodeBox1
{-0.5, 0.375, -0.375, 0.5, 0.4375, 0.375}, -- NodeBox2
{-0.5, 0.25, -0.4375, 0.5, 0.375, 0.4375}, -- NodeBox3
{-0.5, 0.4375, -0.3125, 0.5, 0.5, 0.3125}, -- NodeBox4
}
},
})
minetest.override_item("default:chest", {
paramtype = "light",
drawtype = "nodebox",
node_box = {
type = "fixed",
fixed = {
{-0.5, -0.5, -0.5, 0.5, 0.25, 0.5}, -- NodeBox1
{-0.5, 0.375, -0.375, 0.5, 0.4375, 0.375}, -- NodeBox2
{-0.5, 0.25, -0.4375, 0.5, 0.375, 0.4375}, -- NodeBox3
{-0.5, 0.4375, -0.3125, 0.5, 0.5, 0.3125}, -- NodeBox4
}
},
})
minetest.override_item("default:chest", {
paramtype = "light",
drawtype = "nodebox",
node_box = {
type = "fixed",
fixed = {
{-0.5, -0.5, -0.5, 0.5, 0.25, 0.5}, -- NodeBox1
{-0.5, 0.375, -0.375, 0.5, 0.4375, 0.375}, -- NodeBox2
{-0.5, 0.25, -0.4375, 0.5, 0.375, 0.4375}, -- NodeBox3
{-0.5, 0.4375, -0.3125, 0.5, 0.5, 0.3125}, -- NodeBox4
}
},
})
end