summaryrefslogtreecommitdiff
path: root/travelnet/config.lua
diff options
context:
space:
mode:
authorVanessa Ezekowitz <vanessaezekowitz@gmail.com>2016-04-01 20:02:19 -0400
committerVanessa Ezekowitz <vanessaezekowitz@gmail.com>2016-04-01 21:09:33 -0400
commitda66780a569712c23ae4f2996cfb4608a9f9d69d (patch)
tree217556029a78bc23ad4564720afc86de97228a04 /travelnet/config.lua
parent615b22df4d423aded3613db7716943a2f389b047 (diff)
downloaddreambuilder_modpack-da66780a569712c23ae4f2996cfb4608a9f9d69d.tar
dreambuilder_modpack-da66780a569712c23ae4f2996cfb4608a9f9d69d.tar.gz
dreambuilder_modpack-da66780a569712c23ae4f2996cfb4608a9f9d69d.tar.bz2
dreambuilder_modpack-da66780a569712c23ae4f2996cfb4608a9f9d69d.tar.xz
dreambuilder_modpack-da66780a569712c23ae4f2996cfb4608a9f9d69d.zip
copy all standard Dreambuilder mods in from the old subgame
(exactly as last supplied there, updates to these mods will follow later)
Diffstat (limited to 'travelnet/config.lua')
-rw-r--r--travelnet/config.lua67
1 files changed, 67 insertions, 0 deletions
diff --git a/travelnet/config.lua b/travelnet/config.lua
new file mode 100644
index 0000000..7673833
--- /dev/null
+++ b/travelnet/config.lua
@@ -0,0 +1,67 @@
+
+travelnet.MAX_STATIONS_PER_NETWORK = 24;
+
+-- set this to true if you want a simulated beam effect
+travelnet.travelnet_effect_enabled = false;
+-- set this to true if you want a sound to be played when the travelnet is used
+travelnet.travelnet_sound_enabled = false;
+
+-- if you set this to false, travelnets cannot be created
+-- (this may be useful if you want nothing but the elevators on your server)
+travelnet.travelnet_enabled = true;
+-- if you set travelnet.elevator_enabled to false, you will not be able to
+-- craft, place or use elevators
+travelnet.elevator_enabled = true;
+-- if you set this to false, doors will be disabled
+travelnet.doors_enabled = true;
+
+-- starts an abm which re-adds travelnet stations to networks in case the savefile got lost
+travelnet.abm_enabled = false;
+
+-- change these if you want other receipes for travelnet or elevator
+travelnet.travelnet_recipe = {
+ {"default:glass", "default:steel_ingot", "default:glass", },
+ {"default:glass", "default:mese", "default:glass", },
+ {"default:glass", "default:steel_ingot", "default:glass", }
+}
+travelnet.elevator_recipe = {
+ {"default:steel_ingot", "default:glass", "default:steel_ingot", },
+ {"default:steel_ingot", "", "default:steel_ingot", },
+ {"default:steel_ingot", "default:glass", "default:steel_ingot", }
+}
+
+-- if this function returns true, the player with the name player_name is
+-- allowed to add a box to the network named network_name, which is owned
+-- by the player owner_name;
+-- if you want to allow *everybody* to attach stations to all nets, let the
+-- function always return true;
+-- if the function returns false, players with the travelnet_attach priv
+-- can still add stations to that network
+
+travelnet.allow_attach = function( player_name, owner_name, network_name )
+ return false;
+end
+
+
+-- if this returns true, a player named player_name can remove a travelnet station
+-- from network_name (owned by owner_name) even though he is neither the owner nor
+-- has the travelnet_remove priv
+travelnet.allow_dig = function( player_name, owner_name, network_name )
+ return false;
+end
+
+
+-- if this function returns false, then player player_name will not be allowed to use
+-- the travelnet station_name_start on networ network_name owned by owner_name to travel to
+-- the station station_name_target on the same network;
+-- if this function returns true, the player will be transfered to the target station;
+-- you can use this code to i.e. charge the player money for the transfer or to limit
+-- usage of stations to players in the same fraction on PvP servers
+travelnet.allow_travel = function( player_name, owner_name, network_name, station_name_start, station_name_target )
+
+ --minetest.chat_send_player( player_name, "Player "..tostring( player_name ).." tries to use station "..tostring( station_name_start )..
+ -- " on network "..tostring( network_name ).." owned by "..tostring( owner_name ).." in order to travel to "..
+ -- tostring( station_name_target )..".");
+
+ return true;
+end