From 9281915b082d7e7f4a1b4a39687b4b4384aa43fa Mon Sep 17 00:00:00 2001 From: poikilos <7557867+poikilos@users.noreply.github.com> Date: Mon, 6 Feb 2017 12:36:12 -0500 Subject: [PATCH] added mods required for treasurer and migration from cme --- etc/Mods,WIP/cme_to_spawners/README.txt | 12 +++++ etc/Mods,WIP/cme_to_spawners/depends.txt | 5 ++ etc/Mods,WIP/cme_to_spawners/init.lua | 53 +++++++++++++++++++ etc/Mods,WIP/cme_to_spawners/license.txt | 51 ++++++++++++++++++ etc/Mods,WIP/trm_compassgps/depends.txt | 2 + etc/Mods,WIP/trm_compassgps/init.lua | 2 + .../tsm_pyramids_to_spawners/README.txt | 13 +++++ .../tsm_pyramids_to_spawners/depends.txt | 2 + .../tsm_pyramids_to_spawners/init.lua | 45 ++++++++++++++++ .../tsm_pyramids_to_spawners/license.txt | 51 ++++++++++++++++++ .../game-install-ENLIVEN | 28 +++++++++- ...l-ENLIVEN.old => game-install-ENLIVEN.old} | 0 12 files changed, 263 insertions(+), 1 deletion(-) create mode 100644 etc/Mods,WIP/cme_to_spawners/README.txt create mode 100644 etc/Mods,WIP/cme_to_spawners/depends.txt create mode 100644 etc/Mods,WIP/cme_to_spawners/init.lua create mode 100644 etc/Mods,WIP/cme_to_spawners/license.txt create mode 100644 etc/Mods,WIP/trm_compassgps/depends.txt create mode 100644 etc/Mods,WIP/trm_compassgps/init.lua create mode 100644 etc/Mods,WIP/tsm_pyramids_to_spawners/README.txt create mode 100644 etc/Mods,WIP/tsm_pyramids_to_spawners/depends.txt create mode 100644 etc/Mods,WIP/tsm_pyramids_to_spawners/init.lua create mode 100644 etc/Mods,WIP/tsm_pyramids_to_spawners/license.txt rename etc/change_world_name_manually_first/{minetest-mods-install-ENLIVEN.old => game-install-ENLIVEN.old} (100%) diff --git a/etc/Mods,WIP/cme_to_spawners/README.txt b/etc/Mods,WIP/cme_to_spawners/README.txt new file mode 100644 index 0000000..8815adf --- /dev/null +++ b/etc/Mods,WIP/cme_to_spawners/README.txt @@ -0,0 +1,12 @@ +Minetest Game mod: cme_to_spawners +========================= +See license.txt for license information. +This mod provides a transition from cme (Creatures Mob Engine) so you can use "spawners" mod instead, which uses mobs redo monsters (and a new spawners:mummy). + +Authors of source code +---------------------- +expertmm (github.com/expertmm) + +Authors of media (textures) +--------------------------- +(no media) \ No newline at end of file diff --git a/etc/Mods,WIP/cme_to_spawners/depends.txt b/etc/Mods,WIP/cme_to_spawners/depends.txt new file mode 100644 index 0000000..ff9e84e --- /dev/null +++ b/etc/Mods,WIP/cme_to_spawners/depends.txt @@ -0,0 +1,5 @@ +default +spawners +mobs +mobs_monster +farming \ No newline at end of file diff --git a/etc/Mods,WIP/cme_to_spawners/init.lua b/etc/Mods,WIP/cme_to_spawners/init.lua new file mode 100644 index 0000000..f0e044e --- /dev/null +++ b/etc/Mods,WIP/cme_to_spawners/init.lua @@ -0,0 +1,53 @@ +-- minetest.register_alias(name, convert_to) +-- "This means that if the engine finds nodes with the name name in the world the node with the name convert_to is used instead. " +-- +minetest.register_alias("creatures:chicken", "mobs_animal:chicken") +minetest.register_alias("creatures:sheep", "mobs_animal:sheep_white") +minetest.register_alias("mobs_animal:sheep", "mobs_animal:sheep_white") -- this is to fix an earlier bug in this mod +minetest.register_alias("creatures:ghost", "mobs_monster:spider") +minetest.register_alias("creatures:mummy", "spawners:mummy") +-- minetest.register_alias("creatures:mummy", "mobs_monster:stone_monster") +minetest.register_alias("creatures:oerrki", "mobs_monster:oerrki") +minetest.register_alias("creatures:zombie", "mobs_monster:stone_monster") + +mobs:alias_mob("creatures:chicken", "mobs_animal:chicken") +mobs:alias_mob("creatures:sheep", "mobs_animal:sheep_white") +mobs:alias_mob("mobs_animal:sheep", "mobs_animal:sheep_white") -- this is to fix an earlier bug in this mod +mobs:alias_mob("creatures:ghost", "mobs_monster:spider") +mobs:alias_mob("creatures:mummy", "spawners:mummy") +-- minetest.register_alias("creatures:mummy", "mobs_monster:stone_monster") +mobs:alias_mob("creatures:oerrki", "mobs_monster:oerrki") +mobs:alias_mob("creatures:zombie", "mobs_monster:stone_monster") + +minetest.register_alias("creatures:chicken_spawner", "spawners:mobs_chicken_spawner") +minetest.register_alias("creatures:ghost_spawner", "spawners:mobs_spider_spawner") +minetest.register_alias("creatures:mummy_spawner", "spawners:spawners_mummy_spawner") +minetest.register_alias("creatures:oerrki_spawner", "spawners:mobs_oerkki_spawner") +minetest.register_alias("creatures:sheep_spawner", "spawners:mobs_sheep_white_spawner") +minetest.register_alias("creatures:zombie_spawner", "spawners:mobs_stone_monster_spawner") + +-- meat: +minetest.register_alias("creatures:chicken_flesh", "mobs:chicken_raw") +minetest.register_alias("creatures:chicken_meat", "mobs:chicken_cooked") +minetest.register_alias("creatures:rotten_flesh", "") +minetest.register_alias("creatures:grilled_rotten_flesh", "") +minetest.register_alias("creatures:flesh", "mobs:meat_raw") +minetest.register_alias("creatures:meat", "mobs:meat") + +-- non-meat food: +minetest.register_alias("creatures:egg", "mobs:egg") +minetest.register_alias("creatures:fried_egg", "mobs:chicken_egg_fried") + +-- materials: +minetest.register_alias("creatures:feather", "farming:string") + +-- tools: +minetest.register_alias("creatures:shears", "mobs:shears") + +-- eggs (there is no true chicken spawner egg item (at least in egg texture) in spawners or mobs, so using regular chicken which works the same (could also use mobs:egg for partial effectiveness) instead): +minetest.register_alias("creatures:chicken_spawn_egg", "mobs_animal:chicken") +minetest.register_alias("creatures:ghost_spawn_egg", "mobs_monster:spider") +minetest.register_alias("creatures:mummy_spawn_egg", "spawners:mummy") +minetest.register_alias("creatures:oerrki_spawn_egg", "mobs_monster:oerkki") +minetest.register_alias("creatures:sheep_spawn_egg", "mobs:sheep_white") +minetest.register_alias("creatures:zombie_spawn_egg", "mobs_monster:stone_monster") diff --git a/etc/Mods,WIP/cme_to_spawners/license.txt b/etc/Mods,WIP/cme_to_spawners/license.txt new file mode 100644 index 0000000..a5156ae --- /dev/null +++ b/etc/Mods,WIP/cme_to_spawners/license.txt @@ -0,0 +1,51 @@ +License of source code +---------------------- + +GNU Lesser General Public License, version 2.1 +Copyright (C) 2011-2016 Kahrl +Copyright (C) 2011-2016 celeron55, Perttu Ahola +Copyright (C) 2011-2016 Various Minetest developers and contributors + +This program is free software; you can redistribute it and/or modify it under the terms +of the GNU Lesser General Public License as published by the Free Software Foundation; +either version 2.1 of the License, or (at your option) any later version. + +This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; +without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. +See the GNU Lesser General Public License for more details: +https://www.gnu.org/licenses/old-licenses/lgpl-2.1.html + + +Licenses of media (textures) +---------------------------- + +Attribution-ShareAlike 3.0 Unported (CC BY-SA 3.0) +Copyright (C) 2015-2016 ElementW + +You are free to: +Share — copy and redistribute the material in any medium or format. +Adapt — remix, transform, and build upon the material for any purpose, even commercially. +The licensor cannot revoke these freedoms as long as you follow the license terms. + +Under the following terms: + +Attribution — You must give appropriate credit, provide a link to the license, and +indicate if changes were made. You may do so in any reasonable manner, but not in any way +that suggests the licensor endorses you or your use. + +ShareAlike — If you remix, transform, or build upon the material, you must distribute +your contributions under the same license as the original. + +No additional restrictions — You may not apply legal terms or technological measures that +legally restrict others from doing anything the license permits. + +Notices: + +You do not have to comply with the license for elements of the material in the public +domain or where your use is permitted by an applicable exception or limitation. +No warranties are given. The license may not give you all of the permissions necessary +for your intended use. For example, other rights such as publicity, privacy, or moral +rights may limit how you use the material. + +For more details: +http://creativecommons.org/licenses/by-sa/3.0/ diff --git a/etc/Mods,WIP/trm_compassgps/depends.txt b/etc/Mods,WIP/trm_compassgps/depends.txt new file mode 100644 index 0000000..42e0915 --- /dev/null +++ b/etc/Mods,WIP/trm_compassgps/depends.txt @@ -0,0 +1,2 @@ +treasurer +compassgps diff --git a/etc/Mods,WIP/trm_compassgps/init.lua b/etc/Mods,WIP/trm_compassgps/init.lua new file mode 100644 index 0000000..8a2cc27 --- /dev/null +++ b/etc/Mods,WIP/trm_compassgps/init.lua @@ -0,0 +1,2 @@ +treasurer.register_treasure("compassgps:0",0.02,3,1,nil,"tool") +treasurer.register_treasure("compassgps:cpgpsmap",0.02,3,1,nil,"tool") diff --git a/etc/Mods,WIP/tsm_pyramids_to_spawners/README.txt b/etc/Mods,WIP/tsm_pyramids_to_spawners/README.txt new file mode 100644 index 0000000..41c4128 --- /dev/null +++ b/etc/Mods,WIP/tsm_pyramids_to_spawners/README.txt @@ -0,0 +1,13 @@ +Minetest Game mod: tsm_pyramids_to_pyramids +========================= +See license.txt for license information. +actually requires either spawners or pyramids. +This mod provides a transition from tsm_pyramids so you can use "spawners" mod instead, which uses the pyramids namespace but replaces the pyramids mod. + +Authors of source code +---------------------- +expertmm (github.com/expertmm) + +Authors of media (textures) +--------------------------- +(no media) \ No newline at end of file diff --git a/etc/Mods,WIP/tsm_pyramids_to_spawners/depends.txt b/etc/Mods,WIP/tsm_pyramids_to_spawners/depends.txt new file mode 100644 index 0000000..3a7daa1 --- /dev/null +++ b/etc/Mods,WIP/tsm_pyramids_to_spawners/depends.txt @@ -0,0 +1,2 @@ +default + diff --git a/etc/Mods,WIP/tsm_pyramids_to_spawners/init.lua b/etc/Mods,WIP/tsm_pyramids_to_spawners/init.lua new file mode 100644 index 0000000..7ec4799 --- /dev/null +++ b/etc/Mods,WIP/tsm_pyramids_to_spawners/init.lua @@ -0,0 +1,45 @@ +-- minetest.register_alias("name", "convert_to") +-- "This means that if the engine finds nodes with the name name in the world the node with the name convert_to is used instead." +-- from https://dev.minetest.net/minetest.register_alias + +-- BELOW is based on all instances of tsm_pyramids: from tsm_pyramids: +-- minetest.register_alias("tsm_pyramids:spawner_mummy", "pyramids:spawner_mummy") +-- minetest.register_alias("tsm_pyramids:spawn_egg", "pyramids:spawn_egg") +-- minetest.register_alias("tsm_pyramids:mummy", "pyramids:mummy") +-- minetest.register_alias("tsm_pyramids:mummy_spawner", "pyramids:mummy_spawner") +-- minetest.register_alias("tsm_pyramids:trap", "pyramids:trap") +-- minetest.register_alias("tsm_pyramids:trap_2", "pyramids:trap_2") +-- minetest.register_alias("tsm_pyramids:deco_stone1", "pyramids:deco_stone1") +-- minetest.register_alias("tsm_pyramids:deco_stone2", "pyramids:deco_stone2") +-- minetest.register_alias("tsm_pyramids:deco_stone3", "pyramids:deco_stone3") +-- minetest.register_alias("tsm_pyramids:spawner_mummy", "pyramids:spawner_mummy") + +-- BELOW is found from instances of pyramids: in spawners: +-- minetest.register_alias("pyramids:spawn_egg", "tsm_pyramids:spawn_egg") +-- minetest.register_alias("pyramids:deco_stone1", "tsm_pyramids:deco_stone1") +-- minetest.register_alias("pyramids:deco_stone2", "tsm_pyramids:deco_stone2") +-- minetest.register_alias("pyramids:deco_stone3", "tsm_pyramids:deco_stone3") +-- minetest.register_alias("pyramids:trap", "tsm_pyramids:trap") +-- minetest.register_alias("pyramids:trap_2", "tsm_pyramids:trap_2") + +-- BELOW is copied from spawners but pyramids is changed to tsm_pyramids +-- +-- backwards compatibility +-- +-- spawner mummy +minetest.register_alias("tsm_pyramids:spawner_mummy", "spawners:spawners_mummy_spawner_env") +-- minetest.register_alias("tsm_pyramids:mummy_spawner", "spawners:spawners_mummy_spawner_env") +-- spawn egg +minetest.register_alias("tsm_pyramids:spawn_egg", "spawners:mummy") +-- mummy entity +minetest.register_alias("tsm_pyramids:mummy", "spawners:mummy") +-- deco stone 1 +minetest.register_alias("tsm_pyramids:deco_stone1", "spawners:deco_stone1") +-- deco stone 2 +minetest.register_alias("tsm_pyramids:deco_stone2", "spawners:deco_stone2") +-- deco stone 3 +minetest.register_alias("tsm_pyramids:deco_stone3", "spawners:deco_stone3") +-- deco trap +minetest.register_alias("tsm_pyramids:trap", "spawners:trap") +-- deco trap 2 +minetest.register_alias("tsm_pyramids:trap_2", "spawners:trap_2") diff --git a/etc/Mods,WIP/tsm_pyramids_to_spawners/license.txt b/etc/Mods,WIP/tsm_pyramids_to_spawners/license.txt new file mode 100644 index 0000000..a5156ae --- /dev/null +++ b/etc/Mods,WIP/tsm_pyramids_to_spawners/license.txt @@ -0,0 +1,51 @@ +License of source code +---------------------- + +GNU Lesser General Public License, version 2.1 +Copyright (C) 2011-2016 Kahrl +Copyright (C) 2011-2016 celeron55, Perttu Ahola +Copyright (C) 2011-2016 Various Minetest developers and contributors + +This program is free software; you can redistribute it and/or modify it under the terms +of the GNU Lesser General Public License as published by the Free Software Foundation; +either version 2.1 of the License, or (at your option) any later version. + +This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; +without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. +See the GNU Lesser General Public License for more details: +https://www.gnu.org/licenses/old-licenses/lgpl-2.1.html + + +Licenses of media (textures) +---------------------------- + +Attribution-ShareAlike 3.0 Unported (CC BY-SA 3.0) +Copyright (C) 2015-2016 ElementW + +You are free to: +Share — copy and redistribute the material in any medium or format. +Adapt — remix, transform, and build upon the material for any purpose, even commercially. +The licensor cannot revoke these freedoms as long as you follow the license terms. + +Under the following terms: + +Attribution — You must give appropriate credit, provide a link to the license, and +indicate if changes were made. You may do so in any reasonable manner, but not in any way +that suggests the licensor endorses you or your use. + +ShareAlike — If you remix, transform, or build upon the material, you must distribute +your contributions under the same license as the original. + +No additional restrictions — You may not apply legal terms or technological measures that +legally restrict others from doing anything the license permits. + +Notices: + +You do not have to comply with the license for elements of the material in the public +domain or where your use is permitted by an applicable exception or limitation. +No warranties are given. The license may not give you all of the permissions necessary +for your intended use. For example, other rights such as publicity, privacy, or moral +rights may limit how you use the material. + +For more details: +http://creativecommons.org/licenses/by-sa/3.0/ diff --git a/etc/change_world_name_manually_first/game-install-ENLIVEN b/etc/change_world_name_manually_first/game-install-ENLIVEN index 7574966..29a5fa3 100644 --- a/etc/change_world_name_manually_first/game-install-ENLIVEN +++ b/etc/change_world_name_manually_first/game-install-ENLIVEN @@ -1547,7 +1547,33 @@ if [ ! -d "$MTMOD_DEST_PATH" ]; then fi - +#(a trmp is just a modpack of TRMs for treasurer. At least one trm must be installed for treasurer to to anything) +cd $HOME/Downloads +MTMOD_DL_ZIP=file.php?id=1301 +MTMOD_SRC_ZIP=trmp_minetest_game.zip +MTMOD_UNZ_NAME=trmp_minetest_game +MTMOD_DEST_NAME=trmp_minetest_game +MTMOD_DEST_PATH=$MT_MYGAME_MODS_PATH/$MTMOD_DEST_NAME +#if [ -d "$MTMOD_UNZ_NAME" ]; then +rm -Rf $MTMOD_UNZ_NAME +#fi +if [ -f $MTMOD_DL_ZIP ]; then + rm -f $MTMOD_DL_ZIP +fi +if [ -f $MTMOD_SRC_ZIP ]; then + rm -f $MTMOD_SRC_ZIP +fi +if [ -d "$MTMOD_DEST_PATH" ]; then + sudo rm -Rf "$MTMOD_DEST_PATH" +fi +wget https://forum.minetest.net/download/file.php?id=1301 +mv $MTMOD_DL_ZIP "$MTMOD_SRC_ZIP" +unzip "$MTMOD_SRC_ZIP" +sudo mv $MTMOD_UNZ_NAME "$MTMOD_DEST_PATH" +if [ ! -d "$MTMOD_DEST_PATH" ]; then + echo "ERROR: failed to unzip $MTMOD_DEST_PATH, so cannot continue." + exit 1 +fi diff --git a/etc/change_world_name_manually_first/minetest-mods-install-ENLIVEN.old b/etc/change_world_name_manually_first/game-install-ENLIVEN.old similarity index 100% rename from etc/change_world_name_manually_first/minetest-mods-install-ENLIVEN.old rename to etc/change_world_name_manually_first/game-install-ENLIVEN.old