new files
This commit is contained in:
parent
43ae25e2c3
commit
83437a5dff
8
abm.lua
Normal file
8
abm.lua
Normal 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
|
||||
})
|
14
protection.lua
Normal file
14
protection.lua
Normal 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
|
Loading…
x
Reference in New Issue
Block a user