aboutsummaryrefslogtreecommitdiff
path: root/data/mods
diff options
context:
space:
mode:
authorPerttu Ahola <celeron55@gmail.com>2011-12-04 00:22:34 +0200
committerPerttu Ahola <celeron55@gmail.com>2011-12-04 00:22:34 +0200
commit8addbc9655f60e0a2673e8df83ebb0d78e2a6aec (patch)
treee799829cde69f67e8f6371a105949faeac982eb8 /data/mods
parent658d1a72351e178282f2a09f30f05050ac89e862 (diff)
downloadminetest-8addbc9655f60e0a2673e8df83ebb0d78e2a6aec.tar.gz
minetest-8addbc9655f60e0a2673e8df83ebb0d78e2a6aec.tar.bz2
minetest-8addbc9655f60e0a2673e8df83ebb0d78e2a6aec.zip
Tool aliases
Diffstat (limited to 'data/mods')
-rw-r--r--data/mods/default/init.lua2
-rw-r--r--data/mods/legacy/init.lua14
2 files changed, 16 insertions, 0 deletions
diff --git a/data/mods/default/init.lua b/data/mods/default/init.lua
index c69d26454..003a02323 100644
--- a/data/mods/default/init.lua
+++ b/data/mods/default/init.lua
@@ -92,6 +92,8 @@
-- minetest.register_craftitem(name, craftitem definition)
-- minetest.register_craft(recipe)
-- minetest.register_abm(abm definition)
+-- minetest.alias_node(name, convert_to)
+-- minetest.alias_tool(name, convert_to)
-- minetest.register_globalstep(func(dtime))
-- minetest.register_on_placenode(func(pos, newnode, placer))
-- minetest.register_on_dignode(func(pos, oldnode, digger))
diff --git a/data/mods/legacy/init.lua b/data/mods/legacy/init.lua
index a51931e41..6bd5526e5 100644
--- a/data/mods/legacy/init.lua
+++ b/data/mods/legacy/init.lua
@@ -40,6 +40,20 @@ minetest.alias_node("nyancat_rainbow", "default:nyancat_rainbow")
minetest.alias_node("sapling", "default:sapling")
minetest.alias_node("apple", "default:apple")
+minetest.alias_tool("WPick", "default:pick_wood")
+minetest.alias_tool("STPick", "default:pick_stone")
+minetest.alias_tool("SteelPick", "default:pick_steel")
+minetest.alias_tool("MesePick", "default:pick_mese")
+minetest.alias_tool("WShovel", "default:shovel_wood")
+minetest.alias_tool("STShovel", "default:shovel_stone")
+minetest.alias_tool("SteelShovel", "default:shovel_steel")
+minetest.alias_tool("WAxe", "default:axe_wood")
+minetest.alias_tool("STAxe", "default:axe_stone")
+minetest.alias_tool("SteelAxe", "default:axe_steel")
+minetest.alias_tool("WSword", "default:sword_wood")
+minetest.alias_tool("STSword", "default:sword_stone")
+minetest.alias_tool("SteelSword", "default:sword_steel")
+
--[[
WATER_ALPHA = 160
WATER_VISC = 1