diff options
author | Perttu Ahola <celeron55@gmail.com> | 2012-03-19 23:54:56 +0200 |
---|---|---|
committer | Perttu Ahola <celeron55@gmail.com> | 2012-03-20 00:08:00 +0200 |
commit | 97b693052cd5da228016afa6b31f07970b37569a (patch) | |
tree | a5389b936e6bf110de7c3463cd1d04e4a37f484a /games/mesetint/mods/legacy | |
parent | 19ed3bb1937419b5efdac4f4b6c07869e6bc6f08 (diff) | |
download | minetest-97b693052cd5da228016afa6b31f07970b37569a.tar.gz minetest-97b693052cd5da228016afa6b31f07970b37569a.tar.bz2 minetest-97b693052cd5da228016afa6b31f07970b37569a.zip |
Flatten share/ and user/ in the source and for the RUN_IN_PLACE build
Diffstat (limited to 'games/mesetint/mods/legacy')
-rw-r--r-- | games/mesetint/mods/legacy/depends.txt | 2 | ||||
-rw-r--r-- | games/mesetint/mods/legacy/init.lua | 132 | ||||
-rw-r--r-- | games/mesetint/mods/legacy/textures/apple_iron.png | bin | 0 -> 207 bytes | |||
-rw-r--r-- | games/mesetint/mods/legacy/textures/cooked_rat.png | bin | 0 -> 239 bytes | |||
-rw-r--r-- | games/mesetint/mods/legacy/textures/dungeon_master.png | bin | 0 -> 6636 bytes | |||
-rw-r--r-- | games/mesetint/mods/legacy/textures/fireball.png | bin | 0 -> 603 bytes | |||
-rw-r--r-- | games/mesetint/mods/legacy/textures/firefly.png | bin | 0 -> 116 bytes | |||
-rw-r--r-- | games/mesetint/mods/legacy/textures/oerkki1.png | bin | 0 -> 250 bytes | |||
-rw-r--r-- | games/mesetint/mods/legacy/textures/oerkki1_damaged.png | bin | 0 -> 341 bytes | |||
-rw-r--r-- | games/mesetint/mods/legacy/textures/rat.png | bin | 0 -> 920 bytes |
10 files changed, 134 insertions, 0 deletions
diff --git a/games/mesetint/mods/legacy/depends.txt b/games/mesetint/mods/legacy/depends.txt new file mode 100644 index 000000000..3a7daa1d7 --- /dev/null +++ b/games/mesetint/mods/legacy/depends.txt @@ -0,0 +1,2 @@ +default + diff --git a/games/mesetint/mods/legacy/init.lua b/games/mesetint/mods/legacy/init.lua new file mode 100644 index 000000000..7f9088ce0 --- /dev/null +++ b/games/mesetint/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/mesetint/mods/legacy/textures/apple_iron.png b/games/mesetint/mods/legacy/textures/apple_iron.png Binary files differnew file mode 100644 index 000000000..2dffdf014 --- /dev/null +++ b/games/mesetint/mods/legacy/textures/apple_iron.png diff --git a/games/mesetint/mods/legacy/textures/cooked_rat.png b/games/mesetint/mods/legacy/textures/cooked_rat.png Binary files differnew file mode 100644 index 000000000..daad3be0d --- /dev/null +++ b/games/mesetint/mods/legacy/textures/cooked_rat.png diff --git a/games/mesetint/mods/legacy/textures/dungeon_master.png b/games/mesetint/mods/legacy/textures/dungeon_master.png Binary files differnew file mode 100644 index 000000000..3457c8228 --- /dev/null +++ b/games/mesetint/mods/legacy/textures/dungeon_master.png diff --git a/games/mesetint/mods/legacy/textures/fireball.png b/games/mesetint/mods/legacy/textures/fireball.png Binary files differnew file mode 100644 index 000000000..523142850 --- /dev/null +++ b/games/mesetint/mods/legacy/textures/fireball.png diff --git a/games/mesetint/mods/legacy/textures/firefly.png b/games/mesetint/mods/legacy/textures/firefly.png Binary files differnew file mode 100644 index 000000000..40df7fa1c --- /dev/null +++ b/games/mesetint/mods/legacy/textures/firefly.png diff --git a/games/mesetint/mods/legacy/textures/oerkki1.png b/games/mesetint/mods/legacy/textures/oerkki1.png Binary files differnew file mode 100644 index 000000000..33cbac9e7 --- /dev/null +++ b/games/mesetint/mods/legacy/textures/oerkki1.png diff --git a/games/mesetint/mods/legacy/textures/oerkki1_damaged.png b/games/mesetint/mods/legacy/textures/oerkki1_damaged.png Binary files differnew file mode 100644 index 000000000..9b777387c --- /dev/null +++ b/games/mesetint/mods/legacy/textures/oerkki1_damaged.png diff --git a/games/mesetint/mods/legacy/textures/rat.png b/games/mesetint/mods/legacy/textures/rat.png Binary files differnew file mode 100644 index 000000000..d1a0e2ae2 --- /dev/null +++ b/games/mesetint/mods/legacy/textures/rat.png |