UNPKG

@boem312/minecraft-server

Version:

A pure JS library to create Minecraft Java 1.16.3 servers

28 lines (27 loc) 552 B
const changes = [ // if this is changed, make sure to also change changeEvent in Client.d.ts 'position', 'slot', 'health', 'food', 'foodSaturation', 'raining', 'toxicRainLevel', 'showRespawnScreen', 'gamemode', 'difficulty', 'experience', 'sneaking', 'onGround', 'bossBars', 'chunks', 'entities', 'sprinting', 'tabItems', 'tabHeader', 'tabFooter', 'inventory', 'blocks' ]; module.exports = { changeEvents: () => Object.fromEntries(changes.map(a => [a, []])) }