Skip to main content
Module

x/replcraft/examples/fuel.ts

A library to control special structures on the ReplCraft Minecraft server
Go to Latest
File
import { Client, Token } from "../mod.ts";
/* Create a new ReplCraft client instance. */const client = new Client();
/* Connect to the Minecraft server. */await client.connect({ token: Token.from("<your token>")});
/* Print a summary of the fuel usage every five seconds. */setInterval(async () => { console.log(await client.getFuelInfo());}, 5000);