minecraft.js
Version:
Minecraft data serialization/deserialization and networking
15 lines (13 loc) • 348 B
JavaScript
// TODO: put constants in relevant namespaces, use
var constants = {
REGION_SIZE: 32,
CHUNK_SIZE: 16,
CHUNK_HEIGHT: 256,
CHUNK_BASE_LENGTH: 82176,
CHUNK_BLOCKS: 32768,
TICKS_PER_SECOND: 20,
TICKS_PER_DAY: 24000,
STRING_MAX_LENGTH: 240
};
constants.MS_PER_TICK = 1000 / constants.TICKS_PER_SECOND;
module.exports = constants;