templatisation + minetest + ... #32
Binary file not shown.
|
@ -40,10 +40,6 @@ default_privs = interact, shout, fly, fast
|
|||
# type: string
|
||||
basic_privs = interact, shout, fly, fast
|
||||
|
||||
# If this is set, players will always (re)spawn at the given position.
|
||||
# type: string
|
||||
static_spawnpoint = (0, 24, 0)
|
||||
|
||||
# Where the map generator stops.
|
||||
# Please note:
|
||||
# - Limited to 31000 (setting above has no effect)
|
||||
|
@ -51,8 +47,17 @@ static_spawnpoint = (0, 24, 0)
|
|||
# - Those groups have an offset of -32, -32 nodes from the origin.
|
||||
# - Only groups which are within the map_generation_limit are generated
|
||||
# type: int min: 0 max: 31000
|
||||
mapgen_limit = 216
|
||||
#mapgen_limit = 216
|
||||
mapgen_limit = 31000
|
||||
|
||||
# If this is set, players will always (re)spawn at the given position.
|
||||
# type: string
|
||||
static_spawnpoint = (0, 0, 0)
|
||||
|
||||
# magpen flags
|
||||
mg_flags = trees,decorations
|
||||
|
||||
# mapgen v6
|
||||
mgv6_spflags = jungles,biomeblend,mudflow,snowbiomes,noflat,trees
|
||||
mgv6_freq_desert = 0.05
|
||||
mgv6_freq_beach = 0.95
|
||||
|
|
|
@ -8,6 +8,7 @@ rm -R $WORLD_PATH
|
|||
|
||||
mkdir $WORLD_PATH
|
||||
|
||||
cp map.sqlite $WORLD_PATH/
|
||||
|
||||
echo "
|
||||
gameid = minetest
|
||||
|
@ -17,7 +18,7 @@ backend = sqlite3
|
|||
" > $WORLD_PATH/world.mt
|
||||
|
||||
cd ~/.zen/astrXbian/minetest
|
||||
cat ./minetest-common.conf > ./minetest.conf
|
||||
cat ./minetest-common.conf > /home/pi/.minetest/worlds/astroport/minetest.conf
|
||||
echo "
|
||||
|
||||
server_name = Astroport "$XZUID"
|
||||
|
@ -43,14 +44,14 @@ server_announce = false
|
|||
# Network port to listen (UDP).
|
||||
# This value will be overridden when starting from the main menu.
|
||||
# type: int
|
||||
port = 30010
|
||||
port = 30001
|
||||
|
||||
# The network interface that the server listens on.
|
||||
# type: string
|
||||
# bind_address =
|
||||
|
||||
|
||||
" >> ./minetest.conf
|
||||
" >> /home/pi/.minetest/worlds/astroport/minetest.conf
|
||||
|
||||
mkdir $WORLD_PATH/worldmods
|
||||
|
||||
|
@ -73,41 +74,41 @@ fi
|
|||
|
||||
|
||||
## startanode
|
||||
|
||||
if [ ! -d $MINETEST_PATH/mods/startanode-master ]; then
|
||||
|
||||
if [ ! -f $MINETEST_PATH/mods/startanode.zip ]; then
|
||||
wget https://github.com/minetest-mods/startanode/archive/refs/heads/master.zip -O $MINETEST_PATH/mods/startanode.zip
|
||||
fi
|
||||
|
||||
unzip $MINETEST_PATH/mods/startanode.zip -d $MINETEST_PATH/mods
|
||||
fi
|
||||
|
||||
cp -r $MINETEST_PATH/mods/startanode-master $WORLD_PATH/worldmods
|
||||
|
||||
|
||||
|
||||
# ## Spawnbuilder
|
||||
#
|
||||
# if [ ! -d $MINETEST_PATH/mods/startanode-master ]; then
|
||||
#
|
||||
# if [ ! -f $MINETEST_PATH/mods/startanode.zip ]; then
|
||||
# wget https://github.com/minetest-mods/startanode/archive/refs/heads/master.zip -O $MINETEST_PATH/mods/startanode.zip
|
||||
# fi
|
||||
#
|
||||
# unzip $MINETEST_PATH/mods/startanode.zip -d $MINETEST_PATH/mods
|
||||
# fi
|
||||
#
|
||||
# cp -r $MINETEST_PATH/mods/startanode-master $WORLD_PATH/worldmods
|
||||
|
||||
|
||||
|
||||
## Spawnbuilder
|
||||
#
|
||||
# spawnBuilderLocation=`find $MINETEST_PATH/mods -type d -name spawnbuilder`
|
||||
# if [ -z $spawnBuilderLocation ]; then
|
||||
#
|
||||
# if [ ! -f $MINETEST_PATH/mods/spawnbuilder.zip ]; then
|
||||
# wget https://repo.or.cz/minetest_spawnbuilder.git/snapshot/1.1.0.zip -O $MINETEST_PATH/mods/spawnbuilder.zip
|
||||
# fi
|
||||
#
|
||||
# unzip $MINETEST_PATH/mods/spawnbuilder.zip -d $MINETEST_PATH/mods/spawnbuilder/
|
||||
# fi
|
||||
#
|
||||
# mkdir $WORLD_PATH/worldmods/spawnbuilder
|
||||
# cp -r $MINETEST_PATH/mods/spawnbuilder/minetest_spawnbuilder-*/* $WORLD_PATH/worldmods/spawnbuilder
|
||||
#
|
||||
# echo "
|
||||
# #Side length of the surface area of the spawn platform
|
||||
# #If the number is odd, the platform will be centered at spawn.
|
||||
# #Using a width lower than 3 is not recommended.
|
||||
# spawnbuilder_width (Spawn platform width) int 5 1
|
||||
# " > $WORLD_PATH/worldmods/spawnbuilder/mod.conf
|
||||
# if [ -z $spawnBuilderLocation ]; then
|
||||
#
|
||||
# if [ ! -f $MINETEST_PATH/mods/spawnbuilder.zip ]; then
|
||||
# wget https://repo.or.cz/minetest_spawnbuilder.git/snapshot/1.1.0.zip -O $MINETEST_PATH/mods/spawnbuilder.zip
|
||||
# fi
|
||||
#
|
||||
# unzip $MINETEST_PATH/mods/spawnbuilder.zip -d $MINETEST_PATH/mods/spawnbuilder/
|
||||
# fi
|
||||
#
|
||||
# mkdir $WORLD_PATH/worldmods/spawnbuilder
|
||||
# cp -r $MINETEST_PATH/mods/spawnbuilder/minetest_spawnbuilder-*/* $WORLD_PATH/worldmods/spawnbuilder
|
||||
#
|
||||
# echo "
|
||||
# #Side length of the surface area of the spawn platform
|
||||
# #If the number is odd, the platform will be centered at spawn.
|
||||
# #Using a width lower than 3 is not recommended.
|
||||
# spawnbuilder_width (Spawn platform width) int 5 1
|
||||
# " > $WORLD_PATH/worldmods/spawnbuilder/mod.conf
|
||||
|
||||
|
||||
|
||||
|
|
|
@ -1,3 +1,3 @@
|
|||
#!/bin/sh
|
||||
|
||||
/usr/lib/minetest/minetestserver --port 30010 --world /home/pi/.minetest/worlds/astroport --config /home/pi/.zen/astrXbian/minetest/minetest.conf
|
||||
/usr/lib/minetest/minetestserver --port 30001 --world /home/pi/.minetest/worlds/astroport --config /home/pi/.minetest/worlds/astroport/minetest.conf
|
||||
|
|
Loading…
Reference in New Issue