diff --git a/README.md b/README.md index 96db40a..8de5e56 100644 --- a/README.md +++ b/README.md @@ -13,6 +13,16 @@ ENLIVEN is a subgame for minetest with the goals of providing immersion and less * see also EnlivenMinetest/etc/game-install-enliven-testing.sh #### Possible Additions +* SWITCH from GunshipPenguin's sprint to minetest-mods' hbsprint (which optionally uses hudbars, hbhunger, and player_monoids) + https://github.com/minetest-mods/hbsprint.git +* SWITCH from tsm_chests_dungeon to loot or dungeon_loot (loot is maintained by minetest-mods; tsm generates treasure from trm treasure lists using treasurer) + https://github.com/minetest-mods/loot.git + settings: + * loot_vaults - Set to true to enable loot vault generation. + * loot_dungeons - Set to true to enable loot generation in dungeons. +* SWITCH from farming redo to minetest-mods crops +* add but remove fire (flint and steel)? + https://github.com/xisd/trmp_Pack.git * https://github.com/minetest-mods/woodcutting/archive/master.zip (sneek click to start auto-harvest tree, sneak again to cancel) * subterrane: fork of Caverealms, but is just an API and needs other mods to generate anything @@ -85,10 +95,16 @@ Otherwise just install everything EXCEPT cme_to_spawners & tsm_pyramids_to_spawn * trm_pyramids added (partial code in game-install-ENLIVEN completed) (a required treasure table so tsm_pyramids can provide treasure in pyramids) * switched links to use minetest-mods' versions of: - * throwing (now is an api only so ENLIVEN also installs minetest-mods/throwing_arrows) + * unified_inventory + * throwing (& added throwing_arrows since now throwing is an API only) * pipeworks + * moreores + * biome_lib + * plantlife_modpack * added anvil mod -* added sling mod (throw any item or stack using sling--accounts for multiplayer) +* added sling mod: (throw any item or stack using sling--accounts for multiplayer) +* added tsm_chests_dungeon mod (adds chests to the default dungeons) -- https://forum.minetest.net/viewtopic.php?f=9&t=17005 + (2018-02-06) * refactored file structure @@ -174,6 +190,9 @@ Otherwise just install everything EXCEPT cme_to_spawners & tsm_pyramids_to_spawn * Updated pipeworks fork by HybridDog: https://github.com/HybridDog/pipeworks ## Known issues: +* install whatever mod allows making a sign to see awards +* use player_monoids instead of playereffects for mock_tnt? +* pyramids have empty chests (still?): possibly fork spawners so pyramids use treasurer like Wuzzy's fork of pyramids does: * ENLIVEN Windows binary release installer should be signed via a code signing license to avoid browser warnings and possible issues with virus scanners (NOTE: Squirrel.Windows has signing available such as via: ./src\.nuget\NuGet.exe pack .\ENLIVEN..nuspec squirrel --releasify .\ENLIVEN..nupkg diff --git a/etc/change_hardcoded_world_name_first/game-install-ENLIVEN b/etc/change_hardcoded_world_name_first/game-install-ENLIVEN index 714fa06..0447032 100755 --- a/etc/change_hardcoded_world_name_first/game-install-ENLIVEN +++ b/etc/change_hardcoded_world_name_first/game-install-ENLIVEN @@ -8,7 +8,6 @@ # minetestserver # Mods were found at https://forum.minetest.net/viewforum.php?f=11 - # * Git version uses /home/*/minetest/games and /usr/local/share/minetest/games but the latter is used for minetestserver (minetest-server package) @@ -17,10 +16,9 @@ # sudo find -name 'worlds' (worlds folder is in $HOME/.minetest) # sudo find -name 'minimal' (stable build [such as 0.4.9 games folder is /usr/share/games/minetest/games, but git version games folder is /usr/local/share/minetest/games) - - - - +# ISSUES: +# * ERROR[Main]: Singleplayer mode says following mods could not be found: 3d_armor areas mobs mobs_animal mobs_monster protector technic treasurer unified_inventory xban2 +sudo echo "starting ENLIVEN installer script..." #region paste this part into terminal to get some great environment variables if [ "$0" = "-bash" ]; then echo "you must have pasted this into terminal, so assuming REPO_PATH" @@ -49,7 +47,14 @@ if [ ! -d "$PATCHES_PATH" ]; then fi if [ ! -d "$PATCHES_PATH" ]; then echo "ERROR: could not find patches such as in $PATCHES_PATH" - sleep 3 + echo " press Ctrl C to cancel ENLIVEN install or this terminal will close..." + sleep 1 + echo " 3..." + sleep 1 + echo " 2..." + sleep 1 + echo " 1..." + sleep 1 exit 1 fi # NOTE: minetest mods (other than 0.4.16 client-side mods) are ALWAYS ONLY installed on server, unless you need them for singleplayer @@ -78,10 +83,11 @@ MT_MYGAME_DIR=$MT_GAMES_DIR/$MT_MYGAME_NAME MT_MYGAME_MODS_PATH=$MT_MYGAME_DIR/mods MT_MYWORLD_NAME=FCAGameAWorld MT_MYWORLD_DIR=$HOME/.minetest/worlds/$MT_MYWORLD_NAME +WORLD_MT_PATH=$MT_MYWORLD_DIR/world.mt err_txt=$HOME/err-enliven.txt # see also https://www.shellscript.sh/functions.html -add_zipped_mod() +add_zip_mod() { cd $HOME/Downloads MTMOD_DEST_NAME=$1 @@ -100,19 +106,38 @@ add_zipped_mod() fi wget -O $MTMOD_SRC_ZIP $URL unzip "$MTMOD_SRC_ZIP" + if [ -d "$MTMOD_UNZ_NAME" ]; then + # outer case is for safety in case variable is blank or something + if [ -d "$MTMOD_UNZ_NAME/.git" ]; then + rm -Rf "$MTMOD_UNZ_NAME/.git" + fi + if [ -f "$MTMOD_UNZ_NAME/.gitignore" ]; then + rm -Rf "$MTMOD_UNZ_NAME/.gitignore" + fi + # remove etc to make users downloading mods faster: + if [ -d "$MTMOD_UNZ_NAME/etc" ]; then + rm -Rf "$MTMOD_UNZ_NAME/etc" + fi + fi sudo mv $MTMOD_UNZ_NAME "$MTMOD_DEST_PATH" sudo rm -Rf "$MTMOD_DEST_PATH/etc" if [ ! -d "$MTMOD_DEST_PATH" ]; then echo " ERROR: failed to unzip $MTMOD_DEST_PATH, so cannot continue." > $err_txt cat $err_txt - sleep 3 - exit 1 + echo " press Ctrl C to cancel ENLIVEN install or this terminal will close..." + sleep 1 + echo " 3..." + sleep 1 + echo " 2..." + sleep 1 + echo " 1..." + sleep 1 else echo " added as $MTMOD_DEST_PATH" fi } -add_git_clone_mod() +add_git_mod() { cd $HOME/Downloads MTMOD_DEST_NAME=$1 @@ -126,12 +151,32 @@ add_git_clone_mod() sudo rm -Rf "$MTMOD_DEST_PATH" fi git clone $URL + if [ -d "$MTMOD_UNZ_NAME" ]; then + # outer case is for safety in case variable is blank or something + if [ -d "$MTMOD_UNZ_NAME/.git" ]; then + rm -Rf "$MTMOD_UNZ_NAME/.git" + fi + if [ -f "$MTMOD_UNZ_NAME/.gitignore" ]; then + rm -Rf "$MTMOD_UNZ_NAME/.gitignore" + fi + # remove etc to make users downloading mods faster: + if [ -d "$MTMOD_UNZ_NAME/etc" ]; then + rm -Rf "$MTMOD_UNZ_NAME/etc" + fi + fi sudo mv $MTMOD_UNZ_NAME "$MTMOD_DEST_PATH" sudo rm -Rf "$MTMOD_DEST_PATH/etc" if [ ! -d "$MTMOD_DEST_PATH" ]; then echo " ERROR: failed to unzip $MTMOD_DEST_PATH, so cannot continue." > $err_txt cat $err_txt - sleep 3 + echo " press Ctrl C to cancel ENLIVEN install or this terminal will close..." + sleep 1 + echo " 3..." + sleep 1 + echo " 2..." + sleep 1 + echo " 1..." + sleep 1 exit 1 else echo " added as $MTMOD_DEST_PATH" @@ -149,7 +194,14 @@ remove_mod() if [ -d "$MTMOD_DEST_PATH" ]; then echo " ERROR in remove_mod: failed to remove $MTMOD_DEST_PATH, so cannot continue." > $err_txt cat $err_txt - sleep 3 + echo " press Ctrl C to cancel ENLIVEN install or this terminal will close..." + sleep 1 + echo " 3..." + sleep 1 + echo " 2..." + sleep 1 + echo " 1..." + sleep 1 exit 1 else echo " removed $MTMOD_DEST_PATH" @@ -162,11 +214,27 @@ remove_mod() -# BACKUP THE WORLD: -sudo chown $USER "$MT_MYWORLD_DIR/world.mt" -sudo chown $USER "$MT_MYWORLD_DIR/world.mt.1st" + + + + +if [ -d /tmp/local_mts_user ]; then + # handle paranoia about directory with similar name + rm -Rf /tmp/local_mts_user +fi +echo $USER > /tmp/local_mts_user +# BACKUP world.mt: +# workaround bug in earlier version of installer +sudo chown `cat /tmp/local_mts_user` "$MT_MYWORLD_DIR/world.mt" +if [ -f "$MT_MYWORLD_DIR/world.mt.1st" ]; then + # workaround bug in earlier version of installer + sudo chown `cat /tmp/local_mts_user` "$MT_MYWORLD_DIR/world.mt.1st" +fi if [ ! -d "$MT_MYGAME_DIR" ]; then - sudo mkdir "$MT_MYGAME_DIR" + mkdir "$MT_MYGAME_DIR" +else + # workaround bug in earlier version of installer + sudo chown -R `cat /tmp/local_mts_user` "$MT_MYGAME_DIR" fi if [ -f "$MT_MYWORLD_DIR/world.mt.1st" ]; then echo "Already backed up world.mt to $MT_MYWORLD_DIR/world.mt.1st" @@ -174,17 +242,20 @@ else cp "$MT_MYWORLD_DIR/world.mt" "$MT_MYWORLD_DIR/world.mt.1st" echo "The original world.mt is now backed up at $MT_MYWORLD_DIR/world.mt.1st" fi -touch "$MT_MYWORLD_DIR/world.mt" -mv -f "$MT_MYWORLD_DIR/world.mt" "$MT_MYWORLD_DIR/world.mt.bak" +if [ -f "$MT_MYWORLD_DIR/world.mt" ]; then + mv -f "$MT_MYWORLD_DIR/world.mt" "$MT_MYWORLD_DIR/world.mt.bak" +fi # REMAKE world.mt cd -echo "gameid = $MT_MYGAME_NAME" > "world.mt" -sudo mv "world.mt" "$MT_MYWORLD_DIR/world.mt" -sudo chown $USER "$MT_MYWORLD_DIR/world.mt" -sudo chgrp $USER "$MT_MYWORLD_DIR/world.mt" -echo "backend = leveldb" >> "$MT_MYWORLD_DIR/world.mt" -#mv "world.mt" $MT_MYWORLD_DIR/world.mt +if [ -f "$WORLD_MT_PATH" ]; then + # workaround bug in earlier version of installer + sudo chown `cat /tmp/local_mts_user` "$WORLD_MT_PATH" + sudo chgrp `cat /tmp/local_mts_user` "$WORLD_MT_PATH" +fi +echo "gameid = $MT_MYGAME_NAME" > "$WORLD_MT_PATH" + +echo "backend = leveldb" >> "$WORLD_MT_PATH" #MT_MYGAME_DIR (a Minetest "game") is the equivalent of a Minecraft modpack, however, in this case it is actually a collection of mods and modpacks, either of which can be in the mods folder @@ -208,7 +279,14 @@ fi if [ ! -d "$MT_MYGAME_DIR/" ]; then echo "ERROR: failed to create $MT_MYGAME_DIR, so cannot continue." > $err_txt cat $err_txt - sleep 3 + echo " press Ctrl C to cancel ENLIVEN install or this terminal will close..." + sleep 1 + echo " 3..." + sleep 1 + echo " 2..." + sleep 1 + echo " 1..." + sleep 1 exit 1 fi #sudo cp -R $USR_SHARE_MINETEST/games/$mtgame_name/mods/* "$MT_MYGAME_DIR/mods/" @@ -221,127 +299,22 @@ sudo cp -R $USR_SHARE_MINETEST/games/$mtgame_name/* "$MT_MYGAME_DIR/" #wget https://github.com/BlockMen/cme/releases/download/v2.3/cme-2_3-BlockMen.zip #unzip cme-2_3-BlockMen.zip #sudo mv cme "$MT_MYGAME_MODS_PATH/cme" -##DO NOT DO THIS (since cme is a modpack): echo "load_mod_cme = true" >> "$MT_MYWORLD_DIR/world.mt" -#echo "#cme Creatures MOB-Engine (cme) is a modpack" >> "$MT_MYWORLD_DIR/world.mt" - -cd "$HOME/Downloads" -MTMOD_DL_ZIP=master.zip -MTMOD_SRC_ZIP=mobs_redo.zip -MTMOD_UNZ_NAME=mobs_redo-master -MTMOD_DEST_NAME=mobs -MTMOD_DEST_PATH=$MT_MYGAME_MODS_PATH/$MTMOD_DEST_NAME -if [ -f $MTMOD_DL_ZIP ]; then - rm -f $MTMOD_DL_ZIP -fi -if [ -f $MTMOD_SRC_ZIP ]; then - rm -f $MTMOD_SRC_ZIP -fi -rm -Rvf $MTMOD_UNZ_NAME -#sudo rm -Rvf "$MTMOD_DEST_PATH" -echo "Installing TenPlus1's mobs.zip from https://github.com/tenplus1/mobs_redo/archive/master.zip" -echo "Installing TenPlus1's mobs.zip from https://github.com/tenplus1/mobs_redo/archive/master.zip" > mobs.zip.txt -#SEE ALSO RELEASE VERSION (must be logged in to download): https://forum.minetest.net/download/file.php?id=5282 -#wget https://github.com/tenplus1/mobs/archive/master.zip -wget https://github.com/tenplus1/mobs_redo/archive/master.zip -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." > $err_txt - cat $err_txt - sleep 3 - exit 1 -fi -echo "load_mod_mobs = true" >> "$MT_MYWORLD_DIR/world.mt" - - - - -cd "$HOME/Downloads" -MTMOD_DL_ZIP=master.zip -MTMOD_SRC_ZIP=mobs_monster.zip -MTMOD_UNZ_NAME=mobs_monster-master -MTMOD_DEST_NAME=mobs_monster -MTMOD_DEST_PATH=$MT_MYGAME_MODS_PATH/$MTMOD_DEST_NAME -if [ -f $MTMOD_DL_ZIP ]; then - rm -f $MTMOD_DL_ZIP -fi -if [ -f $MTMOD_SRC_ZIP ]; then - rm -f $MTMOD_SRC_ZIP -fi -rm -Rvf $MTMOD_UNZ_NAME -wget https://github.com/tenplus1/mobs_monster/archive/master.zip -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." > $err_txt - cat $err_txt - sleep 3 - exit 1 -fi -echo "load_mod_mobs_monster = true" >> "$MT_MYWORLD_DIR/world.mt" - -cd "$HOME/Downloads" -MTMOD_DL_ZIP=master.zip -MTMOD_SRC_ZIP=mobs_animal.zip -MTMOD_UNZ_NAME=mobs_animal-master -MTMOD_DEST_NAME=mobs_animal -MTMOD_DEST_PATH=$MT_MYGAME_MODS_PATH/$MTMOD_DEST_NAME -if [ -f $MTMOD_DL_ZIP ]; then - rm -f $MTMOD_DL_ZIP -fi -if [ -f $MTMOD_SRC_ZIP ]; then - rm -f $MTMOD_SRC_ZIP -fi -rm -Rvf $MTMOD_UNZ_NAME -wget https://github.com/tenplus1/mobs_animal/archive/master.zip -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." > $err_txt - cat $err_txt - sleep 3 - exit 1 -fi -echo "load_mod_mobs_animal = true" >> "$MT_MYWORLD_DIR/world.mt" - - - -#the following downloads protector (REDO version posted at https://forum.minetest.net/viewtopic.php?f=11&t=9376) not the original 2012 protector or 2012 fork of 2012 protector -#rm protector.zip -#wget https://forum.minetest.net/download/file.php?id=5046 -#mv -f "file.php?id=5046" protector.zip -#USE GIT VERSION INSTEAD: -cd "$HOME/Downloads" -MTMOD_DL_ZIP=master.zip -MTMOD_SRC_ZIP=protector.zip -MTMOD_UNZ_NAME=protector-master -MTMOD_DEST_NAME=protector -MTMOD_DEST_PATH=$MT_MYGAME_MODS_PATH/$MTMOD_DEST_NAME -if [ -f $MTMOD_DL_ZIP ]; then - rm -f $MTMOD_DL_ZIP -fi -if [ -f $MTMOD_SRC_ZIP ]; then - rm -f $MTMOD_SRC_ZIP -fi -rm -Rvf $MTMOD_UNZ_NAME -#as of 2016-02-20, CRASHES on default 0.4.9 minetesterver 0.4.13 git 2016-02-20: -wget https://github.com/tenplus1/protector/archive/master.zip -#expertmm fork to work in above situation: -#wget https://github.com/expertmm/protector/archive/master.zip -#results in UNKNOWN NODE for all protected blocks: wget https://github.com/MinetestForFun/protector/archive/master.zip -mv -f $MTMOD_DL_ZIP $MTMOD_SRC_ZIP -unzip $MTMOD_SRC_ZIP -#sudo rm -Rf "$MT_MYGAME_MODS_PATH/protector-master" -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." > $err_txt - cat $err_txt - sleep 3 - exit 1 -fi +##DO NOT DO THIS (since cme is a modpack): echo "load_mod_cme = true" >> "$WORLD_MT_PATH" +#echo "#cme Creatures MOB-Engine (cme) is a modpack" >> "$WORLD_MT_PATH" + +# description="(must be logged in to forum to download release version at https://forum.minetest.net/download/file.php?id=5282)" +# author="TenPlus1" +add_git_mod mobs mobs_redo https://github.com/tenplus1/mobs_redo.git +echo "load_mod_mobs = true" >> "$WORLD_MT_PATH" +add_git_mod mobs_monster mobs_monster https://github.com/tenplus1/mobs_monster.git +echo "load_mod_mobs_monster = true" >> "$WORLD_MT_PATH" +add_git_mod mobs_animal mobs_animal https://github.com/tenplus1/mobs_animal.git +echo "load_mod_mobs_animal = true" >> "$WORLD_MT_PATH" + +# forum_url="https://forum.minetest.net/viewtopic.php?f=11&t=9376" +# author="tenplus1" +# description="not the original 2012 protector or 2012 fork of 2012 protector; must be logged in to download protector.zip release version at https://forum.minetest.net/download/file.php?id=5046" +add_git_mod protector protector https://github.com/tenplus1/protector.git #sudo su - #WRITEABLE_MINETEST_CONF=$USR_SHARE_MINETEST/games/$MT_MYGAME_NAME/minetest.conf @@ -369,67 +342,17 @@ echo "secure.trusted_mods = advanced_npc" >> "$WRITEABLE_MINETEST_CONF" echo "server_dedicated = false" >> "$WRITEABLE_MINETEST_CONF" echo "hudbars_bar_type = statbar_modern" >> "$WRITEABLE_MINETEST_CONF" sudo mv -f $HOME/minetest.conf "$USR_SHARE_MINETEST/games/$MT_MYGAME_NAME/minetest.conf" -echo "load_mod_protector = true" >> $MT_MYWORLD_DIR/world.mt - - -cd "$HOME/Downloads" -#MTMOD_DL_ZIP=master.tar.gz -MTMOD_DL_ZIP=master.zip -MTMOD_SRC_ZIP=xban2.zip -#MTMOD_UNZ_NAME=minetest-xban2-master -MTMOD_UNZ_NAME=xban2-master -MTMOD_DEST_NAME=xban2 -MTMOD_DEST_PATH=$MT_MYGAME_MODS_PATH/$MTMOD_DEST_NAME -if [ -f $MTMOD_DL_ZIP ]; then - rm -f $MTMOD_DL_ZIP -fi -if [ -f $MTMOD_SRC_ZIP ]; then - rm -f $MTMOD_SRC_ZIP -fi -rm -Rvf $MTMOD_UNZ_NAME -#wget https://github.com/kaeza/minetest-xban2/archive/master.tar.gz -wget https://github.com/minetest-mods/xban2/archive/master.zip -mv $MTMOD_DL_ZIP $MTMOD_SRC_ZIP -#tar -xzvf $MTMOD_SRC_ZIP -unzip $MTMOD_SRC_ZIP -# As http://wiki.minetest.net/Installing_Mods specifies, a mod MUST be renamed to official name as in the official thread of the mod: -mv $MTMOD_UNZ_NAME $MTMOD_DEST_NAME -sudo mv $MTMOD_DEST_NAME "$MTMOD_DEST_PATH" -if [ ! -d "$MTMOD_DEST_PATH" ]; then - echo "ERROR: failed to unzip $MTMOD_DEST_PATH, so cannot continue." > $err_txt - cat $err_txt - sleep 3 - exit 1 -fi +echo "load_mod_protector = true" >> "$WORLD_MT_PATH" -echo "load_mod_xban2 = true" >> "$MT_MYWORLD_DIR/world.mt" +#formerly https://github.com/kaeza/minetest-xban2/archive/master.tar.gz +add_git_mod xban2 xban2 https://github.com/minetest-mods/xban2.git +echo "load_mod_xban2 = true" >> "$WORLD_MT_PATH" -cd "$HOME/Downloads" -MTMOD_DL_ZIP=master.zip -MTMOD_SRC_ZIP=areas.zip -MTMOD_UNZ_NAME=areas-master -MTMOD_DEST_NAME=areas -MTMOD_DEST_PATH=$MT_MYGAME_MODS_PATH/$MTMOD_DEST_NAME echo "Installing ShadowNinja's " echo "Installing ShadowNinja's " >> $MTMOD_SRC_ZIP.txt -if [ -f $MTMOD_DL_ZIP ]; then - rm -f $MTMOD_DL_ZIP -fi -if [ -f $MTMOD_SRC_ZIP ]; then - rm -f $MTMOD_SRC_ZIP -fi -rm -Rvf $MTMOD_UNZ_NAME -wget https://github.com/ShadowNinja/areas/archive/master.zip -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." > $err_txt - cat $err_txt - sleep 3 - exit 1 -fi -echo "load_mod_areas = true" >> "$MT_MYWORLD_DIR/world.mt" +add_git_mod areas areas https://github.com/ShadowNinja/areas.git +echo "load_mod_areas = true" >> "$WORLD_MT_PATH" + if [ -f "$MT_MYGAME_DIR/game.conf.1st" ]; then echo "Already backed up $MT_MYGAME_DIR/game.conf to $MT_MYGAME_DIR/game.conf.1st" @@ -446,147 +369,13 @@ echo "You should see $MT_MYGAME_NAME in the list below if the game was configure minetestserver --gameid list echo "" +add_git_mod unified_inventory unified_inventory https://github.com/minetest-mods/unified_inventory.git +echo "load_mod_unified_inventory = true" >> "$WORLD_MT_PATH" -#ls "$MT_MYGAME_MODS_PATH" -if [ ! -d "$MT_BACKUP_GAMES_DIR" ]; then - mkdir -p "$MT_BACKUP_GAMES_DIR" -#-p to make parent recursively -fi -first_suffix="_1st" -if [ -d "$MT_BACKUP_GAMES_DIR/$mtgame_name$first_suffix" ]; then - echo "already backed up $USR_SHARE_MINETEST/games/$mtgame_name" -else - sudo cp -R "$USR_SHARE_MINETEST/games/$mtgame_name" "$MT_BACKUP_GAMES_DIR/" -fi -#sudo mv "$USR_SHARE_MINETEST/games/fca-game-a" "$USR_SHARE_MINETEST/games/$mtgame_name" - -#UNUSED, and is based on a much older version of minetest_game: -#MTMOD_DL_ZIP=master.zip -#MTMOD_SRC_ZIP=carbone-ng.zip -#MTMOD_UNZ_NAME=carbone-ng-master -#MTMOD_DEST_NAME=carbone-ng -##MTMOD_DEST_PATH=$MT_MYGAME_MODS_PATH/$MTMOD_DEST_NAME -#MTMOD_DEST_PATH=$MT_GAMES_DIR/$MTMOD_DEST_NAME -#if [ ! -z "`ls | grep $MTMOD_UNZ_NAME`" ]; then # works with wildcard in variable -# 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 -#cd "$HOME/Downloads" -#wget https://github.com/Calinou/carbone-ng/archive/master.zip -#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." > $err_txt -# cat $err_txt -# sleep 3 -# exit 1 -#fi - -#sudo cp -R /usr/share/games/minetest/games/carbone-ng /usr/local/share/minetest/games/carbone-ng - -#IF git version is installed: -#if [ -d "/usr/local/share/minetest/games" ]; -#then -#sudo cp -R $USR_SHARE_MINETEST/games/$MT_MYGAME_NAME /usr/local/share/minetest/games/$MT_MYGAME_NAME -#sudo mv $HOME/Downloads/cme /usr/local/share/minetest/games/$MT_MYGAME_NAME/mods/cme -#sudo mv $HOME/Downloads/protector /usr/local/share/minetest/games/$MT_MYGAME_NAME/mods/protector -#fi - -# actually farming REDO as per https://forum.minetest.net/viewtopic.php?f=11&t=9019 -#wget https://forum.minetest.net/download/file.php?id=5045 -#mv "file.php?id=5045" farming.zip -#unzip farming.zip -#sudo rm -Rf $MT_MYGAME_MODS_PATH/farming -#sudo mv farming $MT_MYGAME_MODS_PATH/farming -# breaks 0.4.13 dev version 2016-02-17 (says height_max deprecated, use y_max; and later -#2016-02-17 11:10:19: ERROR[Main]: ModError: Failed to load and run script from $USR_SHARE_MINETEST/games/enliven/mods/farming/init.lua: -#2016-02-17 11:10:19: ERROR[Main]: ...share/minetest/games/enliven/mods/farming/pumpkin.lua:78: attempt to perform arithmetic on field 'LIGHT_MAX' (a nil value) -#2016-02-17 11:10:19: ERROR[Main]: stack traceback: -#2016-02-17 11:10:19: ERROR[Main]: ...share/minetest/games/enliven/mods/farming/pumpkin.lua:78: in main chunk -#2016-02-17 11:10:19: ERROR[Main]: [C]: in function 'dofile' -#2016-02-17 11:10:19: ERROR[Main]: ...al/share/minetest/games/enliven/mods/farming/init.lua:65: in main chunk -# Remove & overwrite Farming REDO since it crashes 0.4.13 git 2016-02-16: -#sudo rm -Rf $MT_MYGAME_MODS_PATH/farming -#sudo cp -R $USR_SHARE_MINETEST/games/$mtgame_name/mods/farming $MT_MYGAME_MODS_PATH/farming - -# MTMOD_DL_ZIP=master.zip -MTMOD_SRC_ZIP=unified_inventory.zip -MTMOD_UNZ_NAME=unified_inventory-master -MTMOD_DEST_NAME=unified_inventory -MTMOD_DEST_PATH=$MT_MYGAME_MODS_PATH/$MTMOD_DEST_NAME -if [ ! -z "`ls | grep $MTMOD_UNZ_NAME`" ]; then # works with wildcard in variable - 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 -# wget -O $MTMOD_SRC_ZIP https://github.com/minetest-technic/unified_inventory/archive/master.zip -# (link above forewards to minetest-mods now) -wget -O $MTMOD_SRC_ZIP https://github.com/minetest-mods/unified_inventory/archive/master.zip -# 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." > $err_txt - cat $err_txt - sleep 3 - exit 1 -fi -echo "load_mod_unified_inventory = true" >> $MT_MYWORLD_DIR/world.mt - - -MTMOD_DL_ZIP=master.zip -MTMOD_SRC_ZIP=technic.zip -MTMOD_UNZ_NAME=technic-master -MTMOD_DEST_NAME=technic -MTMOD_DEST_PATH=$MT_MYGAME_MODS_PATH/$MTMOD_DEST_NAME -if [ ! -z "`ls | grep $MTMOD_UNZ_NAME`" ]; then # works with wildcard in variable - 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://github.com/minetest-technic/technic/archive/master.zip -wget https://github.com/minetest-mods/technic/archive/master.zip -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." > $err_txt - cat $err_txt - sleep 3 - exit 1 -fi -echo "load_mod_technic = true" >> $MT_MYWORLD_DIR/world.mt - - - -#uninstall: -#if [ -d "$MT_MYGAME_MODS_PATH/unified_inventory" ]; then -# if [ -d "$HOME/Backup/unified_inventory" ]; then -# rm -Rf "$HOME/Backup/unified_inventory" -# fi -# sudo mv "$MT_MYGAME_MODS_PATH/unified_inventory" "$HOME/Backup/unified_inventory" -#fi -#reinstall: -#sudo mv "$HOME/Backup/unified_inventory" "$MT_MYGAME_MODS_PATH/unified_inventory" +add_git_mod technic technic https://github.com/minetest-mods/technic.git +# load technic/technic: +echo "load_mod_technic = true" >> "$WORLD_MT_PATH" -MTMOD_DL_ZIP=treasurer0.2.0.zip MTMOD_SRC_ZIP=treasurer0.2.0.zip MTMOD_UNZ_NAME=treasurer MTMOD_DEST_NAME=treasurer @@ -609,55 +398,26 @@ fi if [ ! -z "`ls | grep $MTMOD_UNZ_NAME`" ]; then # works with wildcard in variable 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 -wget http://axlemedia.net/abiyahh/users/Wuzzy/downloads/treasurer0.2.0.zip +wget -O $MTMOD_SRC_ZIP http://axlemedia.net/abiyahh/users/Wuzzy/downloads/treasurer0.2.0.zip unzip $MTMOD_SRC_ZIP sudo mv -f $MTMOD_UNZ_NAME "$MTMOD_DEST_PATH" if [ ! -d "$MTMOD_DEST_PATH" ]; then echo "ERROR: failed to unzip $MTMOD_DEST_PATH, so cannot continue." > $err_txt cat $err_txt - sleep 3 + echo " press Ctrl C to cancel ENLIVEN install or this terminal will close..." + sleep 1 + echo " 3..." + sleep 1 + echo " 2..." + sleep 1 + echo " 1..." + sleep 1 exit 1 fi -echo "load_mod_treasurer = true" >> $MT_MYWORLD_DIR/world.mt - - -#DEPRECATED, replaced by spawners (which includes pyramids worldgen mod) -#MTMOD_DL_ZIP=ebf839579197053b2ead85072757f23158960319.zip -#MTMOD_SRC_ZIP=tsm_pyramids.zip -#MTMOD_UNZ_NAME=tsm_pyramids-* -#MTMOD_DEST_NAME=tsm_pyramids -#MTMOD_DEST_PATH=$MT_MYGAME_MODS_PATH/$MTMOD_DEST_NAME -#if [ ! -z "`ls | grep $MTMOD_UNZ_NAME`" ]; then # works with wildcard in variable -# 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 -#wget http://repo.or.cz/w/minetest_pyramids/tsm_pyramids.git/snapshot/ebf839579197053b2ead85072757f23158960319.zip -#mv $MTMOD_DL_ZIP $MTMOD_SRC_ZIP -#unzip $MTMOD_SRC_ZIP -#sudo mv -f $MTMOD_UNZ_NAME "$MTMOD_DEST_PATH" -#if [ ! -d "$MTMOD_DEST_PATH" ]; then -# echo "ERROR: failed to unzip $MTMOD_DEST_PATH, so cannot continue." > $err_txt -# cat $err_txt -# sleep 3 -# exit 1 -#fi - -#an old version of worldedit included in a minetest fork last updated 2016: -#MTMOD_DL_ZIP=akiba-* -#wget http://git.akiba.fr:81/minetest/akiba/repository/archive.zip?ref=af571404a27a2cb06842c644930344f565a0b786 -#rm -f $MTMOD_DL_ZIP - +echo "load_mod_treasurer = true" >> "$WORLD_MT_PATH" cd "$HOME/Downloads" MTMOD_DEST_NAME=trm_pyramids @@ -683,390 +443,77 @@ sudo mv -f LICENSE "$MTMOD_DEST_PATH/" cd .. rmdir "$MTMOD_UNZ_NAME" -#Wuzzy's hudbars (no builtin bars; used by sprint, hbhunger, and hbarmor) https://forum.minetest.net/viewtopic.php?f=11&t=11153&hilit=hunger -cd $HOME/Downloads -#MTMOD_DL_ZIP=master.zip -#MTMOD_SRC_ZIP=hudbars.zip -MTMOD_UNZ_NAME=minetest_hudbars -MTMOD_DEST_NAME=hudbars -MTMOD_DEST_PATH=$MT_MYGAME_MODS_PATH/$MTMOD_DEST_NAME -if [ ! -z "`ls | grep $MTMOD_UNZ_NAME`" ]; then # works with wildcard in variable -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 -git clone git://repo.or.cz/minetest_hudbars.git -#aka http://repo.or.cz/w/minetest_hudbars.git -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." > $err_txt - cat $err_txt - sleep 3 - exit 1 -fi +# forum_url="https://forum.minetest.net/viewtopic.php?f=11&t=11153&hilit=hunger" +# description="Wuzzy's hudbars (no builtin bars; used by sprint, hbhunger, and hbarmor)" +add_git_mod hudbars minetest_hudbars git://repo.or.cz/minetest_hudbars.git +# author="Wuzzy" +# forum_url="https://forum.minetest.net/viewtopic.php?f=11&t=11153&hilit=hunger" +add_git_mod hbarmor minetest_hbarmor git://repo.or.cz/minetest_hbarmor.git -if [ ! -d "$MT_MYGAME_MODS_PATH/hudbars" ]; then -cd "$HOME/Downloads" -#MTMOD_DL_ZIP=hud_hunger-2_x_1-BlockMen.zip -#MTMOD_SRC_ZIP=hud_hunger-2_x_1-BlockMen.zip -MTMOD_DL_ZIP=master.zip -MTMOD_SRC_ZIP=hud_hunger.zip -MTMOD_UNZ_NAME=hud_hunger -MTMOD_DEST_NAME=hud_hunger -MTMOD_DEST_PATH=$MT_MYGAME_MODS_PATH/$MTMOD_DEST_NAME -#in case someone installed the mods apart from the modpack: -if [ -d "$MT_MYGAME_MODS_PATH/hud" ]; then - sudo rm -Rf "$MT_MYGAME_MODS_PATH/hud" -fi -if [ -d "$MT_MYGAME_MODS_PATH/hunger" ]; then - sudo rm -Rf "$MT_MYGAME_MODS_PATH/hunger" -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 -rm -Rvf $MTMOD_UNZ_NAME -#BlockMen's is not maintained, & has problem on hud/buildin line 79 (crash since air can be nil) -#wget https://github.com/BlockMen/hud_hunger/releases/download/2.x.1/hud_hunger-2_x_1-BlockMen.zip -#FozLand's has a couple fixes -#wget https://github.com/FozLand/hud_hunger/archive/master.zip -#tenplus1's fixes nil air, nil player, and sprint -wget https://github.com/tenplus1/hud_hunger/archive/master.zip -unzip $MTMOD_SRC_ZIP -sudo mv $MTMOD_UNZ_NAME "$MTMOD_DEST_PATH" -sudo rm "$MTMOD_DEST_PATH/hunger/functions_UNUSED_sprint.lua" -sudo mv "$MTMOD_DEST_PATH/hunger/functions.lua" "$MTMOD_DEST_PATH/hunger/functions_UNUSED_sprint.lua" -sudo mv "$MTMOD_DEST_PATH/hunger/functions_(nosprint).lua" "$MTMOD_DEST_PATH/hunger/functions.lua" -sudo rm "$MTMOD_DEST_PATH/hunger/init_UNUSED_sprint.lua" -sudo mv "$MTMOD_DEST_PATH/hunger/init.lua" "$MTMOD_DEST_PATH/hunger/init_UNUSED_sprint.lua" -sudo mv "$MTMOD_DEST_PATH/hunger/init_(nosprint).lua" "$MTMOD_DEST_PATH/hunger/init.lua" -if [ ! -d "$MTMOD_DEST_PATH" ]; then - echo "ERROR: failed to unzip $MTMOD_DEST_PATH, so cannot continue." > $err_txt - cat $err_txt - sleep 3 - exit 1 -fi -# END IF no hudbars mod -else -if [ -d "$MT_MYGAME_MODS_PATH/hud_hunger" ]; then -sudo rm -Rvf "$MT_MYGAME_MODS_PATH/hud_hunger" -fi -fi +# author="Wuzzy +# description="hbhunger for hudbars" +# forum_url="https://forum.minetest.net/viewtopic.php?f=11&t=11153&hilit=hunger" +add_git_mod hbhunger minetest_hbhunger git://repo.or.cz/minetest_hbhunger.git -#Wuzzy's hbarmor for hudbars https://forum.minetest.net/viewtopic.php?f=11&t=11153&hilit=hunger -cd $HOME/Downloads -#MTMOD_DL_ZIP=master.zip -#MTMOD_SRC_ZIP=hudbars.zip -MTMOD_UNZ_NAME=minetest_hbarmor -MTMOD_DEST_NAME=hbarmor -MTMOD_DEST_PATH=$MT_MYGAME_MODS_PATH/$MTMOD_DEST_NAME -if [ ! -z "`ls | grep $MTMOD_UNZ_NAME`" ]; then # works with wildcard in variable - 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 -git clone git://repo.or.cz/minetest_hbarmor.git -#aka http://repo.or.cz/minetest_hbarmor.git/snapshot/bfc5f8cbb560eff6f206eec3242f8401d11c1310.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." > $err_txt - cat $err_txt - sleep 3 - exit 1 -fi +add_git_mod moreblocks moreblocks https://github.com/minetest-mods/moreblocks.git +add_git_mod pipeworks pipeworks https://github.com/minetest-mods/pipeworks.git +add_git_mod plantlife_modpack plantlife_modpack https://github.com/minetest-mods/plantlife_modpack.git -#Wuzzy's hbhunger for hudbars https://forum.minetest.net/viewtopic.php?f=11&t=11153&hilit=hunger +# forum_url="https://forum.minetest.net/viewtopic.php?f=9&t=12368" +# description="Installing Napiophelios's lapis fork since has blocks, but minetest-mods has a version as well, with dye (not used): https://forum.minetest.net/viewtopic.php?f=9&t=11287" +add_git_mod lapis LapisLazuli https://github.com/Napiophelios/LapisLazuli.git +echo "patching lapis (Napiophelios's fork) to enable columns..." cd $HOME/Downloads -#MTMOD_DL_ZIP=master.zip -#MTMOD_SRC_ZIP=hbhunger.zip -MTMOD_UNZ_NAME=minetest_hbhunger -MTMOD_DEST_NAME=hbhunger -MTMOD_DEST_PATH=$MT_MYGAME_MODS_PATH/$MTMOD_DEST_NAME -if [ ! -z "`ls | grep $MTMOD_UNZ_NAME`" ]; then # works with wildcard in variable - 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" +if [ -f "init.lua" ]; then + sudo rm init.lua fi -git clone git://repo.or.cz/minetest_hbhunger.git -#aka http://repo.or.cz/minetest_hbhunger.git/snapshot/da70eba4fd0a9644cdb0a5b0d7ee3d93f7e61acf.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." > $err_txt - cat $err_txt - sleep 3 +MTMOD_DEST_NAME=lapis +MTMOD_DEST_PATH=$MT_MYGAME_MODS_PATH/$MTMOD_DEST_NAME +head -3 "$MTMOD_DEST_PATH/init.lua" > init.lua +if [ -f "$MTMOD_DEST_PATH/init.lua" ]; then + if [ ! -f "$MTMOD_DEST_PATH/columns_enabled" ]; then + # cat starting at line after head command above to not skip any + # lines, in case later version changes position of lines + echo 'dofile(minetest.get_modpath("lapis").."/columns.lua")' >> init.lua + tail -n +4 "$MTMOD_DEST_PATH/init.lua" >> init.lua + echo "true" > "columns_enabled" + sudo mv -f columns_enabled "$MTMOD_DEST_PATH/" + sudo mv -f init.lua "$MTMOD_DEST_PATH/" + echo "PATCHED $MTMOD_DEST_PATH/init.lua to enable columns" + else + echo "WARNING: not enabling columns since $MTMOD_DEST_PATH/columns_enabled file exists" + fi +else + echo "FAILED to patch lapis since no $MTMOD_DEST_PATH/init.lua" + echo " press Ctrl C to cancel ENLIVEN install or this terminal will close..." + sleep 1 + echo " 3..." + sleep 1 + echo " 2..." + sleep 1 + echo " 1..." + sleep 1 exit 1 fi +echo "not installing helicopter--crashes 0.4.14-git, but was updated on 2017-06-08 and was not tested since then" +# add_git_mod helicopter helicopter https://github.com/SokolovPavel/helicopter.git +remove_mod helicopter +add_git_mod biome_lib biome_lib https://github.com/minetest-mods/biome_lib.git +add_git_mod moretrees moretrees https://github.com/minetest-mods/moretrees.git +add_git_mod 3d_armor minetest-3d_armor https://github.com/stujones11/minetest-3d_armor.git -cd "$HOME/Downloads" -# MTMOD_DL_ZIP=master.zip -MTMOD_SRC_ZIP=moreblocks.zip -MTMOD_UNZ_NAME=moreblocks-master -MTMOD_DEST_NAME=moreblocks -MTMOD_DEST_PATH=$MT_MYGAME_MODS_PATH/$MTMOD_DEST_NAME -if [ -d "moreblocks-master" ]; then - rm -Rf moreblocks-master -fi -if [ -f "master.zip" ]; then - rm master.zip -fi -if [ -f "moreblocks.zip" ]; then - rm moreblocks.zip -fi -# wget https://gitorious.com/calinou/moreblocks/archive/master.zip -wget -O $MTMOD_SRC_ZIP https://github.com/minetest-mods/moreblocks/archive/master.zip -# mv $MTMOD_DL_ZIP $MTMOD_SRC_ZIP -unzip $MTMOD_SRC_ZIP -sudo mv -f $MTMOD_UNZ_NAME "$MTMOD_DEST_PATH" -if [ ! -d "$MTMOD_DEST_PATH" ]; then - echo "ERROR: failed to unzip $MTMOD_DEST_PATH, so cannot continue." > $err_txt - cat $err_txt - sleep 3 - exit 1 -fi +#mv minetest-3d_armor-master minetest-3d_armor_MODPACK +#sudo mv minetest-3d_armor_MODPACK/wieldview $MT_MYGAME_MODS_PATH/wieldview +#sudo mv minetest-3d_armor_MODPACK/3d_armor $MT_MYGAME_MODS_PATH/3d_armor +#sudo mv minetest-3d_armor_MODPACK/shields $MT_MYGAME_MODS_PATH/shields +#echo "load_mod_wieldview = true" >> "$WORLD_MT_PATH" +echo "load_mod_3d_armor = true" >> "$WORLD_MT_PATH" +#echo "load_mod_shields = true" >> "$WORLD_MT_PATH" +#echo "load_mod_technic_armor = false" >> "$WORLD_MT_PATH" - -MTMOD_SRC_ZIP=pipeworks.zip -MTMOD_UNZ_NAME=pipeworks-master -MTMOD_DEST_NAME=pipeworks -MTMOD_DEST_PATH=$MT_MYGAME_MODS_PATH/$MTMOD_DEST_NAME -if [ ! -z "`ls | grep $MTMOD_UNZ_NAME`" ]; then # works with wildcard in variable - rm -Rf "$MTMOD_UNZ_NAME" -fi -if [ -f "$MTMOD_SRC_ZIP" ]; then - rm -f "$MTMOD_SRC_ZIP" -fi -#wget -O $MTMOD_SRC_ZIP https://github.com/VanessaE/pipeworks/archive/master.zip -wget -O $MTMOD_SRC_ZIP https://github.com/minetest-mods/pipeworks/archive/master.zip -unzip "$MTMOD_SRC_ZIP" -if [ -d "$MTMOD_DEST_PATH" ]; then - echo "removing old $MTMOD_DEST_PATH" - sudo rm -Rf "$MTMOD_DEST_PATH" -fi -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." > $err_txt - cat $err_txt - sleep 3 - exit 1 -fi - - -MTMOD_DL_ZIP=master.zip -MTMOD_SRC_ZIP=plantlife_modpack.zip -MTMOD_UNZ_NAME=plantlife_modpack-master -MTMOD_DEST_NAME=plantlife_modpack -MTMOD_DEST_PATH=$MT_MYGAME_MODS_PATH/$MTMOD_DEST_NAME -if [ ! -z "`ls | grep $MTMOD_UNZ_NAME`" ]; then # works with wildcard in variable - rm -Rf "$MTMOD_UNZ_NAME" -fi -if [ -d "$MTMOD_DEST_PATH" ]; then - sudo rm -Rf "$MTMOD_DEST_PATH" -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 -wget https://github.com/VanessaE/plantlife_modpack/archive/master.zip -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." > $err_txt - cat $err_txt - sleep 3 - exit 1 -fi - - - -#NOTE: https://forum.minetest.net/viewtopic.php?f=9&t=12368 -# has blocks, but OTHER ONE ONLY HAS DYE (not used): https://forum.minetest.net/viewtopic.php?f=9&t=11287 -cd "$HOME/Downloads" -MTMOD_DL_ZIP=master.zip -MTMOD_SRC_ZIP=lapis_Napiophelios.zip -MTMOD_UNZ_NAME=LapisLazuli-master -MTMOD_DEST_NAME=lapis -MTMOD_DEST_PATH=$MT_MYGAME_MODS_PATH/$MTMOD_DEST_NAME -if [ ! -z "`ls | grep $MTMOD_UNZ_NAME`" ]; then # works with wildcard in variable - 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 -wget https://github.com/Napiophelios/LapisLazuli/archive/master.zip -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." > $err_txt - cat $err_txt - sleep 3 - exit 1 -fi - -#cd "$HOME/Downloads" -#MTMOD_DL_ZIP=master.zip -#MTMOD_SRC_ZIP=helicopter.zip -#MTMOD_UNZ_NAME=helicopter-master -#MTMOD_DEST_NAME=helicopter -#if [ -f "$MTMOD_DL_ZIP" ]; then -# rm -f "$MTMOD_DL_ZIP" -#fi -#if [ -f "$MTMOD_SRC_ZIP" ]; then -# rm -f "$MTMOD_SRC_ZIP" -#fi -#wget https://github.com/SokolovPavel/helicopter/archive/master.zip -#mv "$MTMOD_DL_ZIP" "$MTMOD_SRC_ZIP" -#unzip "$MTMOD_SRC_ZIP" -#sudo mv "$MTMOD_UNZ_NAME" "$MT_MYGAME_MODS_PATH/$MTMOD_DEST_NAME" -#UNINSTALL since crashes 0.4.13 git 2016-02: -#sudo mv "$MT_MYGAME_MODS_PATH/$MTMOD_DEST_NAME" "$MTMOD_UNZ_NAME" - -MTMOD_DL_ZIP=master.zip -MTMOD_SRC_ZIP=biome_lib.zip -MTMOD_UNZ_NAME=biome_lib-master -MTMOD_DEST_NAME=biome_lib -MTMOD_DEST_PATH=$MT_MYGAME_MODS_PATH/$MTMOD_DEST_NAME -if [ ! -z "`ls | grep $MTMOD_UNZ_NAME`" ]; then # works with wildcard in variable - 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 -wget https://github.com/VanessaE/biome_lib/archive/master.zip -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." > $err_txt - cat $err_txt - sleep 3 - exit 1 -fi - -MTMOD_DL_ZIP=master.zip -MTMOD_SRC_ZIP=moretrees.zip -MTMOD_UNZ_NAME=moretrees-master -MTMOD_DEST_NAME=moretrees -MTMOD_DEST_PATH=$MT_MYGAME_MODS_PATH/$MTMOD_DEST_NAME -if [ ! -z "`ls | grep $MTMOD_UNZ_NAME`" ]; then # works with wildcard in variable - 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 -wget https://github.com/VanessaE/moretrees/archive/master.zip -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." > $err_txt - cat $err_txt - sleep 3 - exit 1 -fi - - -MTMOD_DL_ZIP=master.zip -MTMOD_SRC_ZIP=minetest-3d_armor.zip -MTMOD_UNZ_NAME=minetest-3d_armor-master -MTMOD_DEST_NAME=3d_armor -MTMOD_DEST_PATH=$MT_MYGAME_MODS_PATH/$MTMOD_DEST_NAME -if [ ! -z "`ls | grep $MTMOD_UNZ_NAME`" ]; then # works with wildcard in variable - rm -Rf "$MTMOD_UNZ_NAME" -fi -if [ -d "$MTMOD_DEST_PATH" ]; then - sudo rm -Rf "$MTMOD_DEST_PATH" -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 -wget https://github.com/stujones11/minetest-3d_armor/archive/master.zip -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." > $err_txt - cat $err_txt - sleep 3 - exit 1 -fi -#mv minetest-3d_armor-master minetest-3d_armor_MODPACK -#sudo mv minetest-3d_armor_MODPACK/wieldview $MT_MYGAME_MODS_PATH/wieldview -#sudo mv minetest-3d_armor_MODPACK/3d_armor $MT_MYGAME_MODS_PATH/3d_armor -#sudo mv minetest-3d_armor_MODPACK/shields $MT_MYGAME_MODS_PATH/shields -#echo "load_mod_wieldview = true" >> $MT_MYWORLD_DIR/world.mt -echo "load_mod_3d_armor = true" >> $MT_MYWORLD_DIR/world.mt -#echo "load_mod_shields = true" >> $MT_MYWORLD_DIR/world.mt -#echo "load_mod_technic_armor = false" >> $MT_MYWORLD_DIR/world.mt - -cd ~/Downloads -MTMOD_DL_ZIP=master.zip -MTMOD_SRC_ZIP=caverealms.zip -MTMOD_UNZ_NAME=minetest-caverealms-master -MTMOD_DEST_NAME=caverealms -MTMOD_DEST_PATH=$MT_MYGAME_MODS_PATH/$MTMOD_DEST_NAME -if [ ! -z "`ls | grep $MTMOD_UNZ_NAME`" ]; then # works with wildcard in variable - rm -Rf "$MTMOD_UNZ_NAME" -fi -if [ -d "$MTMOD_DEST_PATH" ]; then - sudo rm -Rf "$MTMOD_DEST_PATH" -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 -wget https://github.com/HeroOfTheWinds/minetest-caverealms/archive/master.zip -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." > $err_txt - cat $err_txt - sleep 3 - exit 1 -fi +add_git_mod caverealms minetest-caverealms https://github.com/HeroOfTheWinds/minetest-caverealms #if [ -f "master.zip" ]; then #rm master.zip @@ -1079,56 +526,11 @@ fi # (since snow prevents server 0.4.13 git 2016-02-16 from starting): #sudo mv $MT_MYGAME_MODS_PATH/snow $HOME/Downloads/snow -MTMOD_DL_ZIP=master.zip -MTMOD_SRC_ZIP=moreores.zip -MTMOD_UNZ_NAME=moreores-master -MTMOD_DEST_NAME=moreores -MTMOD_DEST_PATH=$MT_MYGAME_MODS_PATH/$MTMOD_DEST_NAME -if [ ! -z "`ls | grep $MTMOD_UNZ_NAME`" ]; then # works with wildcard in variable - 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 -wget https://github.com/Calinou/moreores/archive/master.zip -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." > $err_txt - cat $err_txt - sleep 3 - exit 1 -fi +# formerly https://github.com/Calinou/moreores.git +add_git_mod moreores moreores https://github.com/minetest-mods/moreores.git -MTMOD_DL_ZIP=master.zip -MTMOD_SRC_ZIP=sprint.zip -MTMOD_UNZ_NAME=sprint-master -MTMOD_DEST_NAME=sprint -MTMOD_DEST_PATH=$MT_MYGAME_MODS_PATH/$MTMOD_DEST_NAME -if [ ! -z "`ls | grep $MTMOD_UNZ_NAME`" ]; then # works with wildcard in variable - 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 -# sprint https://forum.minetest.net/viewtopic.php?f=9&t=9650 -wget https://github.com/GunshipPenguin/sprint/archive/master.zip -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." > $err_txt - cat $err_txt - sleep 3 - exit 1 -fi +# forum_url="https://forum.minetest.net/viewtopic.php?f=9&t=9650" +add_git_mod sprint sprint https://github.com/GunshipPenguin/sprint.git #the following is NOT needed, since one of the mods above adds the home gui and home permission (but no /home or /sethome command) #if [ -f "master.zip" ]; then @@ -1145,33 +547,9 @@ fi #sh chunkymap/install-ubuntu.sh -cd "$HOME/Downloads" -#does NOT have a zip extension when downloaded via wget: -MTMOD_SRC_ZIP=mesecons_modpack.zip -MTMOD_UNZ_NAME=mesecons-master -MTMOD_DEST_NAME=mesecons -MTMOD_DEST_PATH=$MT_MYGAME_MODS_PATH/$MTMOD_DEST_NAME -if [ ! -z "`ls | grep $MTMOD_UNZ_NAME`" ]; then # works with wildcard in variable - rm -Rf $MTMOD_UNZ_NAME -fi -if [ -f "$MTMOD_SRC_ZIP" ]; then - rm -f "$MTMOD_SRC_ZIP" -fi -wget -O $MTMOD_SRC_ZIP https://github.com/minetest-mods/mesecons/archive/master.zip -unzip $MTMOD_SRC_ZIP -if [ -d "$MTMOD_DEST_PATH" ]; then - sudo rm -Rf "$MTMOD_DEST_PATH" -fi -sudo mv -f $MTMOD_UNZ_NAME "$MTMOD_DEST_PATH" -if [ ! -d "$MTMOD_DEST_PATH" ]; then - echo "ERROR: failed to create $MTMOD_DEST_PATH, so cannot continue." > $err_txt - cat $err_txt - sleep 3 - exit 1 -fi - +add_git_mod mesecons mesecons https://github.com/minetest-mods/mesecons ############ REQUIRES MESECONS ############ -##### NEEDED since carts in minetest_game added much of this functionality but not yet startstoprail or detectorrail ##### +##### NEEDED since carts in minetest_game added much of this functionality but not yet startstoprail nor detectorrail ##### #See also carts plus, a fork of carts (the PilzAdam one later added to minetest_game) https://github.com/Kilarin/minetest-mod-carts-plus which adds touring rails, a hand break, switching, and view locking #NOTE: boost_cart has handbrake (back key), Rail junction switching with the 'right-left' walking keys #So either install this mod or do (less functionality): @@ -1181,380 +559,51 @@ fi #-- carts:cart #-- carts:powerrail #-- carts:rail -cd "$HOME/Downloads" -MTMOD_DL_ZIP=master.zip -MTMOD_SRC_ZIP=boost_cart.zip -MTMOD_UNZ_NAME=boost_cart-master -MTMOD_DEST_NAME=boost_cart -MTMOD_DEST_PATH=$MT_MYGAME_MODS_PATH/$MTMOD_DEST_NAME -if [ ! -z "`ls | grep $MTMOD_UNZ_NAME`" ]; then # works with wildcard in variable - 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://github.com/SmallJoker/boost_cart/archive/master.zip -mv $MTMOD_DL_ZIP "$MTMOD_SRC_ZIP" -unzip "$MTMOD_SRC_ZIP" -#https://forum.minetest.net/viewtopic.php?f=11&t=10172&hilit=boost+cart -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." > $err_txt - cat $err_txt - sleep 3 - exit 1 -fi - -cd "$HOME/Downloads" -#MTMOD_DL_ZIP=archive.zip -#MTMOD_SRC_ZIP=throwing_Echoes91.zip -#MTMOD_SRC_ZIP=throwing_MinetestForFun.zip -MTMOD_SRC_ZIP=throwing_minetest-mods.zip -#MTMODPACK_UNZ_NAME=server-minetestforfun-master -MTMOD_UNZ_NAME=throwing-master -MTMOD_DEST_NAME=throwing -MTMOD_DEST_PATH=$MT_MYGAME_MODS_PATH/$MTMOD_DEST_NAME -if [ -d "$MTMOD_DEST_PATH" ]; then - echo "Removing old version of throwing..." - sudo rm -Rf $MTMOD_DEST_PATH -fi -#echo "Installing MinetestForFun's PvP fork of Echoes91's (NOT Echoes91's Throwing enhanced NOT PilzAdam's NOT Jeija's) Throwing " -if [ -f "throwing_Echoes91.zip" ]; then - rm throwing_Echoes91.zip -fi -if [ ! -z "`ls | grep $MTMOD_UNZ_NAME`" ]; then # works with wildcard in variable - rm -Rf $MTMOD_UNZ_NAME -fi -#if [ -d "$MTMODPACK_UNZ_NAME" ]; then -# rm -Rf $MTMODPACK_UNZ_NAME -#fi -if [ -f "$MTMOD_SRC_ZIP" ]; then - rm -f "$MTMOD_SRC_ZIP" -fi -#wget -O $MTMOD_SRC_ZIP https://github.com/PilzAdam/throwing/zipball/master -#wget -O $MTMOD_SRC_ZIP https://gitlab.com/echoes91/throwing/repository/archive.zip -#wget -O $MTMOD_SRC_ZIP https://github.com/MinetestForFun/server-minetestforfun/archive/master.zip -wget -O $MTMOD_SRC_ZIP https://github.com/minetest-mods/throwing/archive/master.zip +# forum_url="https://forum.minetest.net/viewtopic.php?f=11&t=10172&hilit=boost+cart" +add_git_mod boost_cart boost_cart https://github.com/SmallJoker/boost_cart.git echo "Installing minetest-mods' (NOT MinetestForFun's PvP fork of Echoes91's, NOT Echoes91's Throwing enhanced NOT PilzAdam's NOT Jeija's) Throwing " -#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." > $err_txt - cat $err_txt - sleep 3 - exit 1 -fi - -cd $HOME/Downloads -MTMOD_SRC_ZIP=throwing_arrows.zip -MTMOD_UNZ_NAME=throwing_arrows-master -MTMOD_DEST_NAME=throwing_arrows -MTMOD_DEST_PATH=$MT_MYGAME_MODS_PATH/$MTMOD_DEST_NAME -if [ ! -z "`ls | grep $MTMOD_UNZ_NAME`" ]; then # works with wildcard in variable - rm -Rf $MTMOD_UNZ_NAME -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 -O $MTMOD_SRC_ZIP https://github.com/minetest-mods/throwing_arrows/archive/master.zip -unzip "$MTMOD_SRC_ZIP" -sudo mv $MTMOD_UNZ_NAME "$MTMOD_DEST_PATH" -sudo rm -Rf "$MTMOD_DEST_PATH/etc" -if [ ! -d "$MTMOD_DEST_PATH" ]; then - echo "ERROR: failed to unzip $MTMOD_DEST_PATH, so cannot continue." > $err_txt - cat $err_txt - sleep 3 - exit 1 -fi - - -cd "$HOME/Downloads" -#MTMOD_DL_ZIP=* -MTMOD_SRC_ZIP=tsm_mines.zip -#MTMOD_UNZ_NAME=tsm_mines-* -MTMOD_UNZ_NAME=tsm_mines -MTMOD_DEST_NAME=tsm_mines -MTMOD_DEST_PATH=$MT_MYGAME_MODS_PATH/$MTMOD_DEST_NAME -if [ -d tsm_mines ]; then - rm -Rf tsm_mines -fi -if [ -f tsm_mines.zip ]; then - rm tsm_mines.zip -fi -if [ -d tsm_mines_zipped ]; then - rm -Rf tsm_mines_zipped -fi -if [ -d "$MTMOD_DEST_PATH" ]; then - sudo rm -Rf "$MTMOD_DEST_PATH" -fi -#if [ ! -d tsm_mines_zipped ]; then -# mkdir tsm_mines_zipped -#fi -#cd tsm_mines_zipped -#wget http://repo.or.cz/w/tsm_mines.git/snapshot/7ff7f5c24c05b463ecfbf80cbd5e8f6f4a4f4520.zip -#wget http://repo.or.cz/tsm_mines.git/shortlog/refs/heads/master -#mv master master.zip -#unzip master.zip -#unzip * -git clone git://repo.or.cz/tsm_mines.git -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." > $err_txt - cat $err_txt - sleep 3 - exit 1 -fi +add_git_mod throwing throwing https://github.com/minetest-mods/throwing.git +add_git_mod throwing_arrows throwing_arrows https://github.com/minetest-mods/throwing_arrows.git +add_git_mod tsm_mines tsm_mines http://repo.or.cz/tsm_mines.git +add_git_mod tsm_railcorridors tsm_railcorridors http://repo.or.cz/RailCorridors/tsm_railcorridors.git -cd "$HOME/Downloads" -#MTMOD_DL_ZIP=* -MTMOD_SRC_ZIP=tsm_railcorridors.zip -#MTMOD_UNZ_NAME=tsm_railcorridors-* -MTMOD_UNZ_NAME=tsm_railcorridors -MTMOD_DEST_NAME=tsm_railcorridors -MTMOD_DEST_PATH=$MT_MYGAME_MODS_PATH/$MTMOD_DEST_NAME -if [ -d $MTMOD_DEST_NAME ]; then - rm -Rf $MTMOD_DEST_NAME -fi -if [ -f $MTMOD_SRC_ZIP ]; then - rm -f $MTMOD_SRC_ZIP -fi -if [ -d tsm_railcorridors_zipped ]; then - rm -Rf tsm_railcorridors_zipped -fi -#if [ ! -d tsm_railcorridors_zipped ]; then -# mkdir tsm_railcorridors_zipped -#fi -if [ -d "$MTMOD_DEST_PATH" ]; then - sudo rm -Rf "$MTMOD_DEST_PATH" -fi -#cd "tsm_railcorridors_zipped" -#wget http://repo.or.cz/w/RailCorridors/tsm_railcorridors.git/snapshot/7fab088e813b777ceddaa56fc980ccc55b0b3f01.zip -git clone git://repo.or.cz/RailCorridors/tsm_railcorridors.git -#unzip * -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." > $err_txt - cat $err_txt - sleep 3 - exit 1 -fi - -cd "$HOME/Downloads" -MTMOD_DL_ZIP=master.zip -MTMOD_SRC_ZIP=fishing_Minetestforfun.zip -MTMOD_UNZ_NAME=fishing-master -MTMOD_DEST_NAME=fishing -MTMOD_DEST_PATH=$MT_MYGAME_MODS_PATH/$MTMOD_DEST_NAME echo "Installing Minetestforfun's (NOT wulfsdad's) fishing " -echo "Installing Minetestforfun's (NOT wulfsdad's) fishing " >> $MTMOD_SRC_ZIP.txt -if [ ! -z "`ls | grep $MTMOD_UNZ_NAME`" ]; then # works with wildcard in variable - 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 -wget https://github.com/MinetestForFun/fishing/archive/master.zip -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." > $err_txt - cat $err_txt - sleep 3 - exit 1 -fi - -cd "$HOME/Downloads" -MTMOD_DL_ZIP=master.zip -MTMOD_SRC_ZIP=compassgps.zip -MTMOD_UNZ_NAME=compassgps-master -MTMOD_DEST_NAME=compassgps -MTMOD_DEST_PATH=$MT_MYGAME_MODS_PATH/$MTMOD_DEST_NAME -echo "Installing Kilarin's compassgps (NOT TeTpaAka, nor Echo, nor PilzAdam compass) " -echo "Installing Kilarin's compassgps (NOT TeTpaAka, nor Echo, nor PilzAdam compass) " >> $MTMOD_SRC_ZIP.txt -if [ ! -z "`ls | grep $MTMOD_UNZ_NAME`" ]; then # works with wildcard in variable - 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 -wget https://github.com/Kilarin/compassgps/archive/master.zip -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." > $err_txt - cat $err_txt - sleep 3 - exit 1 -fi - -MTMOD_DL_ZIP=master.zip -MTMOD_SRC_ZIP=whitelist.zip -MTMOD_UNZ_NAME=whitelist-master -MTMOD_DEST_NAME=whitelist -MTMOD_DEST_PATH=$MT_MYGAME_MODS_PATH/$MTMOD_DEST_NAME -echo "Installing ShadowNinja's whitelist " -echo "Installing ShadowNinja's whitelist " >> $MTMOD_SRC_ZIP.txt -if [ ! -z "`ls | grep $MTMOD_UNZ_NAME`" ]; then # works with wildcard in variable - 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 -wget https://github.com/ShadowNinja/whitelist/archive/master.zip -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." > $err_txt - cat $err_txt - sleep 3 - exit 1 -fi - +echo "Installing Minetestforfun's (NOT wulfsdad's) fishing " >> fishing.txt +add_git_mod fishing fishing https://github.com/MinetestForFun/fishing.git -MTMOD_DEST_NAME=playereffects -MTMOD_DEST_PATH=$MT_MYGAME_MODS_PATH/$MTMOD_DEST_NAME -if [ -f playereffects_Wuzzy.zip ]; then - rm playereffects_Wuzzy.zip -fi -if [ -f "3b860c74ae9803f9a979b12c6f6beb74f96ae62c.zip" ]; then - rm "3b860c74ae9803f9a979b12c6f6beb74f96ae62c.zip" -fi -if [ -d "minetest_playereffects-3b860c7" ]; then - rm -Rf minetest_playereffects-3b860c7 -fi -if [ -d "minetest_playereffects" ]; then - rm -Rf minetest_playereffects -fi cd "$HOME/Downloads" -git clone http://repo.or.cz/minetest_playereffects.git -#wget http://repo.or.cz/minetest_playereffects.git/snapshot/3b860c74ae9803f9a979b12c6f6beb74f96ae62c.zip -#mv "3b860c74ae9803f9a979b12c6f6beb74f96ae62c.zip" playereffects_Wuzzy.zip -#unzip playereffects_Wuzzy.zip -#sudo mv minetest_playereffects* "$MT_MYGAME_MODS_PATH/playereffects" -sudo mv minetest_playereffects "$MTMOD_DEST_PATH" - -#Byakuren. . - -#monoidal_effects by Byakuren [raymoo on GitHub] is deprecated by player_monoids by Byakuren [raymoo on GitHub] +playereffects by Wuzzy -#according to the author https://forum.minetest.net/viewtopic.php?t=13941 -#cd $HOME\Downloads -#MTMOD_DL_ZIP=master.zip -#MTMOD_SRC_ZIP=monoidal_effects.zip -#MTMOD_UNZ_NAME=monoidal_effects-master -#MTMOD_DEST_NAME=monoidal_effects -#MTMOD_DEST_PATH=$MT_MYGAME_MODS_PATH/$MTMOD_DEST_NAME -#if [ ! -z "`ls | grep $MTMOD_UNZ_NAME`" ]; then # works with wildcard in variable -# 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 $MTMOD_SRC_ZIP -#fi -#wget https://github.com/minetest-mods/monoidal_effects/archive/master.zip -#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." > $err_txt -# cat $err_txt -# sleep 3 -# exit 1 -#fi +echo "Installing AntumMT's modernized fork of Kilarin's compassgps (NOT TeTpaAka, nor Echo, nor PilzAdam compass) " +echo "Installing AntumMT's modernized fork of Kilarin's compassgps (NOT TeTpaAka, nor Echo, nor PilzAdam compass) " >> compassgps.txt +# https://github.com/Kilarin/compassgps.git +add_git_mod compassgps mod-compassgps https://github.com/AntumMT/mod-compassgps.git -cd $HOME\Downloads -MTMOD_DL_ZIP=master.zip -MTMOD_SRC_ZIP=player_monoids.zip -MTMOD_UNZ_NAME=player_monoids-master -MTMOD_DEST_NAME=player_monoids -MTMOD_DEST_PATH=$MT_MYGAME_MODS_PATH/$MTMOD_DEST_NAME -if [ ! -z "`ls | grep $MTMOD_UNZ_NAME`" ]; then # works with wildcard in variable - 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 $MTMOD_SRC_ZIP -fi -wget https://github.com/minetest-mods/player_monoids/archive/master.zip -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." > $err_txt - cat $err_txt - sleep 3 - exit 1 -fi +# author="ShadowNinja" +# forum_url="https://forum.minetest.net/viewtopic.php?id=8434" +add_git_mod whitelist whitelist https://github.com/ShadowNinja/whitelist.git +add_git_mod playereffects minetest_playereffects http://repo.or.cz/minetest_playereffects.git -cd "$HOME/Downloads" -MTMOD_DL_ZIP=master -MTMOD_SRC_ZIP=worldedit.zip -MTMOD_UNZ_NAME=Uberi-Minetest-WorldEdit-* -MTMOD_DEST_NAME=worldedit -MTMOD_DEST_PATH=$MT_MYGAME_MODS_PATH/$MTMOD_DEST_NAME -echo "Installing sfan5's " -echo "Installing sfan5's " >> $MTMOD_SRC_ZIP.txt -if [ -f $MTMOD_DL_ZIP ]; then - rm $MTMOD_DL_ZIP -fi -if [ -f $MTMOD_SRC_ZIP ]; then - rm $MTMOD_SRC_ZIP -fi -rm -Rvf $MTMOD_UNZ_NAME -#wget https://github.com/Uberi/MineTest-WorldEdit/zipball/master -mv $MTMOD_DL_ZIP "$MTMOD_SRC_ZIP" -unzip "$MTMOD_SRC_ZIP" -if [ -d "$MTMOD_DEST_PATH" ]; then - sudo rm -Rf "$MTMOD_DEST_PATH" -fi -sudo mv -f $MTMOD_UNZ_NAME "$MTMOD_DEST_PATH" -if [ ! -d "$MTMOD_DEST_PATH" ]; then - echo "ERROR: failed to unzip $MTMOD_DEST_PATH, so cannot continue." > $err_txt - cat $err_txt - sleep 3 - exit 1 -fi +# Byakuren. . +# add_git_mod monoidal_effects monoidal_effects https://github.com/minetest-mods/monoidal_effects.git +# monoidal_effects by Byakuren [raymoo on GitHub] is deprecated by player_monoids by Byakuren [raymoo on GitHub] +playereffects by Wuzzy +# according to the author https://forum.minetest.net/viewtopic.php?t=13941 +add_git_mod player_monoids player_monoids https://github.com/minetest-mods/player_monoids.git -# add_zipped_mod worldedit Uberi-Minetest-WorldEdit-* https://github.com/Uberi/MineTest-WorldEdit/zipball/master -# add_zipped_mod worldedit Minetest-WorldEdit-* https://github.com/Uberi/MineTest-WorldEdit/zipball/master -add_git_clone_mod worldedit Uberi-Minetest-WorldEdit https://github.com/Uberi/Minetest-WorldEdit.git +# add_zip_mod worldedit Uberi-Minetest-WorldEdit-* https://github.com/Uberi/MineTest-WorldEdit/zipball/master +# add_zip_mod worldedit Minetest-WorldEdit-* https://github.com/Uberi/MineTest-WorldEdit/zipball/master +echo "Installing Uberi's worldedit..." +add_git_mod worldedit Minetest-WorldEdit https://github.com/Uberi/Minetest-WorldEdit.git #MarkBu's ambience/ambiance ambient sounds (burli on https://forum.minetest.net/viewtopic.php?f=9&t=14814 ) -#add_zipped_mod ambianceplus ambianceplus-master https://github.com/MarkuBu/ambianceplus/archive/master.zip +#add_zip_mod ambianceplus ambianceplus-master https://github.com/MarkuBu/ambianceplus/archive/master.zip # tenplus1's ambience/ambiance ambient sounds (fork linked at original's thread at https://forum.minetest.net/viewtopic.php?f=11&t=2807&start=275 ) -add_zipped_mod ambience ambience-master https://github.com/tenplus1/ambience/archive/master.zip +add_zip_mod ambience ambience-master https://github.com/tenplus1/ambience/archive/master.zip # expertmm fork of LeMagnesium's minetest-mod-metatools -add_zipped_mod metatools minetest-mod-metatools-master https://github.com/expertmm/minetest-mod-metatools/archive/master.zip +add_zip_mod metatools minetest-mod-metatools-master https://github.com/expertmm/minetest-mod-metatools/archive/master.zip #[mod-pack] sky critters (for mobs_redo) [mobs_sky] #requires mobs redo -add_zipped_mod mobs_sky mobs_sky-master https://github.com/blert2112/mobs_sky/archive/master.zip +add_zip_mod mobs_sky mobs_sky-master https://github.com/blert2112/mobs_sky/archive/master.zip # forum_url: https://forum.minetest.net/viewtopic.php?f=11&t=13857 # description: @@ -1566,7 +615,8 @@ add_zipped_mod mobs_sky mobs_sky-master https://github.com/blert2112/mobs_sky/ar # * spawners_env: appears in Dungeons and Temples (the pink stone ones); spawns hostile mobs; has small chance of spawning a spawner # * spawners_mobs: spawns non-hostile mobs # * spawners_ores: spawns ores -add_zipped_mod spawners minetest_gamers-spawners-* https://bitbucket.org/minetest_gamers/spawners/get/master.zip +#add_zip_mod spawners minetest_gamers-spawners-* https://bitbucket.org/minetest_gamers/spawners/get/master.zip +add_git_mod spawners spawners https://bitbucket.org/minetest_gamers/spawners.git MTMOD_DEST_NAME=spawners/spawners_ores MTMOD_DEST_PATH=$MT_MYGAME_MODS_PATH/$MTMOD_DEST_NAME if [ -d "$MTMOD_DEST_PATH" ]; then @@ -1574,12 +624,26 @@ if [ -d "$MTMOD_DEST_PATH" ]; then sudo rm -Rf "$MTMOD_DEST_PATH" else echo "ERROR: could not find $MTMOD_DEST_PATH for removal, so cancelling ENLIVEN install" - sleep 3 + echo " press Ctrl C to cancel ENLIVEN install or this terminal will close..." + sleep 1 + echo " 3..." + sleep 1 + echo " 2..." + sleep 1 + echo " 1..." + sleep 1 exit 1 fi if [ -d "$MTMOD_DEST_PATH" ]; then echo "ERROR: could not remove $MTMOD_DEST_PATH for removal, so cancelling ENLIVEN install" - sleep 3 + echo " press Ctrl C to cancel ENLIVEN install or this terminal will close..." + sleep 1 + echo " 3..." + sleep 1 + echo " 2..." + sleep 1 + echo " 1..." + sleep 1 exit 1 fi echo "SPAWN_PYRAMIDS = true" > settings.txt @@ -1591,26 +655,26 @@ echo "see also expertmm's game-install-enliven-testing-SPAWNERS_BOTH_DEBUG.txt" # forum_url: https://forum.minetest.net/viewtopic.php?t=12189 # description: Adds animations to the players' head -add_zipped_mod playeranim playeranim-master https://github.com/minetest-mods/playeranim/archive/master.zip -add_zipped_mod homedecor_modpack homedecor_modpack-master https://github.com/minetest-mods/homedecor_modpack/archive/master.zip +add_zip_mod playeranim playeranim-master https://github.com/minetest-mods/playeranim/archive/master.zip +add_zip_mod homedecor_modpack homedecor_modpack-master https://github.com/minetest-mods/homedecor_modpack/archive/master.zip # expertmm fork of a rather non-maintained mod--forum link is at https://forum.minetest.net/viewtopic.php?id=3663 # (original mod was at https://github.com/Doc22/birthstones-mod/archive/master.zip) -add_zipped_mod birthstones minetest-birthstones-master https://github.com/expertmm/minetest-birthstones/archive/master.zip -add_zipped_mod bakedclay bakedclay-master https://github.com/tenplus1/bakedclay/archive/master.zip +add_zip_mod birthstones minetest-birthstones-master https://github.com/expertmm/minetest-birthstones/archive/master.zip +add_zip_mod bakedclay bakedclay-master https://github.com/tenplus1/bakedclay/archive/master.zip # https://forum.minetest.net/viewtopic.php?f=11&t=12440&p=310915#p310915 # wget https://forum.minetest.net/download/file.php?id=6140 # forum link file.php?id=6140 changed, so use salahzar's GitHub upload instead: -add_zipped_mod invhack minetest-invhack-master https://github.com/salahzar/minetest-invhack/archive/master.zip -add_zipped_mod unifieddyes unifieddyes-master https://github.com/minetest-mods/unifieddyes/archive/master.zip +add_zip_mod invhack minetest-invhack-master https://github.com/salahzar/minetest-invhack/archive/master.zip +add_zip_mod unifieddyes unifieddyes-master https://github.com/minetest-mods/unifieddyes/archive/master.zip #Sokomine's original version has no security ( https://forum.minetest.net/viewtopic.php?id=4877 ) # https://github.com/Sokomine/travelnet/archive/master.zip -add_zipped_mod travelnet travelnet-master https://github.com/expertmm/travelnet/archive/master.zip -add_zipped_mod anvil anvil-master https://github.com/minetest-mods/anvil/archive/master.zip -add_zipped_mod sling sling-master https://github.com/minetest-mods/sling/archive/master.zip +add_zip_mod travelnet travelnet-master https://github.com/expertmm/travelnet/archive/master.zip +add_zip_mod anvil anvil-master https://github.com/minetest-mods/anvil/archive/master.zip +add_zip_mod sling sling-master https://github.com/minetest-mods/sling/archive/master.zip #REPLACES PilzAdam's, modified by kaeza, maintained by VenessaE; FORMERLY in homedecor_modpack #forum post: https://forum.minetest.net/viewtopic.php?t=13762 # kaeza's signs_lib (forked from PilzAdam's and TheXYZ's code) was moved here from: https://github.com/kaeza/minetest-signs_lib-extrafonts/archive/master.zip -add_zipped_mod signs_lib signs_lib-master https://github.com/minetest-mods/signs_lib/archive/master.zip +add_zip_mod signs_lib signs_lib-master https://github.com/minetest-mods/signs_lib/archive/master.zip # EXTRA FONTS PACK for signs_lib DOESN'T SEEM TO WORK IN MULTIPLAYER, and is unwieldy to use: #cd $HOME/Downloads #MTMOD_DL_ZIP=master.zip @@ -1638,116 +702,62 @@ add_zipped_mod signs_lib signs_lib-master https://github.com/minetest-mods/signs #if [ ! -d "$MTMOD_DEST_PATH" ]; then # echo "ERROR: failed to unzip $MTMOD_DEST_PATH, so cannot continue." > $err_txt # cat $err_txt -# sleep 3 +# echo " press Ctrl C to cancel ENLIVEN install or this terminal will close..." +# sleep 1 +# echo " 3..." +# sleep 1 +# echo " 2..." +# sleep 1 +# echo " 1..." +# sleep 1 # exit 1 #fi -cd $HOME/Downloads -MTMOD_DL_ZIP=master.zip -MTMOD_SRC_ZIP=farming.zip -MTMOD_UNZ_NAME=farming-master -MTMOD_DEST_NAME=farming -MTMOD_DEST_PATH=$MT_MYGAME_MODS_PATH/$MTMOD_DEST_NAME -if [ ! -z "`ls | grep $MTMOD_UNZ_NAME`" ]; then # works with wildcard in variable - 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 - # remove old copy, or remove minetest_game's farming - sudo rm -Rf "$MTMOD_DEST_PATH" -fi -wget https://github.com/tenplus1/farming/archive/master.zip -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." > $err_txt - cat $err_txt - sleep 3 - exit 1 -fi +add_git_mod farming farming https://github.com/tenplus1/farming.git -#Forum post: https://forum.minetest.net/viewtopic.php?f=11&t=10423 -#Wuzzy's slimenodes mod (only available via give). -cd "$HOME/Downloads" -#MTMOD_DL_ZIP=master.zip -#MTMOD_SRC_ZIP=slimenodes.zip -#MTMOD_UNZ_NAME=slimenodes-master -MTMOD_UNZ_NAME=minetest_slimenodes -MTMOD_DEST_NAME=slimenodes -MTMOD_DEST_PATH=$MT_MYGAME_MODS_PATH/$MTMOD_DEST_NAME -if [ ! -z "`ls | grep $MTMOD_UNZ_NAME`" ]; then # works with wildcard in variable - 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 +# forum_url="https://forum.minetest.net/viewtopic.php?f=11&t=10423" +# Wuzzy's slimenodes mod (only available via /give command). # web view: http://repo.or.cz/w/minetest_slimenodes.git -git clone git://repo.or.cz/minetest_slimenodes.git -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." > $err_txt - cat $err_txt - sleep 3 - exit 1 -fi +add_git_mod slimenodes minetest_slimenodes http://repo.or.cz/minetest_slimenodes.git +# treasurer forum post here: https://forum.minetest.net/viewtopic.php?t=7292 +# (this trmp is linked from there) #(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 [ ! -z "`ls | grep $MTMOD_UNZ_NAME`" ]; then # works with wildcard in variable - 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 -O $MTMOD_SRC_ZIP 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." > $err_txt - cat $err_txt - sleep 3 - exit 1 -fi - +# MTMOD_DL_ZIP=file.php?id=1301 +# Copied to GitHub by ClockGen (I posted the link below on the forum page) +# wget -O $MTMOD_SRC_ZIP https://forum.minetest.net/download/file.php?id=1301 +add_git_mod trmp_minetest_game trmp_minetest_game https://github.com/ClockGen/trmp_minetest_game.git + +# NOTE: tsm_chests_dungeon supercedes dungeon_loot: +if [ -d "$MT_MYGAME_MODS_PATH/dungeon_loot" ]; then + echo "WARNING: tsm_chests_dungeon may not be compatible with dungeon_loot" + echo "press Ctrl C to cancel installing ENLIVEN" + sleep 4 + echo "4..." + sleep 1 + echo "3..." + sleep 1 + echo "2..." + sleep 1 + echo "1..." + sleep 1 +fi +add_git_mod tsm_chests_dungeon minetest_tsm_chests_dungeon http://repo.or.cz/minetest_tsm_chests_dungeon.git # NOTE: a skin database is at http://minetest.fensta.bplaced.net/ # bell07's 2016 (FORK of Krock's fork of dmonty's) u_skins (u_skins is a skin GUI that works with unified_inventory, whereas other skin GUIs often use inventory++) # Krock's is outdated and has remaining bugs such as in updater: wget https://github.com/SmallJoker/minetest-u_skinsdb/archive/master.zip # bell07's no longer exists # wget https://github.com/bell07/minetest-u_skinsdb/archive/master.zip -# add_zipped_mod u_skins minetest-u_skinsdb-master https://github.com/dmonty2/minetest-u_skinsdb/archive/master.zip -#add_zipped_mod u_skins minetest-u_skinsdb-master https://github.com/dmonty2/minetest-u_skinsdb/archive/master.zip -# add_zipped_mod skinsdb minetest-u_skinsdb-master https://github.com/dmonty2/minetest-u_skinsdb/archive/master.zip +# add_zip_mod u_skins minetest-u_skinsdb-master https://github.com/dmonty2/minetest-u_skinsdb/archive/master.zip +#add_zip_mod u_skins minetest-u_skinsdb-master https://github.com/dmonty2/minetest-u_skinsdb/archive/master.zip +# add_zip_mod skinsdb minetest-u_skinsdb-master https://github.com/dmonty2/minetest-u_skinsdb/archive/master.zip # forked and is now a part of minetest-mods thanks to bell07 MATCHING_MODS_BEFORE="`ls $MT_MYGAME_MODS_PATH | grep skin`" remove_mod u_skinsdb remove_mod u_skins PATCH_SKINS_MOD_NAME="skinsdb" # used further down too! -add_zipped_mod $PATCH_SKINS_MOD_NAME skinsdb-master https://github.com/minetest-mods/skinsdb/archive/master.zip +add_zip_mod $PATCH_SKINS_MOD_NAME skinsdb-master https://github.com/minetest-mods/skinsdb/archive/master.zip if [ ! -z "$MATCHING_MODS_BEFORE" ]; then echo "Removed $MATCHING_MODS_BEFORE then installed $PATCH_SKINS_MOD_NAME (this output is shown on purpose)" fi @@ -1797,7 +807,14 @@ sudo cp -f $PATCHES_PATH/mods-multiplayer/$PATCH_SKINS_MOD_NAME/$SUB_NAME/* "$SU if [ ! -d "$SUB_PATH" ]; then echo "ERROR: failed to install expertmm's skins to $SUB_PATH, so cannot continue." > $err_txt cat $err_txt - sleep 3 + echo " press Ctrl C to cancel ENLIVEN install or this terminal will close..." + sleep 1 + echo " 3..." + sleep 1 + echo " 2..." + sleep 1 + echo " 1..." + sleep 1 exit 1 else echo "installed expertmm's skins to $SUB_PATH" @@ -1812,7 +829,14 @@ sudo cp -f $PATCHES_PATH/mods-multiplayer/$PATCH_SKINS_MOD_NAME/$SUB_NAME/* "$SU if [ ! -d "$SUB_PATH" ]; then echo "ERROR: failed to install expertmm's skins to $SUB_PATH, so cannot continue." > $err_txt cat $err_txt - sleep 3 + echo " press Ctrl C to cancel ENLIVEN install or this terminal will close..." + sleep 1 + echo " 3..." + sleep 1 + echo " 2..." + sleep 1 + echo " 1..." + sleep 1 exit 1 else echo "installed metadata for expertmm's skins to $SUB_PATH" @@ -1875,9 +899,9 @@ echo "sudo rm -Rf /usr/share/games/minetest/games/ENLIVEN/mods/worldedit/worlded echo echo echo -echo "#### $MT_MYWORLD_DIR/world.mt: ####" -cat "$MT_MYWORLD_DIR/world.mt" -echo "### end $MT_MYWORLD_DIR/world.mt ##" +echo "#### $WORLD_MT_PATH: ####" +cat "$WORLD_MT_PATH" +echo "### end $WORLD_MT_PATH ##" echo "" echo "" echo "" diff --git a/etc/unused/game-install-ENLIVEN-DEPRECATED.sh b/etc/unused/game-install-ENLIVEN-DEPRECATED.sh index 8a7f388..0b50058 100644 --- a/etc/unused/game-install-ENLIVEN-DEPRECATED.sh +++ b/etc/unused/game-install-ENLIVEN-DEPRECATED.sh @@ -12,3 +12,153 @@ echo echo "## Deprecated since using cme_to_spawners and tsm_pyramids_to_spawners from patches/mods-WIP" echo " * set number = 0 or number = {min=0, max=0} in cme since only using cme for creatures:*_spawner nodes and for compatibility with old worlds" +#UNUSED, and is based on a much older version of minetest_game: +#MTMOD_DL_ZIP=master.zip +#MTMOD_SRC_ZIP=carbone-ng.zip +#MTMOD_UNZ_NAME=carbone-ng-master +#MTMOD_DEST_NAME=carbone-ng +##MTMOD_DEST_PATH=$MT_MYGAME_MODS_PATH/$MTMOD_DEST_NAME +#MTMOD_DEST_PATH=$MT_GAMES_DIR/$MTMOD_DEST_NAME +#if [ ! -z "`ls | grep $MTMOD_UNZ_NAME`" ]; then # works with wildcard in variable +# 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 +#cd "$HOME/Downloads" +#wget https://github.com/Calinou/carbone-ng/archive/master.zip +#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." > $err_txt +# cat $err_txt +# sleep 3 +# exit 1 +#fi + + + +#sudo cp -R /usr/share/games/minetest/games/carbone-ng /usr/local/share/minetest/games/carbone-ng + +#IF git version is installed: +#if [ -d "/usr/local/share/minetest/games" ]; +#then +#sudo cp -R $USR_SHARE_MINETEST/games/$MT_MYGAME_NAME /usr/local/share/minetest/games/$MT_MYGAME_NAME +#sudo mv $HOME/Downloads/cme /usr/local/share/minetest/games/$MT_MYGAME_NAME/mods/cme +#sudo mv $HOME/Downloads/protector /usr/local/share/minetest/games/$MT_MYGAME_NAME/mods/protector +#fi + +# actually farming REDO as per https://forum.minetest.net/viewtopic.php?f=11&t=9019 +#wget https://forum.minetest.net/download/file.php?id=5045 +#mv "file.php?id=5045" farming.zip +#unzip farming.zip +#sudo rm -Rf $MT_MYGAME_MODS_PATH/farming +#sudo mv farming $MT_MYGAME_MODS_PATH/farming +# breaks 0.4.13 dev version 2016-02-17 (says height_max deprecated, use y_max; and later +#2016-02-17 11:10:19: ERROR[Main]: ModError: Failed to load and run script from $USR_SHARE_MINETEST/games/enliven/mods/farming/init.lua: +#2016-02-17 11:10:19: ERROR[Main]: ...share/minetest/games/enliven/mods/farming/pumpkin.lua:78: attempt to perform arithmetic on field 'LIGHT_MAX' (a nil value) +#2016-02-17 11:10:19: ERROR[Main]: stack traceback: +#2016-02-17 11:10:19: ERROR[Main]: ...share/minetest/games/enliven/mods/farming/pumpkin.lua:78: in main chunk +#2016-02-17 11:10:19: ERROR[Main]: [C]: in function 'dofile' +#2016-02-17 11:10:19: ERROR[Main]: ...al/share/minetest/games/enliven/mods/farming/init.lua:65: in main chunk +# Remove & overwrite Farming REDO since it crashes 0.4.13 git 2016-02-16: +#sudo rm -Rf $MT_MYGAME_MODS_PATH/farming +#sudo cp -R $USR_SHARE_MINETEST/games/$mtgame_name/mods/farming $MT_MYGAME_MODS_PATH/farming + +#ls "$MT_MYGAME_MODS_PATH" +if [ ! -d "$MT_BACKUP_GAMES_DIR" ]; then + mkdir -p "$MT_BACKUP_GAMES_DIR" +#-p to make parent recursively +fi +first_suffix="_1st" +if [ -d "$MT_BACKUP_GAMES_DIR/$mtgame_name$first_suffix" ]; then + echo "already backed up $USR_SHARE_MINETEST/games/$mtgame_name" +else + sudo cp -R "$USR_SHARE_MINETEST/games/$mtgame_name" "$MT_BACKUP_GAMES_DIR/" +fi + +#DEPRECATED, replaced by spawners (which includes pyramids worldgen mod) +#MTMOD_DL_ZIP=ebf839579197053b2ead85072757f23158960319.zip +#MTMOD_SRC_ZIP=tsm_pyramids.zip +#MTMOD_UNZ_NAME=tsm_pyramids-* +#MTMOD_DEST_NAME=tsm_pyramids +#MTMOD_DEST_PATH=$MT_MYGAME_MODS_PATH/$MTMOD_DEST_NAME +#if [ ! -z "`ls | grep $MTMOD_UNZ_NAME`" ]; then # works with wildcard in variable +# 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 +#wget http://repo.or.cz/w/minetest_pyramids/tsm_pyramids.git/snapshot/ebf839579197053b2ead85072757f23158960319.zip +#mv $MTMOD_DL_ZIP $MTMOD_SRC_ZIP +#unzip $MTMOD_SRC_ZIP +#sudo mv -f $MTMOD_UNZ_NAME "$MTMOD_DEST_PATH" +#if [ ! -d "$MTMOD_DEST_PATH" ]; then +# echo "ERROR: failed to unzip $MTMOD_DEST_PATH, so cannot continue." > $err_txt +# cat $err_txt +# sleep 3 +# exit 1 +#fi +# AKA http://repo.or.cz/minetest_pyramids.git + +#an old version of worldedit included in a minetest fork last updated 2016: +#MTMOD_DL_ZIP=akiba-* +#wget http://git.akiba.fr:81/minetest/akiba/repository/archive.zip?ref=af571404a27a2cb06842c644930344f565a0b786 +#rm -f $MTMOD_DL_ZIP + +if [ ! -d "$MT_MYGAME_MODS_PATH/hudbars" ]; then + cd "$HOME/Downloads" + #MTMOD_DL_ZIP=hud_hunger-2_x_1-BlockMen.zip + #MTMOD_SRC_ZIP=hud_hunger-2_x_1-BlockMen.zip + MTMOD_DL_ZIP=master.zip + MTMOD_SRC_ZIP=hud_hunger.zip + MTMOD_UNZ_NAME=hud_hunger + MTMOD_DEST_NAME=hud_hunger + MTMOD_DEST_PATH=$MT_MYGAME_MODS_PATH/$MTMOD_DEST_NAME + #in case someone installed the mods apart from the modpack: + if [ -d "$MT_MYGAME_MODS_PATH/hud" ]; then + sudo rm -Rf "$MT_MYGAME_MODS_PATH/hud" + fi + if [ -d "$MT_MYGAME_MODS_PATH/hunger" ]; then + sudo rm -Rf "$MT_MYGAME_MODS_PATH/hunger" + 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 + rm -Rvf $MTMOD_UNZ_NAME + #BlockMen's is not maintained, & has problem on hud/buildin line 79 (crash since air can be nil) + #wget https://github.com/BlockMen/hud_hunger/releases/download/2.x.1/hud_hunger-2_x_1-BlockMen.zip + #FozLand's has a couple fixes + #wget https://github.com/FozLand/hud_hunger/archive/master.zip + #tenplus1's fixes nil air, nil player, and sprint + wget https://github.com/tenplus1/hud_hunger/archive/master.zip + unzip $MTMOD_SRC_ZIP + sudo mv $MTMOD_UNZ_NAME "$MTMOD_DEST_PATH" + sudo rm "$MTMOD_DEST_PATH/hunger/functions_UNUSED_sprint.lua" + sudo mv "$MTMOD_DEST_PATH/hunger/functions.lua" "$MTMOD_DEST_PATH/hunger/functions_UNUSED_sprint.lua" + sudo mv "$MTMOD_DEST_PATH/hunger/functions_(nosprint).lua" "$MTMOD_DEST_PATH/hunger/functions.lua" + sudo rm "$MTMOD_DEST_PATH/hunger/init_UNUSED_sprint.lua" + sudo mv "$MTMOD_DEST_PATH/hunger/init.lua" "$MTMOD_DEST_PATH/hunger/init_UNUSED_sprint.lua" + sudo mv "$MTMOD_DEST_PATH/hunger/init_(nosprint).lua" "$MTMOD_DEST_PATH/hunger/init.lua" + if [ ! -d "$MTMOD_DEST_PATH" ]; then + echo "ERROR: failed to unzip $MTMOD_DEST_PATH, so cannot continue." > $err_txt + cat $err_txt + sleep 3 + exit 1 + fi + # END IF no hudbars mod + else + if [ -d "$MT_MYGAME_MODS_PATH/hud_hunger" ]; then + sudo rm -Rvf "$MT_MYGAME_MODS_PATH/hud_hunger" + fi +fi diff --git a/patches/mods-stopgap/spawners_to_spawners_mobs/init.lua b/patches/mods-stopgap/spawners_to_spawners_mobs/init.lua index 96e8504..69ff7ce 100644 --- a/patches/mods-stopgap/spawners_to_spawners_mobs/init.lua +++ b/patches/mods-stopgap/spawners_to_spawners_mobs/init.lua @@ -11,3 +11,11 @@ mobs:alias_mob("spawners:mummy", "spawners_mobs:mummy") mobs:alias_mob("spawners:bunny_evil", "spawners_mobs:bunny_evil") mobs:alias_mob("spawners:uruk_hai", "spawners_mobs:uruk_hai") +minetest.register_alias("spawners:spawners_mummy_spawner_env", "spawners_mobs:spawners_mobs_mummy_spawner") +-- matched 1,2,3 with eye,men,sun by looking at old non-modpack version: +minetest.register_alias("spawners:deco_stone1", "spawners_mobs:deco_stone_eye") +minetest.register_alias("spawners:deco_stone2", "spawners_mobs:deco_stone_men") +minetest.register_alias("spawners:deco_stone3", "spawners_mobs:deco_stone_sun") +minetest.register_alias("spawners:trap", "moreblocks:trap_sandstone") +minetest.register_alias("spawners:trap_2", "moreblocks:trap_sandstone") + diff --git a/patches/mods-stopgap/tsm_pyramids_to_spawners/init.lua b/patches/mods-stopgap/tsm_pyramids_to_spawners/init.lua index 556bbf3..9c1de15 100644 --- a/patches/mods-stopgap/tsm_pyramids_to_spawners/init.lua +++ b/patches/mods-stopgap/tsm_pyramids_to_spawners/init.lua @@ -38,13 +38,14 @@ minetest.register_alias("tsm_pyramids:spawner_mummy", "spawners_mobs:spawners_mo minetest.register_alias("tsm_pyramids:spawn_egg", "spawners_mobs:mummy") -- mummy entity minetest.register_alias("tsm_pyramids:mummy", "spawners_mobs:mummy") +-- matched 1,2,3 with eye,men,sun by looking at old non-modpack version: -- deco stone 1 -minetest.register_alias("tsm_pyramids:deco_stone1", "spawners_mobs:deco_stone_bird") +minetest.register_alias("tsm_pyramids:deco_stone1", "spawners_mobs:deco_stone_eye") -- deco stone 2 -minetest.register_alias("tsm_pyramids:deco_stone2", "spawners_mobs:deco_stone_eye") +minetest.register_alias("tsm_pyramids:deco_stone2", "spawners_mobs:deco_stone_men") -- deco stone 3 -minetest.register_alias("tsm_pyramids:deco_stone3", "spawners_mobs:deco_stone_men") +minetest.register_alias("tsm_pyramids:deco_stone3", "spawners_mobs:deco_stone_sun") -- deco trap minetest.register_alias("tsm_pyramids:trap", "moreblocks:trap_sandstone") -- deco trap 2 -minetest.register_alias("tsm_pyramids:trap_2", "moreblocks:trap_desert_stone") +minetest.register_alias("tsm_pyramids:trap_2", "moreblocks:trap_sandstone")