travelnet-cd2025/config.lua

105 lines
4.6 KiB
Lua
Raw Normal View History

-- set this to 0 if you want no limit
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" }
}
2019-02-26 20:36:14 +01:00
travelnet.tiles_elevator = {
"travelnet_elevator_front.png",
"travelnet_elevator_inside_controls.png",
"travelnet_elevator_sides_outside.png",
"travelnet_elevator_inside_ceiling.png",
"travelnet_elevator_inside_floor.png",
"default_steel_block.png"
}
2019-02-26 20:36:14 +01:00
travelnet.elevator_inventory_image = "travelnet_elevator_inv.png"
if minetest.registered_nodes["mcl_core:wood"] then
2019-02-26 20:36:14 +01:00
travelnet.travelnet_recipe = {
{ "mcl_stairs:slab_wood", "mcl_stairs:slab_wood", "mcl_stairs:slab_wood" },
{ "mesecons_torch:mesecon_torch_on", "mcl_chests:chest", "mesecons_torch:mesecon_torch_on" },
{ "mesecons_torch:mesecon_torch_on", "mcl_chests:chest", "mesecons_torch:mesecon_torch_on" },
-- { "core:glass", "mcl_core:iron_ingot", "mcl_core:glass" },
-- { "mcl_core:glass", "mesecons_torch:redstoneblock", "mcl_core:glass" },
-- { "mcl_core:glass", "mcl_core:iron_ingot", "mcl_core:glass" }
2019-02-26 20:36:14 +01:00
}
travelnet.elevator_recipe = {
{ "mcl_stairs:slab_wood", "mcl_stairs:slab_wood", "mcl_stairs:slab_wood" },
{ "mesecons_torch:mesecon_torch_on", "", "mesecons_torch:mesecon_torch_on" },
{ "mesecons_torch:mesecon_torch_on", "", "mesecons_torch:mesecon_torch_on" },
-- { "mcl_core:iron_ingot", "mcl_core:glass", "mcl_core:iron_ingot" },
-- { "mcl_core:iron_ingot", "", "mcl_core:iron_ingot" },
-- { "mcl_core:iron_ingot", "mcl_core:glass", "mcl_core:iron_ingot" }
2019-02-26 20:36:14 +01:00
}
travelnet.tiles_elevator = {
"mcl_core_planks_big_oak.png^[transformR90", -- front
"mcl_core_planks_big_oak.png^[transformR90", -- inside
"mcl_core_planks_big_oak.png^[transformR90", -- sides outside
"mcl_core_planks_big_oak.png^[transformR90", -- inside ceiling
"mcl_core_planks_big_oak.png^[transformR90", -- inside floor
"mcl_core_planks_big_oak.png^[transformR90", -- top
}
travelnet.elevator_inventory_image = nil
2019-02-26 20:36:14 +01:00
end
-- 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
2019-12-16 13:31:14 +01:00
-- can still add stations to that network
2021-01-15 08:26:42 +01:00
-- params: player_name, owner_name, network_name
travelnet.allow_attach = function()
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
2021-01-15 08:26:42 +01:00
-- params: player_name, owner_name, network_name, pos
travelnet.allow_dig = function()
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
2021-01-15 08:26:42 +01:00
-- params: player_name, owner_name, network_name, station_name_start, station_name_target
travelnet.allow_travel = function()
return true
end
2019-03-09 22:36:55 +01:00
travelnet.travelnet_sound_enabled = true