2017-02-01 03:53:16 +01:00
|
|
|
ropes = {
|
|
|
|
name = 'ropes',
|
2015-02-09 02:12:47 +01:00
|
|
|
}
|
|
|
|
|
2017-02-01 03:53:16 +01:00
|
|
|
local rope_length = minetest.setting_get("ropes_rope_length")
|
2017-01-29 19:41:02 +01:00
|
|
|
if not rope_length then
|
|
|
|
rope_length = 50
|
|
|
|
end
|
2017-02-01 03:53:16 +01:00
|
|
|
ropes.ropeLength = rope_length
|
2017-01-29 19:41:02 +01:00
|
|
|
|
2017-02-01 03:53:16 +01:00
|
|
|
local rope_ladder_length = minetest.setting_get("ropes_rope_ladder_length")
|
2017-01-29 19:41:02 +01:00
|
|
|
if not rope_ladder_length then
|
|
|
|
rope_ladder_length = 50
|
|
|
|
end
|
2017-02-01 03:53:16 +01:00
|
|
|
ropes.ropeLadderLength = rope_ladder_length
|
2017-01-29 19:41:02 +01:00
|
|
|
|
2017-02-01 03:53:16 +01:00
|
|
|
dofile( minetest.get_modpath( ropes.name ) .. "/doc.lua" )
|
|
|
|
dofile( minetest.get_modpath( ropes.name ) .. "/functions.lua" )
|
|
|
|
dofile( minetest.get_modpath( ropes.name ) .. "/crafts.lua" )
|
|
|
|
dofile( minetest.get_modpath( ropes.name ) .. "/ropeboxes.lua" )
|
|
|
|
dofile( minetest.get_modpath( ropes.name ) .. "/ladder.lua" )
|
2013-09-12 15:04:02 +02:00
|
|
|
|
2017-02-01 03:53:16 +01:00
|
|
|
print("[Ropes] Loaded!")
|