Psst.. new poll here.
[email protected] web/email now available. Want one? Go here.
Cannot use outlook/hotmail/live here to register as they blocking our mail servers. #microsoftdeez
Obey the Epel!
Paste
Pasted as Lua by entitities ( 4 years ago )
minetest.register_entity("my_mod:entity", {
initial_properties = {
visual = "sprite",
textures = {"anchor.png"},
physical = false,
pointable = true,
static_save = true
}
})
minetest.register_on_generated(function(minp, maxp, seed)
local spacing = 4
for z=minp.z, maxp.z, spacing do
for y=minp.y, maxp.y, spacing do
for x=minp.x, maxp.x, spacing do
local pos = vector.new(x, y, z)
local obj = minetest.add_entity(pos, "my_mod:entity")
if not obj then
minetest.chat_send_all("FAIL: "..minetest.pos_to_string(obj))
end
end
end
end
end)
Revise this Paste