Documentation
The Coding Way
Bot Configuration

Bot Configuration

At the core of creating a bot using Lodestone is the function lodestone.createBot, this is where you'll want to declare the variable used for the bot, as well as setting the options for your bot such as the target server's ip (host), port (port), version (version), the type of authentication (auth), and your username (username).

💡

discordWebhook is not working as expected at the moment dude to a switch in framework. Expect this to work again soon!

createBot Configuration

OptionTypeDescription
hoststrThe domain or IP for the target server (eg. 127.0.0.1, or play.example.com), the domain is resolved to the IP address. If the server prevents you from logging in using the domain (eg. TCP Shield) try using the fakeHost option.
authThe type of authentication to use for the account. Using Microsoft without a password field is recommended.
portintThe port of the target server. Defaults to 25565.
versionstrThe version of the target server. Defaults to auto.
passwordstrNot recommended.
checkTimeoutIntervalintThe time to check if the bot is still conected to the server. Defaults to 20.
armorManagerboolIf the bot needs to apply all avalable armor. Defaults to False.
viewerPortintThe port prismarine viewer runs on. Defaults to 5001
disableChatSigningboolIf the chat needs to be singed. Defaults to False
profilesFolderstrThe folder lodestone keeps your login info. Defaults to .minecraft/ or node_modules/
usernamestrThe userame key will be used as key to store your login. Defaults to "lodestone"
discordWebhookstrAllows the bot to send updates to Discord. Defaults to None
logErrorsboolDefaults to True
hideErrorsboolDefaults to True
keepAliveboolDefaults to True
loadInternalPluginsboolDefaults to True
respawnboolDefaults to True
physicsEnabledboolDefaults to True
defaultChatPatternsboolDefaults to True
disableLogsboolDefaults to False
enableChatLoggingboolDefaults to False
skipChecksboolSkips the Defaults to False
disableViewerboolEnabels the prismarine-viewer plugin. Defaults to False