Compare commits

...

5 Commits

Author SHA1 Message Date
Don 608462d1fa Merge pull request #6 from AntumMT/log_edge_size
Display 'edge' value in log
2017-07-14 20:43:34 -07:00
Don 15a78376e2 Merge pull request #5 from AntumMT/use_config
Use config setting 'world_edge' to determine size of world:
2017-07-14 20:42:31 -07:00
AntumDeluge 1f03ae4d8d Use config setting 'world_edge' to determine size of world:
Defaults to '30000' if setting not found.
2017-06-06 19:26:06 -07:00
AntumDeluge 5e14f3440f Display 'edge' value in log 2017-06-06 19:22:31 -07:00
DonBatman e15fa9971c Changed Licence 2016-03-23 14:30:23 -07:00
3 changed files with 21 additions and 4 deletions

View File

@ -7,7 +7,7 @@ This gives the illusion that that world is round and you can walk all the way ar
You can change the worlds edge by changing the first variable in init.lua
local edge = 30000
License of code: WTFPL
License of code: DWYWPL
Written by Amaz
Modified by Don
Modified by Don

View File

@ -2,11 +2,15 @@
-- TODO: Check for terrain height
-- Defines the edge of a world
local edge = 30000
local edge = tonumber(minetest.settings:get("world_edge")) or 30000
-- Radius which should be checked for a good teleportation place
local radius = 2
--------------
if minetest.settings:get_bool("log_mods") then
minetest.log("action", "World edge: " .. edge)
end
local count = 0
local waiting_list = {}
--[[ Explanation of waiting_list table
@ -140,4 +144,4 @@ minetest.register_entity("worldedge:lock", {
on_activate = function(staticdata, dtime_s)
--self.object:set_armor_groups({immortal = 1})
end
})
})

13
licence.txt Normal file
View File

@ -0,0 +1,13 @@
DO WHAT YOU WANT TO PUBLIC LICENSE
or abbreviated DWYWPL
December 2nd 2015
License Copyright (C) 2015 Michael Tomaino (PlatinumArts@gmail.com)
www.sandboxgamemaker.com/DWYWPL/
DO WHAT YOU WANT TO PUBLIC LICENSE
TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
1. You are allowed to do whatever you want to with what content is using this license.
2. This content is provided 'as-is', without any express or implied warranty. In no event
will the authors be held liable for any damages arising from the use of this content.