Remove legacy, move aliases to default
authorBlockMen <nmuelll@web.de>
Wed, 16 Apr 2014 16:16:02 +0000 (18:16 +0200)
committerBlockMen <nmuelll@web.de>
Sat, 5 Jul 2014 14:02:01 +0000 (16:02 +0200)
12 files changed:
mods/default/aliases.lua [new file with mode: 0644]
mods/default/init.lua
mods/legacy/depends.txt [deleted file]
mods/legacy/init.lua [deleted file]
mods/legacy/textures/apple_iron.png [deleted file]
mods/legacy/textures/cooked_rat.png [deleted file]
mods/legacy/textures/dungeon_master.png [deleted file]
mods/legacy/textures/fireball.png [deleted file]
mods/legacy/textures/firefly.png [deleted file]
mods/legacy/textures/oerkki1.png [deleted file]
mods/legacy/textures/oerkki1_damaged.png [deleted file]
mods/legacy/textures/rat.png [deleted file]

diff --git a/mods/default/aliases.lua b/mods/default/aliases.lua
new file mode 100644 (file)
index 0000000..eadb2a3
--- /dev/null
@@ -0,0 +1,68 @@
+-- aliases (Minetest 0.4 mod)
+-- Provides alias for most default items
+
+minetest.register_alias("stone", "default:stone")
+minetest.register_alias("stone_with_coal", "default:stone_with_coal")
+minetest.register_alias("stone_with_iron", "default:stone_with_iron")
+minetest.register_alias("dirt_with_grass", "default:dirt_with_grass")
+minetest.register_alias("dirt_with_grass_footsteps", "default:dirt_with_grass_footsteps")
+minetest.register_alias("dirt", "default:dirt")
+minetest.register_alias("sand", "default:sand")
+minetest.register_alias("gravel", "default:gravel")
+minetest.register_alias("sandstone", "default:sandstone")
+minetest.register_alias("clay", "default:clay")
+minetest.register_alias("brick", "default:brick")
+minetest.register_alias("tree", "default:tree")
+minetest.register_alias("jungletree", "default:jungletree")
+minetest.register_alias("junglegrass", "default:junglegrass")
+minetest.register_alias("leaves", "default:leaves")
+minetest.register_alias("cactus", "default:cactus")
+minetest.register_alias("papyrus", "default:papyrus")
+minetest.register_alias("bookshelf", "default:bookshelf")
+minetest.register_alias("glass", "default:glass")
+minetest.register_alias("wooden_fence", "default:fence_wood")
+minetest.register_alias("rail", "default:rail")
+minetest.register_alias("ladder", "default:ladder")
+minetest.register_alias("wood", "default:wood")
+minetest.register_alias("mese", "default:mese")
+minetest.register_alias("cloud", "default:cloud")
+minetest.register_alias("water_flowing", "default:water_flowing")
+minetest.register_alias("water_source", "default:water_source")
+minetest.register_alias("lava_flowing", "default:lava_flowing")
+minetest.register_alias("lava_source", "default:lava_source")
+minetest.register_alias("torch", "default:torch")
+minetest.register_alias("sign_wall", "default:sign_wall")
+minetest.register_alias("furnace", "default:furnace")
+minetest.register_alias("chest", "default:chest")
+minetest.register_alias("locked_chest", "default:chest_locked")
+minetest.register_alias("cobble", "default:cobble")
+minetest.register_alias("mossycobble", "default:mossycobble")
+minetest.register_alias("steelblock", "default:steelblock")
+minetest.register_alias("nyancat", "default:nyancat")
+minetest.register_alias("nyancat_rainbow", "default:nyancat_rainbow")
+minetest.register_alias("sapling", "default:sapling")
+minetest.register_alias("apple", "default:apple")
+
+minetest.register_alias("WPick", "default:pick_wood")
+minetest.register_alias("STPick", "default:pick_stone")
+minetest.register_alias("SteelPick", "default:pick_steel")
+minetest.register_alias("MesePick", "default:pick_mese")
+minetest.register_alias("WShovel", "default:shovel_wood")
+minetest.register_alias("STShovel", "default:shovel_stone")
+minetest.register_alias("SteelShovel", "default:shovel_steel")
+minetest.register_alias("WAxe", "default:axe_wood")
+minetest.register_alias("STAxe", "default:axe_stone")
+minetest.register_alias("SteelAxe", "default:axe_steel")
+minetest.register_alias("WSword", "default:sword_wood")
+minetest.register_alias("STSword", "default:sword_stone")
+minetest.register_alias("SteelSword", "default:sword_steel")
+
+minetest.register_alias("Stick", "default:stick")
+minetest.register_alias("paper", "default:paper")
+minetest.register_alias("book", "default:book")
+minetest.register_alias("lump_of_coal", "default:coal_lump")
+minetest.register_alias("lump_of_iron", "default:iron_lump")
+minetest.register_alias("lump_of_clay", "default:clay_lump")
+minetest.register_alias("steel_ingot", "default:steel_ingot")
+minetest.register_alias("clay_brick", "default:clay_brick")
+minetest.register_alias("scorched_stuff", "default:scorched_stuff")
index dbddd2001fc505278f9ccb5be6bc575d8834f5ef..82e558dedaedb57af12a513c4d5fed3dc2f127db 100644 (file)
@@ -44,3 +44,4 @@ dofile(minetest.get_modpath("default").."/crafting.lua")
 dofile(minetest.get_modpath("default").."/mapgen.lua")
 dofile(minetest.get_modpath("default").."/player.lua")
 dofile(minetest.get_modpath("default").."/trees.lua")
+dofile(minetest.get_modpath("default").."/aliases.lua")
diff --git a/mods/legacy/depends.txt b/mods/legacy/depends.txt
deleted file mode 100644 (file)
index 3a7daa1..0000000
+++ /dev/null
@@ -1,2 +0,0 @@
-default
-
diff --git a/mods/legacy/init.lua b/mods/legacy/init.lua
deleted file mode 100644 (file)
index 1cb99ef..0000000
+++ /dev/null
@@ -1,107 +0,0 @@
--- legacy (Minetest 0.4 mod)
--- Provides as much backwards-compatibility as feasible
-
---
--- Aliases to support loading 0.3 and old 0.4 worlds and inventories
---
-
-minetest.register_alias("stone", "default:stone")
-minetest.register_alias("stone_with_coal", "default:stone_with_coal")
-minetest.register_alias("stone_with_iron", "default:stone_with_iron")
-minetest.register_alias("dirt_with_grass", "default:dirt_with_grass")
-minetest.register_alias("dirt_with_grass_footsteps", "default:dirt_with_grass_footsteps")
-minetest.register_alias("dirt", "default:dirt")
-minetest.register_alias("sand", "default:sand")
-minetest.register_alias("gravel", "default:gravel")
-minetest.register_alias("sandstone", "default:sandstone")
-minetest.register_alias("clay", "default:clay")
-minetest.register_alias("brick", "default:brick")
-minetest.register_alias("tree", "default:tree")
-minetest.register_alias("jungletree", "default:jungletree")
-minetest.register_alias("junglegrass", "default:junglegrass")
-minetest.register_alias("leaves", "default:leaves")
-minetest.register_alias("cactus", "default:cactus")
-minetest.register_alias("papyrus", "default:papyrus")
-minetest.register_alias("bookshelf", "default:bookshelf")
-minetest.register_alias("glass", "default:glass")
-minetest.register_alias("wooden_fence", "default:fence_wood")
-minetest.register_alias("rail", "default:rail")
-minetest.register_alias("ladder", "default:ladder")
-minetest.register_alias("wood", "default:wood")
-minetest.register_alias("mese", "default:mese")
-minetest.register_alias("cloud", "default:cloud")
-minetest.register_alias("water_flowing", "default:water_flowing")
-minetest.register_alias("water_source", "default:water_source")
-minetest.register_alias("lava_flowing", "default:lava_flowing")
-minetest.register_alias("lava_source", "default:lava_source")
-minetest.register_alias("torch", "default:torch")
-minetest.register_alias("sign_wall", "default:sign_wall")
-minetest.register_alias("furnace", "default:furnace")
-minetest.register_alias("chest", "default:chest")
-minetest.register_alias("locked_chest", "default:chest_locked")
-minetest.register_alias("cobble", "default:cobble")
-minetest.register_alias("mossycobble", "default:mossycobble")
-minetest.register_alias("steelblock", "default:steelblock")
-minetest.register_alias("nyancat", "default:nyancat")
-minetest.register_alias("nyancat_rainbow", "default:nyancat_rainbow")
-minetest.register_alias("sapling", "default:sapling")
-minetest.register_alias("apple", "default:apple")
-
-minetest.register_alias("WPick", "default:pick_wood")
-minetest.register_alias("STPick", "default:pick_stone")
-minetest.register_alias("SteelPick", "default:pick_steel")
-minetest.register_alias("MesePick", "default:pick_mese")
-minetest.register_alias("WShovel", "default:shovel_wood")
-minetest.register_alias("STShovel", "default:shovel_stone")
-minetest.register_alias("SteelShovel", "default:shovel_steel")
-minetest.register_alias("WAxe", "default:axe_wood")
-minetest.register_alias("STAxe", "default:axe_stone")
-minetest.register_alias("SteelAxe", "default:axe_steel")
-minetest.register_alias("WSword", "default:sword_wood")
-minetest.register_alias("STSword", "default:sword_stone")
-minetest.register_alias("SteelSword", "default:sword_steel")
-
-minetest.register_alias("Stick", "default:stick")
-minetest.register_alias("paper", "default:paper")
-minetest.register_alias("book", "default:book")
-minetest.register_alias("lump_of_coal", "default:coal_lump")
-minetest.register_alias("lump_of_iron", "default:iron_lump")
-minetest.register_alias("lump_of_clay", "default:clay_lump")
-minetest.register_alias("steel_ingot", "default:steel_ingot")
-minetest.register_alias("clay_brick", "default:clay_brick")
-minetest.register_alias("scorched_stuff", "default:scorched_stuff")
-
---
--- Old items
---
-
-minetest.register_craftitem(":rat", {
-       description = "Rat",
-       inventory_image = "rat.png",
-})
-
-minetest.register_craftitem(":cooked_rat", {
-       description = "Cooked rat",
-       inventory_image = "cooked_rat.png",
-       on_use = minetest.item_eat(6),
-})
-
-minetest.register_craftitem(":firefly", {
-       description = "Firefly",
-       inventory_image = "firefly.png",
-       groups = {not_in_creative_inventory=1},
-})
-
-minetest.register_craft({
-       type = "cooking",
-       output = "cooked_rat",
-       recipe = "rat",
-})
-
-minetest.register_craft({
-       type = "cooking",
-       output = "scorched_stuff",
-       recipe = "cooked_rat",
-})
-
--- END
diff --git a/mods/legacy/textures/apple_iron.png b/mods/legacy/textures/apple_iron.png
deleted file mode 100644 (file)
index b1d1804..0000000
Binary files a/mods/legacy/textures/apple_iron.png and /dev/null differ
diff --git a/mods/legacy/textures/cooked_rat.png b/mods/legacy/textures/cooked_rat.png
deleted file mode 100644 (file)
index db80298..0000000
Binary files a/mods/legacy/textures/cooked_rat.png and /dev/null differ
diff --git a/mods/legacy/textures/dungeon_master.png b/mods/legacy/textures/dungeon_master.png
deleted file mode 100644 (file)
index 56caa50..0000000
Binary files a/mods/legacy/textures/dungeon_master.png and /dev/null differ
diff --git a/mods/legacy/textures/fireball.png b/mods/legacy/textures/fireball.png
deleted file mode 100644 (file)
index ed21a5b..0000000
Binary files a/mods/legacy/textures/fireball.png and /dev/null differ
diff --git a/mods/legacy/textures/firefly.png b/mods/legacy/textures/firefly.png
deleted file mode 100644 (file)
index 41bb25d..0000000
Binary files a/mods/legacy/textures/firefly.png and /dev/null differ
diff --git a/mods/legacy/textures/oerkki1.png b/mods/legacy/textures/oerkki1.png
deleted file mode 100644 (file)
index 7321d3d..0000000
Binary files a/mods/legacy/textures/oerkki1.png and /dev/null differ
diff --git a/mods/legacy/textures/oerkki1_damaged.png b/mods/legacy/textures/oerkki1_damaged.png
deleted file mode 100644 (file)
index 0ab50c8..0000000
Binary files a/mods/legacy/textures/oerkki1_damaged.png and /dev/null differ
diff --git a/mods/legacy/textures/rat.png b/mods/legacy/textures/rat.png
deleted file mode 100644 (file)
index e62e603..0000000
Binary files a/mods/legacy/textures/rat.png and /dev/null differ