Code cleanup.

This commit is contained in:
Calinou 2014-06-02 19:30:07 +02:00
parent 3ead1f8710
commit dafe6ce1d6
1 changed files with 34 additions and 34 deletions

View File

@ -13,7 +13,7 @@ end
local nodes = { local nodes = {
["wood_tile"] = { ["wood_tile"] = {
description = S("Wooden Tile"), description = S("Wooden Tile"),
groups = {snappy=1,choppy=2,oddly_breakable_by_hand=2,flammable=3}, groups = {snappy = 1, choppy = 2, oddly_breakable_by_hand = 2, flammable = 3},
paramtype2 = "facedir", paramtype2 = "facedir",
tiles = {"default_wood.png^moreblocks_wood_tile.png", tiles = {"default_wood.png^moreblocks_wood_tile.png",
"default_wood.png^moreblocks_wood_tile.png", "default_wood.png^moreblocks_wood_tile.png",
@ -25,7 +25,7 @@ local nodes = {
}, },
["wood_tile_flipped"] = { ["wood_tile_flipped"] = {
description = S("Wooden Tile"), description = S("Wooden Tile"),
groups = {snappy=1,choppy=2,oddly_breakable_by_hand=2,flammable=3}, groups = {snappy = 1, choppy = 2, oddly_breakable_by_hand = 2, flammable = 3},
paramtype2 = "facedir", paramtype2 = "facedir",
tiles = {"default_wood.png^moreblocks_wood_tile.png^[transformR90", tiles = {"default_wood.png^moreblocks_wood_tile.png^[transformR90",
"default_wood.png^moreblocks_wood_tile.png^[transformR90", "default_wood.png^moreblocks_wood_tile.png^[transformR90",
@ -38,21 +38,21 @@ local nodes = {
}, },
["wood_tile_center"] = { ["wood_tile_center"] = {
description = S("Centered Wooden Tile"), description = S("Centered Wooden Tile"),
groups = {snappy=1,choppy=2,oddly_breakable_by_hand=2,flammable=3}, groups = {snappy = 1, choppy = 2, oddly_breakable_by_hand = 2, flammable = 3},
paramtype2 = "facedir", paramtype2 = "facedir",
tiles = {"default_wood.png^moreblocks_wood_tile_center.png"}, tiles = {"default_wood.png^moreblocks_wood_tile_center.png"},
sounds = sound_wood, sounds = sound_wood,
}, },
["wood_tile_full"] = { ["wood_tile_full"] = {
description = S("Full Wooden Tile"), description = S("Full Wooden Tile"),
groups = {snappy=1,choppy=2,oddly_breakable_by_hand=2,flammable=3}, groups = {snappy = 1, choppy = 2, oddly_breakable_by_hand = 2, flammable = 3},
paramtype2 = "facedir", paramtype2 = "facedir",
tiles = tile_tiles("wood_tile_full"), tiles = tile_tiles("wood_tile_full"),
sounds = sound_wood, sounds = sound_wood,
}, },
["wood_tile_up"] = { ["wood_tile_up"] = {
description = S("Upwards Wooden Tile"), description = S("Upwards Wooden Tile"),
groups = {snappy=1,choppy=2,oddly_breakable_by_hand=2,flammable=3}, groups = {snappy = 1, choppy = 2, oddly_breakable_by_hand = 2, flammable = 3},
paramtype2 = "facedir", paramtype2 = "facedir",
tiles = {"default_wood.png^moreblocks_wood_tile_up.png"}, tiles = {"default_wood.png^moreblocks_wood_tile_up.png"},
sounds = sound_wood, sounds = sound_wood,
@ -60,7 +60,7 @@ local nodes = {
}, },
["wood_tile_down"] = { ["wood_tile_down"] = {
description = S("Downwards Wooden Tile"), description = S("Downwards Wooden Tile"),
groups = {snappy=1,choppy=2,oddly_breakable_by_hand=2,flammable=3}, groups = {snappy = 1, choppy = 2, oddly_breakable_by_hand = 2, flammable = 3},
paramtype2 = "facedir", paramtype2 = "facedir",
tiles = {"default_wood.png^[transformR180^moreblocks_wood_tile_up.png^[transformR180"}, tiles = {"default_wood.png^[transformR180^moreblocks_wood_tile_up.png^[transformR180"},
sounds = sound_wood, sounds = sound_wood,
@ -68,7 +68,7 @@ local nodes = {
}, },
["wood_tile_left"] = { ["wood_tile_left"] = {
description = S("Leftwards Wooden Tile"), description = S("Leftwards Wooden Tile"),
groups = {snappy=1,choppy=2,oddly_breakable_by_hand=2,flammable=3}, groups = {snappy = 1, choppy = 2, oddly_breakable_by_hand = 2, flammable = 3},
paramtype2 = "facedir", paramtype2 = "facedir",
tiles = {"default_wood.png^[transformR270^moreblocks_wood_tile_up.png^[transformR270"}, tiles = {"default_wood.png^[transformR270^moreblocks_wood_tile_up.png^[transformR270"},
sounds = sound_wood, sounds = sound_wood,
@ -76,7 +76,7 @@ local nodes = {
}, },
["wood_tile_right"] = { ["wood_tile_right"] = {
description = S("Rightwards Wooden Tile"), description = S("Rightwards Wooden Tile"),
groups = {snappy=1,choppy=2,oddly_breakable_by_hand=2,flammable=3}, groups = {snappy = 1, choppy = 2, oddly_breakable_by_hand = 2, flammable = 3},
paramtype2 = "facedir", paramtype2 = "facedir",
tiles = {"default_wood.png^[transformR90^moreblocks_wood_tile_up.png^[transformR90"}, tiles = {"default_wood.png^[transformR90^moreblocks_wood_tile_up.png^[transformR90"},
sounds = sound_wood, sounds = sound_wood,
@ -84,34 +84,34 @@ local nodes = {
}, },
["circle_stone_bricks"] = { ["circle_stone_bricks"] = {
description = S("Circle Stone Bricks"), description = S("Circle Stone Bricks"),
groups = {cracky=3}, groups = {cracky = 3},
sounds = sound_stone, sounds = sound_stone,
}, },
["coal_stone_bricks"] = { ["coal_stone_bricks"] = {
description = S("Coal Stone Bricks"), description = S("Coal Stone Bricks"),
groups = {cracky=3}, groups = {cracky = 3},
sounds = sound_stone, sounds = sound_stone,
}, },
["iron_stone_bricks"] = { ["iron_stone_bricks"] = {
description = S("Iron Stone Bricks"), description = S("Iron Stone Bricks"),
groups = {cracky=3}, groups = {cracky = 3},
sounds = sound_stone, sounds = sound_stone,
}, },
["stone_tile"] = { ["stone_tile"] = {
description = S("Stone Tile"), description = S("Stone Tile"),
groups = {cracky=3}, groups = {cracky = 3},
sounds = sound_stone, sounds = sound_stone,
}, },
["split_stone_tile"] = { ["split_stone_tile"] = {
description = S("Split Stone Tile"), description = S("Split Stone Tile"),
tiles = {"moreblocks_split_stone_tile_top.png", tiles = {"moreblocks_split_stone_tile_top.png",
"moreblocks_split_stone_tile.png"}, "moreblocks_split_stone_tile.png"},
groups = {cracky=3}, groups = {cracky = 3},
sounds = sound_stone, sounds = sound_stone,
}, },
["plankstone"] = { ["plankstone"] = {
description = S("Plankstone"), description = S("Plankstone"),
groups = {cracky=3}, groups = {cracky = 3},
tiles = tile_tiles("plankstone"), tiles = tile_tiles("plankstone"),
sounds = sound_stone, sounds = sound_stone,
}, },
@ -120,7 +120,7 @@ local nodes = {
drawtype = "glasslike_framed", drawtype = "glasslike_framed",
paramtype = "light", paramtype = "light",
sunlight_propagates = true, sunlight_propagates = true,
groups = {snappy=2,cracky=3,oddly_breakable_by_hand=3}, groups = {snappy = 2, cracky = 3, oddly_breakable_by_hand = 3},
sounds = sound_glass, sounds = sound_glass,
}, },
["coal_glass"] = { ["coal_glass"] = {
@ -128,7 +128,7 @@ local nodes = {
drawtype = "glasslike_framed", drawtype = "glasslike_framed",
paramtype = "light", paramtype = "light",
sunlight_propagates = true, sunlight_propagates = true,
groups = {snappy=2,cracky=3,oddly_breakable_by_hand=3}, groups = {snappy = 2, cracky = 3, oddly_breakable_by_hand = 3},
sounds = sound_glass, sounds = sound_glass,
}, },
["clean_glass"] = { ["clean_glass"] = {
@ -136,17 +136,17 @@ local nodes = {
drawtype = "glasslike_framed", drawtype = "glasslike_framed",
paramtype = "light", paramtype = "light",
sunlight_propagates = true, sunlight_propagates = true,
groups = {snappy=2,cracky=3,oddly_breakable_by_hand=3}, groups = {snappy = 2, cracky = 3, oddly_breakable_by_hand = 3},
sounds = sound_glass, sounds = sound_glass,
}, },
["cactus_brick"] = { ["cactus_brick"] = {
description = S("Cactus Brick"), description = S("Cactus Brick"),
groups = {cracky=3}, groups = {cracky = 3},
sounds = sound_stone, sounds = sound_stone,
}, },
["cactus_checker"] = { ["cactus_checker"] = {
description = S("Cactus Checker"), description = S("Cactus Checker"),
groups = {cracky=3}, groups = {cracky = 3},
paramtype2 = "facedir", paramtype2 = "facedir",
tiles = {"default_stone.png^moreblocks_cactus_checker.png", tiles = {"default_stone.png^moreblocks_cactus_checker.png",
"default_stone.png^moreblocks_cactus_checker.png", "default_stone.png^moreblocks_cactus_checker.png",
@ -160,18 +160,18 @@ local nodes = {
description = S("Empty Bookshelf"), description = S("Empty Bookshelf"),
tiles = {"default_wood.png", "default_wood.png", tiles = {"default_wood.png", "default_wood.png",
"moreblocks_empty_bookshelf.png"}, "moreblocks_empty_bookshelf.png"},
groups = {snappy=2,choppy=3,oddly_breakable_by_hand=2,flammable=3}, groups = {snappy = 2, choppy = 3, oddly_breakable_by_hand = 2, flammable = 3},
sounds = sound_wood, sounds = sound_wood,
no_stairs = true, no_stairs = true,
}, },
["coal_stone"] = { ["coal_stone"] = {
description = S("Coal Stone"), description = S("Coal Stone"),
groups = {cracky=3}, groups = {cracky = 3},
sounds = sound_stone, sounds = sound_stone,
}, },
["iron_stone"] = { ["iron_stone"] = {
description = S("Iron Stone"), description = S("Iron Stone"),
groups = {cracky=3}, groups = {cracky = 3},
sounds = sound_stone, sounds = sound_stone,
}, },
["coal_checker"] = { ["coal_checker"] = {
@ -183,7 +183,7 @@ local nodes = {
"default_stone.png^moreblocks_coal_checker.png^[transformR90", "default_stone.png^moreblocks_coal_checker.png^[transformR90",
"default_stone.png^moreblocks_coal_checker.png^[transformR90"}, "default_stone.png^moreblocks_coal_checker.png^[transformR90"},
paramtype2 = "facedir", paramtype2 = "facedir",
groups = {cracky=3}, groups = {cracky = 3},
sounds = sound_stone, sounds = sound_stone,
}, },
["iron_checker"] = { ["iron_checker"] = {
@ -195,13 +195,13 @@ local nodes = {
"default_stone.png^moreblocks_iron_checker.png^[transformR90", "default_stone.png^moreblocks_iron_checker.png^[transformR90",
"default_stone.png^moreblocks_iron_checker.png^[transformR90"}, "default_stone.png^moreblocks_iron_checker.png^[transformR90"},
paramtype2 = "facedir", paramtype2 = "facedir",
groups = {cracky=3}, groups = {cracky = 3},
sounds = sound_stone, sounds = sound_stone,
}, },
["trap_stone"] = { ["trap_stone"] = {
description = S("Trap Stone"), description = S("Trap Stone"),
walkable = false, walkable = false,
groups = {cracky=3}, groups = {cracky = 3},
sounds = sound_stone, sounds = sound_stone,
no_stairs = true, no_stairs = true,
}, },
@ -211,7 +211,7 @@ local nodes = {
paramtype = "light", paramtype = "light",
sunlight_propagates = true, sunlight_propagates = true,
walkable = false, walkable = false,
groups = {snappy=2,cracky=3,oddly_breakable_by_hand=3}, groups = {snappy = 2, cracky = 3, oddly_breakable_by_hand = 3},
sounds = sound_glass, sounds = sound_glass,
no_stairs = true, no_stairs = true,
}, },
@ -226,21 +226,21 @@ local nodes = {
type = "fixed", type = "fixed",
fixed = {-1/7, -1/2, -1/7, 1/7, 1/2, 1/7}, fixed = {-1/7, -1/2, -1/7, 1/7, 1/2, 1/7},
}, },
groups = {snappy=2,choppy=2,oddly_breakable_by_hand=2,flammable=2}, groups = {snappy = 2, choppy = 2, oddly_breakable_by_hand = 2, flammable = 2},
sounds = sound_wood, sounds = sound_wood,
no_stairs = true, no_stairs = true,
}, },
["all_faces_tree"] = { ["all_faces_tree"] = {
description = S("All-faces Tree"), description = S("All-faces Tree"),
tiles = {"default_tree_top.png"}, tiles = {"default_tree_top.png"},
groups = {tree=1,snappy=1,choppy=2,oddly_breakable_by_hand=1,flammable=2}, groups = {tree = 1,snappy = 1, choppy = 2, oddly_breakable_by_hand = 1, flammable = 2},
sounds = sound_wood, sounds = sound_wood,
furnace_burntime = 30, furnace_burntime = 30,
}, },
["all_faces_jungle_tree"] = { ["all_faces_jungle_tree"] = {
description = S("All-faces Jungle Tree"), description = S("All-faces Jungle Tree"),
tiles = {"default_jungletree_top.png"}, tiles = {"default_jungletree_top.png"},
groups = {tree=1,snappy=1,choppy=2,oddly_breakable_by_hand=1,flammable=2}, groups = {tree = 1,snappy = 1, choppy = 2, oddly_breakable_by_hand = 1, flammable = 2},
sounds = sound_wood, sounds = sound_wood,
furnace_burntime = 30, furnace_burntime = 30,
}, },
@ -250,7 +250,7 @@ local nodes = {
paramtype = "light", paramtype = "light",
sunlight_propagates = true, sunlight_propagates = true,
light_source = 11, light_source = 11,
groups = {snappy=2,cracky=3,oddly_breakable_by_hand=3}, groups = {snappy = 2, cracky = 3, oddly_breakable_by_hand = 3},
sounds = sound_glass, sounds = sound_glass,
}, },
["trap_glow_glass"] = { ["trap_glow_glass"] = {
@ -260,7 +260,7 @@ local nodes = {
sunlight_propagates = true, sunlight_propagates = true,
light_source = 11, light_source = 11,
walkable = false, walkable = false,
groups = {snappy=2,cracky=3,oddly_breakable_by_hand=3}, groups = {snappy = 2, cracky = 3, oddly_breakable_by_hand = 3},
sounds = sound_glass, sounds = sound_glass,
no_stairs = true, no_stairs = true,
}, },
@ -270,7 +270,7 @@ local nodes = {
paramtype = "light", paramtype = "light",
sunlight_propagates = true, sunlight_propagates = true,
light_source = 15, light_source = 15,
groups = {snappy=2,cracky=3,oddly_breakable_by_hand=3}, groups = {snappy = 2, cracky = 3, oddly_breakable_by_hand = 3},
sounds = sound_glass, sounds = sound_glass,
}, },
["trap_super_glow_glass"] = { ["trap_super_glow_glass"] = {
@ -280,7 +280,7 @@ local nodes = {
sunlight_propagates = true, sunlight_propagates = true,
light_source = 15, light_source = 15,
walkable = false, walkable = false,
groups = {snappy=2,cracky=3,oddly_breakable_by_hand=3}, groups = {snappy = 2, cracky = 3, oddly_breakable_by_hand = 3},
sounds = sound_glass, sounds = sound_glass,
no_stairs = true, no_stairs = true,
}, },
@ -330,7 +330,7 @@ minetest.register_craftitem("moreblocks:sweeper", {
minetest.register_craftitem("moreblocks:jungle_stick", { minetest.register_craftitem("moreblocks:jungle_stick", {
description = S("Jungle Stick"), description = S("Jungle Stick"),
inventory_image = "moreblocks_junglestick.png", inventory_image = "moreblocks_junglestick.png",
groups = {stick=1}, groups = {stick= 1},
}) })
minetest.register_craftitem("moreblocks:nothing", { minetest.register_craftitem("moreblocks:nothing", {