Wizards of Lua

The Art of Spell Crafting


PostPopulateChunkEvent

Instances of the PostPopulateChunkEvent are fired when a new chunk has been loaded and then been populated with blocks, ores, structures, and enities.

Example

Printing all PostPopulateChunkEvents when they occur.

Events.on('PostPopulateChunkEvent'):call(function(event)
  print(string.format("Populated world chunk at %s,%s", event.chunkX, event.chunkZ))
end)

The PostPopulateChunkEvent class is a subtype of the PopulateChunkEvent class and inherits all its properties and functions.