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
TenPlus1 wrote:When I get time I'll add more fish and hopefully find more textures for them...
prestidigitator wrote:When using Ethereal in my own server, no redwoods seem to spawn (e.g. like they do in Xanadu). I'm having a hard time figuring out why, though. They seem to be enabled in the code like all the other trees....
ExeterDad wrote:Are you using mapgen7?
Users browsing this forum: No registered users and 43 guests