Show star symbol for freshly generated areas
This commit is contained in:
parent
0a0f34e639
commit
11565f803e
13
init.lua
13
init.lua
@ -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
|
||||
|
BIN
textures/perlin_explorer_new_chunk_particle.png
Normal file
BIN
textures/perlin_explorer_new_chunk_particle.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 8.6 KiB |
Loading…
x
Reference in New Issue
Block a user