tidy code
This commit is contained in:
parent
b6d5742ba8
commit
ea02095433
9
init.lua
9
init.lua
@ -3,7 +3,6 @@ local stairs_mod = minetest.get_modpath("stairs")
|
||||
local stairsplus_mod = minetest.global_exists("stairsplus")
|
||||
local ethereal_mod = minetest.get_modpath("ethereal")
|
||||
|
||||
|
||||
local colours = {
|
||||
{"black", "Black", "#000000b0"},
|
||||
{"blue", "Blue", "#015dbb70"},
|
||||
@ -94,7 +93,7 @@ local function set_alias(col, name)
|
||||
end
|
||||
|
||||
|
||||
for i = 1, #colours, 1 do
|
||||
for i = 1, #colours do
|
||||
|
||||
-- stone brick
|
||||
|
||||
@ -107,7 +106,7 @@ cblocks_stairs("cblocks:stonebrick_" .. colours[i][1], {
|
||||
groups = {cracky = 2, stone = 1},
|
||||
sounds = default.node_sound_stone_defaults(),
|
||||
paramtype2 = "facedir",
|
||||
on_place = minetest.rotate_node,
|
||||
on_place = minetest.rotate_node
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
@ -174,7 +173,7 @@ cblocks_stairs("cblocks:wood_" .. col, {
|
||||
groups = {choppy = 2, oddly_breakable_by_hand = 2, flammable = 3, wood = 1},
|
||||
sounds = default.node_sound_wood_defaults(),
|
||||
paramtype2 = "facedir",
|
||||
on_place = minetest.rotate_node,
|
||||
on_place = minetest.rotate_node
|
||||
})
|
||||
|
||||
set_alias(colours[i][1], "wood")
|
||||
@ -185,12 +184,12 @@ minetest.register_craft({
|
||||
{"group:wood","group:wood", "dye:" .. colours[i][1]}
|
||||
}
|
||||
})
|
||||
|
||||
end
|
||||
|
||||
|
||||
-- add lucky blocks
|
||||
if minetest.get_modpath("lucky_block") then
|
||||
|
||||
lucky_block:add_blocks({
|
||||
{"dro", {"cblocks:wood_"}, 10, true},
|
||||
{"dro", {"cblocks:stonebrick_"}, 10, true},
|
||||
|
Loading…
x
Reference in New Issue
Block a user