only register moreblocks if available
parent
acc34edf1f
commit
d345cfe3d2
32
marble.lua
32
marble.lua
|
@ -54,22 +54,24 @@ for _, color in ipairs({"red", "blue", "black"}) do
|
|||
y_min = planet_mars.y_start,
|
||||
})
|
||||
|
||||
stairsplus:register_all("planet_mars", color .. "marble", "planet_mars:" .. color .. "marble", {
|
||||
description = color .. " marble",
|
||||
tiles = {"planet_mars_" .. color .. "marble.png"},
|
||||
groups = {cracky=3}
|
||||
})
|
||||
if minetest.get_modpath("moreblocks") then
|
||||
stairsplus:register_all("planet_mars", color .. "marble", "planet_mars:" .. color .. "marble", {
|
||||
description = color .. " marble",
|
||||
tiles = {"planet_mars_" .. color .. "marble.png"},
|
||||
groups = {cracky=3}
|
||||
})
|
||||
|
||||
stairsplus:register_all("planet_mars", color .. "marble_bricks", "planet_mars:" .. color .. "marble_bricks", {
|
||||
description = color .. " marble bricks",
|
||||
tiles = {"planet_mars_" .. color .. "marble_bricks.png"},
|
||||
groups = {cracky=3}
|
||||
})
|
||||
stairsplus:register_all("planet_mars", color .. "marble_bricks", "planet_mars:" .. color .. "marble_bricks", {
|
||||
description = color .. " marble bricks",
|
||||
tiles = {"planet_mars_" .. color .. "marble_bricks.png"},
|
||||
groups = {cracky=3}
|
||||
})
|
||||
|
||||
stairsplus:register_all("planet_mars", color .. "marble_polished", "planet_mars:" .. color .. "marble_polished", {
|
||||
description = color .. " marble polished",
|
||||
tiles = {"planet_mars_" .. color .. "marble_polished.png"},
|
||||
groups = {cracky=3}
|
||||
})
|
||||
stairsplus:register_all("planet_mars", color .. "marble_polished", "planet_mars:" .. color .. "marble_polished", {
|
||||
description = color .. " marble polished",
|
||||
tiles = {"planet_mars_" .. color .. "marble_polished.png"},
|
||||
groups = {cracky=3}
|
||||
})
|
||||
end
|
||||
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue