Show star symbol for freshly generated areas

This commit is contained in:
Wuzzy 2022-04-16 02:05:51 +02:00
parent 0a0f34e639
commit 11565f803e
2 changed files with 13 additions and 0 deletions

View File

@ -327,6 +327,19 @@ local create_perlin = function(pos, options)
current_perlin.pos = mpos
local set_nodes = options.set_nodes ~= false
local stats = update_map(mpos, set_nodes)
-- Show a particle in the center of the newly generated area
local center = vector.new()
center.x = mpos.x + options.size/2
center.y = mpos.y + options.size/2
center.z = mpos.z + options.size/2
minetest.add_particle({
pos = center,
expirationtime = 4,
size = 16,
texture = "perlin_explorer_new_chunk_particle.png",
glow = minetest.LIGHT_MAX,
})
if stats then
return string.format("Perlin noise created! Stats: min. value=%.3f, max. value=%.3f, avg. value=%.3f", stats.min, stats.max, stats.avg)
end

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.6 KiB