master
runs 2021-08-01 16:47:39 +02:00
parent 2241c8b6d5
commit 81f8fb916b
2 changed files with 7 additions and 1 deletions

View File

@ -82,6 +82,12 @@ minetest.register_entity("ptol:freeze", {
end
end,
on_activate = function(self, staticdata, dtime_s) --on_activate, required
if dtime_s > 0 then --loaded, nor new
self.object:remove()
end
end,
set_frozen_player = function(self, player)
self.pname = player:get_player_name()
player:set_attach(self.object, "", {x = 0, y = 0, z = 0 }, { x = 0, y = 0, z = 0 })

View File

@ -5,7 +5,7 @@ world_center=(0,0,0)
shape=box
#The radius between spheres or boxes
##for a box the "radius" is edge/2
radius=256
radius=100
#Timing to check if a player is in his allowed area
time=1
#The angle for a player return to his area,