H4Mm3r wrote:Having many saplings cutting down one unique tree is always a good thing managing a survival server. People often forget to plan new trees, so to keep forests alive, having saplings is important. 50 daily players can easily trasnform the server into a big desert...
TenPlus1 wrote:Ethereal 1.16 released with new fruit tree models with random leaves, fruit and height
nater6927 wrote:Where is the code for torches hurting you??
-- am I near a cactus?
local near = minetest.find_node_near(pos, 1, "default:cactus")
if near then
-- am I touching the cactus? if so it hurts
for _,object in ipairs(minetest.get_objects_inside_radius(near, 1.0)) do
if object:get_hp() > 0 then
object:set_hp(object:get_hp()-1)
end
end
end
-- Is a torch at the players head or feet position? If so it hurts.
if nod_head == "default:torch"
or nod_feet == "default:torch" then
if player:get_hp() > 0 then
player:set_hp(player:get_hp()-1)
end
end
Users browsing this forum: No registered users and 3 guests