Browse Source

Create void.lua

master
Minetest-j45 1 year ago committed by GitHub
parent
commit
f8ea92d224
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 13
      void.lua

13
void.lua

@ -0,0 +1,13 @@
local timer = 0
minetest.register_globalstep(function(dtime)
timer = timer + dtime
if timer >= 1 then
local players = minetest.get_connected_players()
for _, player in ipairs(players) do
if player:get_pos().y < 80 then
player:set_hp(0)
end
end
timer = 0
end
end)
Loading…
Cancel
Save