this mod gives breath at all times when you are inside its radius, you can see the radius by punching the machine just like in protector mod.
there is a small one with a radius of 5 and a big one with a radius of 26!
This mod is great for water or space bases.
without this you cant live in space!
(oxygenerators and 3d oxygenerators are 2 different mods!)
You can find this mod at DistrictPvp
Oxygenerators:
3d Oxygenerators (2 different mods)
Oxygenerators in space!
Mover:
Spoiler
License: MIT
For more info read README.md
Where this mod is used (did i miss you?):
- DistrictPvP
- BlazeCraft
- Chippy's Survival Server
Code: Select all
-- Space!
local function is_populated(pos)
if minetest.find_node_near(pos, 5, {"oxygenerator:oxygenerator_small"}) ~= nil or
minetest.find_node_near(pos, 26, {"oxygeneratorbig:oxygenerator_big"}) ~=nil then
return true
else
return false
end
end
space_timer=0
minetest.register_globalstep(function(dtime)
space_timer=space_timer + dtime;
if space_timer>1 then
space_timer=0
for _,player in ipairs(minetest.get_connected_players()) do
local pos=player:get_pos()
if pos.y>=1100 then
player:set_sky({r=0, g=0, b=0},"skybox",{"sky_pos_y.png","sky_neg_y.png","sky_pos_z.png","sky_neg_z.png","sky_neg_x.png","sky_pos_x.png"})
if not is_populated(pos) then
local hp = player:get_hp()
local privs = minetest.get_player_privs(player:get_player_name());
if hp>0 and not privs.oxygenerator then
player:set_hp(hp-1)
end
end
end
end
end
end)
Spoiler
Github 1.0:https://github.com/ManElevation/oxygenerators
Github 1.5:https://github.com/ManElevation/oxygenerators1.5
Github 2.0:https://github.com/ManElevation/oxygenerators2.0
Github 2.5:https://github.com/ManElevation/oxygenerators2.5
Github 3.0:https://github.com/ManElevation/oxygenerators3.0
Github 4.0:https://github.com/ManElevation/oxygenerators4.0
Github 4.2:https://github.com/ManElevation/oxygenerators4.2
Download:https://github.com/ManElevation/oxygene ... master.zip