Skip to content

Latest commit

 

History

History
37 lines (34 loc) · 1 KB

File metadata and controls

37 lines (34 loc) · 1 KB

Frequently Asked Questions

How do I get the client to spawn at a certain location?

const { Server } = require('@boem312/minecraft-server')
const server = new Server({
    defaultClientProperties: client => ({
        position: {
            x: 10,
            y: 20,
            z: 5
        }
    })
})

How do I set a different spawn location for different clients?

const { Server } = require('@boem312/minecraft-server')
const server = new Server({
    defaultClientProperties: client => ({
        position: client.username === 'notch' ? {
            x: 3,
            y: 100,
            z: 3
        } : {
            x: 3,
            y: 0,
            z: 3
        }
    })
})