bedrock-viewer
v1.0.4
Published
### > [!IMPORTANT] > This is a fork of https://github.com/PrismarineJS/prismarine-viewer
Downloads
8
Readme
bedrock-viewer
[!IMPORTANT] This is a fork of https://github.com/PrismarineJS/prismarine-viewer
[!IMPORTANT] This was made to work with BedrockRat so you may need to add more stuff than just whats in the example.
Instal
npm i bedrock-viewer
Example
const {createClient} = require('bedrock-protocol')
const bedrockViewer = require('bedrock-viewer').bedrock
const client = createClient({
host: '0.0.0.0',
port: 19132,
offline: true,
username: "Bedrock-Viewer",
version: '1.20.61',
skipPing: true
})
client.once("spawn", () => {
bedrockViewer(client, {port: 3000});
})