new files

This commit is contained in:
Tai @ Flex 2016-12-03 19:01:48 +08:00
parent 43ae25e2c3
commit 83437a5dff
3 changed files with 23 additions and 0 deletions

8
abm.lua Normal file
View File

@ -0,0 +1,8 @@
minetest.register_abm({ -- going up
func = function(pos)
-- check for player 1 node away
-- if player is owner, transport
-- else, check for free-for-all node
-- if active, transport
end
})

1
mod.conf Normal file
View File

@ -0,0 +1 @@
name = skytardis

14
protection.lua Normal file
View File

@ -0,0 +1,14 @@
-- Register protection of the sky building
-- only the owner can have protection
-- maybe have a TARDIS Key item which allows another player to interact
local oldprotect = minetest.is_protected
function tardisprotect = function(pos,owner)
local tardisbounds = skytardis.getBoundsAt(pos)
-- pass it on
return oldprotect(pos,owner)
end
minetest.is_protected = tardisprotect