summaryrefslogtreecommitdiff
path: root/games/minimal/mods/default/init.lua
diff options
context:
space:
mode:
authorparamat <mat.gregory@virginmedia.com>2015-06-07 05:36:40 +0100
committerparamat <mat.gregory@virginmedia.com>2015-06-09 00:47:03 +0100
commite4817454338d43b853a52ce757b69df122e864c1 (patch)
tree3a61fdbf27b20b8ca25ba8e41fbfc77748f275b2 /games/minimal/mods/default/init.lua
parent8383a61eac5b4702040000c7ae62895254dda40e (diff)
downloadminetest-e4817454338d43b853a52ce757b69df122e864c1.tar.gz
minetest-e4817454338d43b853a52ce757b69df122e864c1.tar.bz2
minetest-e4817454338d43b853a52ce757b69df122e864c1.zip
Minimal: Edit mapgen aliases. Use blob ore for clay, update other ores. Update simple biomes. Cleanup code
Diffstat (limited to 'games/minimal/mods/default/init.lua')
-rw-r--r--games/minimal/mods/default/init.lua36
1 files changed, 11 insertions, 25 deletions
diff --git a/games/minimal/mods/default/init.lua b/games/minimal/mods/default/init.lua
index 01bf65b95..7b5869bc0 100644
--- a/games/minimal/mods/default/init.lua
+++ b/games/minimal/mods/default/init.lua
@@ -452,9 +452,7 @@ minetest.register_craft({
}
})
---
--- Crafting (tool repair)
---
+-- Tool repair
minetest.register_craft({
type = "toolrepair",
additional_wear = -0.02,
@@ -707,7 +705,7 @@ function default.node_sound_glass_defaults(table)
return table
end
---
+-- Register nodes
minetest.register_node("default:stone", {
description = "Stone",
@@ -1496,6 +1494,9 @@ minetest.register_node("default:apple", {
sounds = default.node_sound_defaults(),
})
+--
+-- Grow tree function
+--
local c_air = minetest.get_content_id("air")
local c_ignore = minetest.get_content_id("ignore")
@@ -1568,6 +1569,10 @@ function default.grow_tree(data, a, pos, is_apple_tree, seed)
end
end
+--
+-- ABMs
+--
+
minetest.register_abm({
nodenames = {"default:sapling"},
interval = 10,
@@ -1674,29 +1679,9 @@ minetest.register_craftitem("default:scorched_stuff", {
})
--
--- Aliases for the current map generator outputs
+-- Support old code
--
-minetest.register_alias("mapgen_air", "air")
-minetest.register_alias("mapgen_stone", "default:stone")
-minetest.register_alias("mapgen_tree", "default:tree")
-minetest.register_alias("mapgen_leaves", "default:leaves")
-minetest.register_alias("mapgen_apple", "default:apple")
-minetest.register_alias("mapgen_water_source", "default:water_source")
-minetest.register_alias("mapgen_dirt", "default:dirt")
-minetest.register_alias("mapgen_sand", "default:sand")
-minetest.register_alias("mapgen_gravel", "default:gravel")
-minetest.register_alias("mapgen_clay", "default:clay")
-minetest.register_alias("mapgen_lava_source", "default:lava_source")
-minetest.register_alias("mapgen_cobble", "default:cobble")
-minetest.register_alias("mapgen_mossycobble", "default:mossycobble")
-minetest.register_alias("mapgen_dirt_with_grass", "default:dirt_with_grass")
-minetest.register_alias("mapgen_junglegrass", "default:junglegrass")
-minetest.register_alias("mapgen_stone_with_coal", "default:stone_with_coal")
-minetest.register_alias("mapgen_stone_with_iron", "default:stone_with_iron")
-minetest.register_alias("mapgen_mese", "default:mese")
-
--- Support old code
function default.spawn_falling_node(p, nodename)
spawn_falling_node(p, nodename)
end
@@ -1795,3 +1780,4 @@ test_get_craft_result()
--dump2(minetest.registered_entities)
-- END
+