Psst.. new poll here.
Psst.. new forums here.
Microsoft is blocking us again (TY IP Reputation!) so dont bother with any of their useless mail servers here and just use oauth login instead. Thank the nice Russians for causing that. :)
Paste
Pasted as Lua by entitities ( 5 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