2013-07-11 20:33:02 +02:00
|
|
|
-- Aliases (some of them are about the default mod, some about moreblocks)
|
|
|
|
|
|
|
|
-- Additional default aliases
|
|
|
|
|
|
|
|
minetest.register_alias("woodpick", "default:pick_wood")
|
|
|
|
minetest.register_alias("woodenpick", "default:pick_wood")
|
|
|
|
minetest.register_alias("stonepick", "default:pick_stone")
|
|
|
|
minetest.register_alias("steelpick", "default:pick_steel")
|
|
|
|
minetest.register_alias("ironpick", "default:pick_steel")
|
|
|
|
minetest.register_alias("mesepick", "default:pick_mese")
|
|
|
|
|
|
|
|
minetest.register_alias("woodaxe", "default:axe_wood")
|
|
|
|
minetest.register_alias("woodenaxe", "default:axe_wood")
|
|
|
|
minetest.register_alias("stoneaxe", "default:axe_stone")
|
|
|
|
minetest.register_alias("steelaxe", "default:axe_steel")
|
|
|
|
minetest.register_alias("ironaxe", "default:axe_steel")
|
|
|
|
|
|
|
|
minetest.register_alias("woodshovel", "default:shovel_wood")
|
|
|
|
minetest.register_alias("woodenshovel", "default:shovel_wood")
|
|
|
|
minetest.register_alias("stoneshovel", "default:shovel_stone")
|
|
|
|
minetest.register_alias("steelshovel", "default:shovel_steel")
|
|
|
|
minetest.register_alias("ironshovel", "default:shovel_steel")
|
|
|
|
|
|
|
|
minetest.register_alias("woodsword", "default:sword_wood")
|
|
|
|
minetest.register_alias("woodensword", "default:sword_wood")
|
|
|
|
minetest.register_alias("stonesword", "default:sword_stone")
|
|
|
|
minetest.register_alias("steelsword", "default:sword_steel")
|
|
|
|
minetest.register_alias("ironsword", "default:sword_steel")
|
|
|
|
|
|
|
|
minetest.register_alias("grass", "default:dirt_with_grass")
|
|
|
|
minetest.register_alias("grassblock", "default:dirt_with_grass")
|
|
|
|
minetest.register_alias("grass_block", "default:dirt_with_grass")
|
|
|
|
|
|
|
|
minetest.register_alias("grassfootsteps", "default:dirt_with_grass_footsteps")
|
|
|
|
minetest.register_alias("grass_footsteps", "default:dirt_with_grass_footsteps")
|
|
|
|
|
|
|
|
minetest.register_alias("jungle_tree", "default:jungletree")
|
|
|
|
|
|
|
|
minetest.register_alias("stick", "default:stick")
|
|
|
|
minetest.register_alias("sign", "default:sign_wall")
|
|
|
|
minetest.register_alias("fence", "default:fence_wood")
|
|
|
|
minetest.register_alias("coal", "default:coal_lump")
|
|
|
|
minetest.register_alias("iron", "default:iron_lump")
|
|
|
|
minetest.register_alias("clay", "default:clay_lump")
|
|
|
|
minetest.register_alias("steel", "default:steel_ingot")
|
|
|
|
minetest.register_alias("steel_block", "default:steelblock")
|
|
|
|
|
|
|
|
minetest.register_alias("stonebrick", "default:stonebrick")
|
|
|
|
minetest.register_alias("stonebricks", "default:stonebrick")
|
|
|
|
minetest.register_alias("stone_brick", "default:stonebrick")
|
|
|
|
minetest.register_alias("stone_bricks", "default:stonebrick")
|
|
|
|
|
2013-10-27 09:57:21 +01:00
|
|
|
minetest.register_alias("screwdriver", "screwdriver:screwdriver")
|
|
|
|
minetest.register_alias("screw_driver", "screwdriver:screw_driver")
|
|
|
|
minetest.register_alias("screwdrive", "screwdriver:screw_driver")
|
|
|
|
minetest.register_alias("screw_drive", "screwdriver:screw_driver")
|
|
|
|
minetest.register_alias("sd", "screwdriver:screw_driver")
|
|
|
|
|
2013-07-11 20:33:02 +02:00
|
|
|
|
|
|
|
minetest.register_alias("obsidian", "default:obsidian")
|
|
|
|
minetest.register_alias("obsidianglass", "default:obsidian_glass")
|
|
|
|
minetest.register_alias("obsidian_glass", "default:obsidian_glass")
|
|
|
|
|
|
|
|
-- More Blocks aliases
|
|
|
|
|
|
|
|
minetest.register_alias("circlestonebrick", "moreblocks:circle_stone_bricks")
|
|
|
|
minetest.register_alias("circlestonebricks", "moreblocks:circle_stone_bricks")
|
|
|
|
minetest.register_alias("circlestone_brick", "moreblocks:circle_stone_bricks")
|
|
|
|
minetest.register_alias("circlestone_bricks", "moreblocks:circle_stone_bricks")
|
|
|
|
minetest.register_alias("circle_stonebrick", "moreblocks:circle_stone_bricks")
|
|
|
|
minetest.register_alias("circle_stonebricks", "moreblocks:circle_stone_bricks")
|
|
|
|
minetest.register_alias("circle_stone_brick", "moreblocks:circle_stone_bricks")
|
|
|
|
minetest.register_alias("circle_stone_bricks", "moreblocks:circle_stone_bricks")
|
|
|
|
|
2013-10-27 09:57:21 +01:00
|
|
|
minetest.register_alias("sweeper", "moreblocks:sweeper")
|
|
|
|
minetest.register_alias("circularsaw", "moreblocks:circular_saw")
|
|
|
|
minetest.register_alias("circular_saw", "moreblocks:circular_saw")
|
|
|
|
minetest.register_alias("cs", "moreblocks:circular_saw")
|
|
|
|
|
|
|
|
minetest.register_alias("sweep", "moreblocks:sweeper")
|
|
|
|
minetest.register_alias("junglestick", "moreblocks:jungle_stick")
|
|
|
|
minetest.register_alias("jungle_stick", "moreblocks:jungle_stick")
|
|
|
|
|
2013-07-11 20:33:02 +02:00
|
|
|
minetest.register_alias("stonesquare", "moreblocks:stone_tile")
|
|
|
|
minetest.register_alias("stonesquares", "moreblocks:stone_tile")
|
|
|
|
minetest.register_alias("stone_square", "moreblocks:stone_tile")
|
|
|
|
minetest.register_alias("stone_squares", "moreblocks:stone_tile")
|
|
|
|
minetest.register_alias("stonetile", "moreblocks:stone_tile")
|
|
|
|
minetest.register_alias("stonetiles", "moreblocks:stone_tile")
|
|
|
|
minetest.register_alias("stone_tile", "moreblocks:stone_tile")
|
|
|
|
minetest.register_alias("stone_tiles", "moreblocks:stone_tile")
|
|
|
|
|
|
|
|
minetest.register_alias("splitstonesquare", "moreblocks:split_stone_tile")
|
|
|
|
minetest.register_alias("splitstonesquares", "moreblocks:split_stone_tile")
|
|
|
|
minetest.register_alias("split_stone_square", "moreblocks:split_stone_tile")
|
|
|
|
minetest.register_alias("split_stone_squares", "moreblocks:split_stone_tile")
|
|
|
|
minetest.register_alias("split_stonesquare", "moreblocks:split_stone_tile")
|
|
|
|
minetest.register_alias("split_stonesquares", "moreblocks:split_stone_tile")
|
|
|
|
|
|
|
|
minetest.register_alias("coalstone", "moreblocks:coal_stone")
|
|
|
|
minetest.register_alias("coal_stone", "moreblocks:coal_stone")
|
|
|
|
|
|
|
|
minetest.register_alias("ironstone", "moreblocks:iron_stone")
|
|
|
|
minetest.register_alias("iron_stone", "moreblocks:iron_stone")
|
|
|
|
|
|
|
|
minetest.register_alias("coalglass", "moreblocks:coal_glass")
|
|
|
|
minetest.register_alias("coal_glass", "moreblocks:coal_glass")
|
|
|
|
|
|
|
|
minetest.register_alias("ironglass", "moreblocks:iron_glass")
|
|
|
|
minetest.register_alias("iron_glass", "moreblocks:iron_glass")
|
|
|
|
|
|
|
|
minetest.register_alias("glowglass", "moreblocks:glow_glass")
|
|
|
|
minetest.register_alias("glow_glass", "moreblocks:glow_glass")
|
|
|
|
|
|
|
|
minetest.register_alias("superglowglass", "moreblocks:super_glow_glass")
|
|
|
|
minetest.register_alias("super_glowglass", "moreblocks:super_glow_glass")
|
|
|
|
minetest.register_alias("super_glow_glass", "moreblocks:super_glow_glass")
|
|
|
|
|
|
|
|
minetest.register_alias("plankstone", "moreblocks:plankstone")
|
|
|
|
|
|
|
|
minetest.register_alias("cactusbrick", "moreblocks:cactus_brick")
|
|
|
|
minetest.register_alias("cactus_brick", "moreblocks:cactus_brick")
|
|
|
|
|
|
|
|
minetest.register_alias("cactuschecker", "moreblocks:cactus_checker")
|
|
|
|
minetest.register_alias("cactus_checker", "moreblocks:cactus_checker")
|
|
|
|
|
|
|
|
minetest.register_alias("coalchecker", "moreblocks:coal_checker")
|
|
|
|
minetest.register_alias("coal_checker", "moreblocks:coal_checker")
|
|
|
|
|
|
|
|
minetest.register_alias("ironchecker", "moreblocks:iron_checker")
|
|
|
|
minetest.register_alias("iron_checker", "moreblocks:iron_checker")
|
|
|
|
|
|
|
|
minetest.register_alias("woodtile", "moreblocks:wood_tile")
|
|
|
|
minetest.register_alias("woodentile", "moreblocks:wood_tile")
|
|
|
|
minetest.register_alias("wood_tile", "moreblocks:wood_tile")
|
|
|
|
minetest.register_alias("wooden_tile", "moreblocks:wood_tile")
|
|
|
|
|
|
|
|
minetest.register_alias("woodtile_full", "moreblocks:wood_tile_full")
|
|
|
|
minetest.register_alias("woodentile_full", "moreblocks:wood_tile_full")
|
|
|
|
minetest.register_alias("wood_tile_full", "moreblocks:wood_tile_full")
|
|
|
|
minetest.register_alias("wooden_tile_full", "moreblocks:wood_tile_full")
|
|
|
|
minetest.register_alias("full_woodtile", "moreblocks:wood_tile_full")
|
|
|
|
minetest.register_alias("full_woodentile", "moreblocks:wood_tile_full")
|
|
|
|
minetest.register_alias("full_wood_tile", "moreblocks:wood_tile_full")
|
|
|
|
minetest.register_alias("full_wooden_tile", "moreblocks:wood_tile_full")
|
|
|
|
|
|
|
|
-- Old block/item replacement
|
|
|
|
|
|
|
|
minetest.register_alias("moreblocks:oerkkiblock", "default:mossycobble")
|
|
|
|
minetest.register_alias("moreblocks:screwdriver", "screwdriver:screwdriver")
|
|
|
|
|
|
|
|
-- Node and item renaming
|
|
|
|
|
|
|
|
minetest.register_alias("moreblocks:stone_bricks", "default:stonebrick")
|
|
|
|
minetest.register_alias("moreblocks:stonebrick", "default:stonebrick")
|
|
|
|
minetest.register_alias("moreblocks:junglewood", "default:junglewood")
|
|
|
|
minetest.register_alias("moreblocks:jungle_wood", "default:junglewood")
|
|
|
|
|
|
|
|
minetest.register_alias("moreblocks:horizontaltree", "moreblocks:horizontal_tree")
|
|
|
|
minetest.register_alias("moreblocks:horizontaljungletree", "moreblocks:horizontal_jungle_tree")
|
|
|
|
minetest.register_alias("moreblocks:stonesquare", "moreblocks:stone_tile")
|
|
|
|
minetest.register_alias("moreblocks:circlestonebrick", "moreblocks:circle_stone_bricks")
|
|
|
|
minetest.register_alias("moreblocks:ironstonebrick", "moreblocks:iron_stone_bricks")
|
|
|
|
minetest.register_alias("moreblocks:fence_junglewood", "moreblocks:fence_jungle_wood")
|
|
|
|
minetest.register_alias("moreblocks:coalstone", "moreblocks:coal_stone")
|
|
|
|
minetest.register_alias("moreblocks:ironstone", "moreblocks:iron_stone")
|
|
|
|
minetest.register_alias("moreblocks:woodtile", "moreblocks:wood_tile")
|
|
|
|
minetest.register_alias("moreblocks:woodtile_full", "moreblocks:wood_tile_full")
|
|
|
|
minetest.register_alias("moreblocks:woodtile_centered", "moreblocks:wood_tile_centered")
|
|
|
|
minetest.register_alias("moreblocks:woodtile_up", "moreblocks:wood_tile_up")
|
|
|
|
minetest.register_alias("moreblocks:woodtile_down", "moreblocks:wood_tile_down")
|
|
|
|
minetest.register_alias("moreblocks:woodtile_left", "moreblocks:wood_tile_left")
|
|
|
|
minetest.register_alias("moreblocks:woodtile_right", "moreblocks:wood_tile_right")
|
|
|
|
minetest.register_alias("moreblocks:coalglass", "moreblocks:coal_glass")
|
|
|
|
minetest.register_alias("moreblocks:ironglass", "moreblocks:iron_glass")
|
|
|
|
minetest.register_alias("moreblocks:glowglass", "moreblocks:glow_glass")
|
|
|
|
minetest.register_alias("moreblocks:superglowglass", "moreblocks:super_glow_glass")
|
|
|
|
minetest.register_alias("moreblocks:trapglass", "moreblocks:trap_glass")
|
|
|
|
minetest.register_alias("moreblocks:trapstone", "moreblocks:trap_stone")
|
|
|
|
minetest.register_alias("moreblocks:cactuschecker", "moreblocks:cactus_checker")
|
|
|
|
minetest.register_alias("moreblocks:coalchecker", "moreblocks:coal_checker")
|
|
|
|
minetest.register_alias("moreblocks:ironchecker", "moreblocks:iron_checker")
|
|
|
|
minetest.register_alias("moreblocks:cactusbrick", "moreblocks:cactus_brick")
|
|
|
|
minetest.register_alias("moreblocks:cleanglass", "moreblocks:clean_glass")
|
|
|
|
minetest.register_alias("moreblocks:emptybookshelf", "moreblocks:empty_bookshelf")
|
|
|
|
minetest.register_alias("moreblocks:junglestick", "moreblocks:jungle_stick")
|
|
|
|
minetest.register_alias("moreblocks:splitstonesquare","moreblocks:split_stone_tile")
|
|
|
|
minetest.register_alias("moreblocks:allfacestree","moreblocks:all_faces_tree")
|
2013-12-27 17:00:45 +01:00
|
|
|
|
|
|
|
--Abm for Horizontal_tree (fix facedir)
|
|
|
|
|
|
|
|
minetest.register_abm({
|
|
|
|
nodenames = {"moreblocks:horizontal_tree","moreblocks:horizontal_jungle_tree"},
|
|
|
|
interval = 1,
|
|
|
|
chance = 1,
|
|
|
|
action = function(pos, node)
|
|
|
|
local convert_facedir={7,12,9,18}
|
|
|
|
if node.name=="moreblocks:horizontal_tree" then
|
|
|
|
node.name="default:tree"
|
|
|
|
else
|
|
|
|
node.name="default:jungletree"
|
|
|
|
end
|
|
|
|
minetest.set_node(pos, {name=node.name,param2=convert_facedir[node.param2+1]})
|
|
|
|
end,
|
|
|
|
})
|
|
|
|
|