Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

mineflayer-autocrystal

Package Overview
Dependencies
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

mineflayer-autocrystal

mineflayer-autocrystal is a plugin that lets mineflayer bots automatically place and destroy end crystals.

  • 0.4.0
  • npm
  • Socket score

Version published
Weekly downloads
22
increased by120%
Maintainers
1
Weekly downloads
 
Created
Source

Welcome to mineflayer-autocrystal 👋

Version Documentation Maintenance License: ISC

mineflayer-autocrystal is a plugin that lets mineflayer bots automatically place and destroy end crystals.

🏠 Homepage

Install

npm install mineflayer-autocrystal

Example

const mineflayer = require('mineflayer')
const { autoCrystal } = require('mineflayer-autocrystal')

function main() {
	const bot = mineflayer.createBot({
		host: 'localhost',
		username: 'CrystalBot',
	})

	bot.loadPlugin(autoCrystal)

	bot.once('spawn', () => {
		console.clear()
		console.log('Spawned.')
		bot.chat('/gamemode creative')
		bot.chat('/give @s end_crystal 500')
	})

	bot.on('kicked', (reason) => {
		console.log(reason)
		main()
	})

	bot.on('error', (reason) => {
		console.error(reason)
		main()
	})

	bot.on('chat', async (username, message) => {
		if (username === bot.username) return

		switch (message) {
			case 'start':
				bot.chat('AutoCrystal enabled.')
				bot.autoCrystal.enable()
				break

			case 'stop':
				bot.chat('AutoCrystal disabled.')
				bot.autoCrystal.disable()
				break

			case 'holes':
				const holes = await bot.autoCrystal.getHoles()
				bot.chat(`Found ${holes.length} holes made out of bedrock.`)
				break

			default:
				break
		}
	})
}

main()

Author

👤 Link#0069

🤝 Contributing

Contributions, issues and feature requests are welcome!
Feel free to check issues page.

Show your support

Give a ⭐️ if this project helped you!

📝 License

Copyright © 2021 Link#0069.
This project is GNU GPLv3 licensed.


This README was generated with ❤️ by readme-md-generator

FAQs

Package last updated on 26 Jul 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc