diff options
author | Perttu Ahola <celeron55@gmail.com> | 2012-03-26 23:18:17 +0300 |
---|---|---|
committer | Perttu Ahola <celeron55@gmail.com> | 2012-03-26 23:28:19 +0300 |
commit | 862d76b6176e60c4a92a316e20b0d7665c92467a (patch) | |
tree | 2dbbdb20f900bea41d2b9748b49ffb0cde6d383a /games/minimal/mods/legacy | |
parent | bd9912213f459d2b86154d17a2cbbe09c4ab562e (diff) | |
download | minetest-862d76b6176e60c4a92a316e20b0d7665c92467a.tar.gz minetest-862d76b6176e60c4a92a316e20b0d7665c92467a.tar.bz2 minetest-862d76b6176e60c4a92a316e20b0d7665c92467a.zip |
Move games/minetest to games/minimal and update README.txt
Diffstat (limited to 'games/minimal/mods/legacy')
-rw-r--r-- | games/minimal/mods/legacy/depends.txt | 2 | ||||
-rw-r--r-- | games/minimal/mods/legacy/init.lua | 132 | ||||
-rw-r--r-- | games/minimal/mods/legacy/textures/apple_iron.png | bin | 0 -> 207 bytes | |||
-rw-r--r-- | games/minimal/mods/legacy/textures/cooked_rat.png | bin | 0 -> 239 bytes | |||
-rw-r--r-- | games/minimal/mods/legacy/textures/dungeon_master.png | bin | 0 -> 6636 bytes | |||
-rw-r--r-- | games/minimal/mods/legacy/textures/fireball.png | bin | 0 -> 603 bytes | |||
-rw-r--r-- | games/minimal/mods/legacy/textures/firefly.png | bin | 0 -> 116 bytes | |||
-rw-r--r-- | games/minimal/mods/legacy/textures/oerkki1.png | bin | 0 -> 250 bytes | |||
-rw-r--r-- | games/minimal/mods/legacy/textures/oerkki1_damaged.png | bin | 0 -> 341 bytes | |||
-rw-r--r-- | games/minimal/mods/legacy/textures/rat.png | bin | 0 -> 920 bytes |
10 files changed, 134 insertions, 0 deletions
diff --git a/games/minimal/mods/legacy/depends.txt b/games/minimal/mods/legacy/depends.txt new file mode 100644 index 000000000..3a7daa1d7 --- /dev/null +++ b/games/minimal/mods/legacy/depends.txt @@ -0,0 +1,2 @@ +default + diff --git a/games/minimal/mods/legacy/init.lua b/games/minimal/mods/legacy/init.lua new file mode 100644 index 000000000..7f9088ce0 --- /dev/null +++ b/games/minimal/mods/legacy/init.lua @@ -0,0 +1,132 @@ +-- 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", + on_drop = function(item, dropper, pos) + minetest.env:add_rat(pos) + item:take_item() + return item + end, + on_place = function(item, dropped, pointed) + pos = minetest.get_pointed_thing_position(pointed, true) + if pos ~= nil then + minetest.env:add_rat(pos) + item:take_item() + return item + end + end +}) + +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", + on_drop = function(item, dropper, pos) + minetest.env:add_firefly(pos) + item:take_item() + return item + end, + on_place = function(item, dropped, pointed) + pos = minetest.get_pointed_thing_position(pointed, true) + if pos ~= nil then + minetest.env:add_firefly(pos) + item:take_item() + return item + end + end +}) + +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/games/minimal/mods/legacy/textures/apple_iron.png b/games/minimal/mods/legacy/textures/apple_iron.png Binary files differnew file mode 100644 index 000000000..2dffdf014 --- /dev/null +++ b/games/minimal/mods/legacy/textures/apple_iron.png diff --git a/games/minimal/mods/legacy/textures/cooked_rat.png b/games/minimal/mods/legacy/textures/cooked_rat.png Binary files differnew file mode 100644 index 000000000..daad3be0d --- /dev/null +++ b/games/minimal/mods/legacy/textures/cooked_rat.png diff --git a/games/minimal/mods/legacy/textures/dungeon_master.png b/games/minimal/mods/legacy/textures/dungeon_master.png Binary files differnew file mode 100644 index 000000000..3457c8228 --- /dev/null +++ b/games/minimal/mods/legacy/textures/dungeon_master.png diff --git a/games/minimal/mods/legacy/textures/fireball.png b/games/minimal/mods/legacy/textures/fireball.png Binary files differnew file mode 100644 index 000000000..523142850 --- /dev/null +++ b/games/minimal/mods/legacy/textures/fireball.png diff --git a/games/minimal/mods/legacy/textures/firefly.png b/games/minimal/mods/legacy/textures/firefly.png Binary files differnew file mode 100644 index 000000000..40df7fa1c --- /dev/null +++ b/games/minimal/mods/legacy/textures/firefly.png diff --git a/games/minimal/mods/legacy/textures/oerkki1.png b/games/minimal/mods/legacy/textures/oerkki1.png Binary files differnew file mode 100644 index 000000000..33cbac9e7 --- /dev/null +++ b/games/minimal/mods/legacy/textures/oerkki1.png diff --git a/games/minimal/mods/legacy/textures/oerkki1_damaged.png b/games/minimal/mods/legacy/textures/oerkki1_damaged.png Binary files differnew file mode 100644 index 000000000..9b777387c --- /dev/null +++ b/games/minimal/mods/legacy/textures/oerkki1_damaged.png diff --git a/games/minimal/mods/legacy/textures/rat.png b/games/minimal/mods/legacy/textures/rat.png Binary files differnew file mode 100644 index 000000000..d1a0e2ae2 --- /dev/null +++ b/games/minimal/mods/legacy/textures/rat.png |