intial push

This commit is contained in:
DonBatman 2014-12-14 06:25:47 -08:00
부모 83ccf91e8c
커밋 71ed42b74e
2개의 변경된 파일66개의 추가작업 그리고 0개의 파일을 삭제

0
depends.txt Normal file
파일 보기

66
init.lua Normal file
파일 보기

@ -0,0 +1,66 @@
--[[
local count = 0
minetest.register_globalstep(function(dtime)
count = count + dtime
if count > 5 then
count = 0
local players = minetest.get_connected_players()
for _,player in pairs(players) do
local pos = player:getpos()
if pos.x >= 30850 then
player:moveto({x = -30800, y = pos.y, z = pos.z})
end
if pos.x <= -30850 then
player:moveto({x = 30800, y = pos.y, z = pos.z})
end
if pos.y >= 30850 then
player:moveto({x = pos.x, y = -30800, z = pos.z})
end
if pos.y <= -30850 then
player:moveto({x = pos.x, y = 30800, z = pos.z})
end
if pos.z >= 30850 then
player:moveto({x = pos.x, y = pos.y, z = -30800})
end
if pos.z <= -30850 then
player:moveto({x = pos.x, y = pos.y, z = 30800})
end
end
end
end)
--]]
local count = 0
minetest.register_globalstep(function(dtime)
count = count + dtime
if count > 5 then
count = 0
local players = minetest.get_connected_players()
for _,player in pairs(players) do
local pos = player:getpos()
if pos.x >= 100 then
player:moveto({x = -100, y = pos.y, z = pos.z})
end
if pos.x <= -100 then
player:moveto({x = 100, y = pos.y, z = pos.z})
end
--[[if pos.y >= 30850 then
player:moveto({x = pos.x, y = -30800, z = pos.z})
end
if pos.y <= -30850 then
player:moveto({x = pos.x, y = 30800, z = pos.z})
end--]]
if pos.z >= 100 then
player:moveto({x = pos.x, y = pos.y, z = -100})
end
if pos.z <= -100 then
player:moveto({x = pos.x, y = pos.y, z = 100})
end
end
end
end)