Compare commits
No commits in common. "902732c6ddab081273293ed5dca3bad2fb488856" and "288b7045b6189cd89935446fd2ced6488e89a8b3" have entirely different histories.
902732c6dd
...
288b7045b6
|
@ -1,22 +1,22 @@
|
||||||
let cfg
|
let cfg
|
||||||
let bot
|
let bot
|
||||||
let mcData
|
let mcData
|
||||||
|
|
||||||
function info() {
|
function info() {
|
||||||
const block = bot.blockAtCursor()
|
const block = bot.blockAtCursor()
|
||||||
console.log(block)
|
console.log(block)
|
||||||
cfg.quiet || bot.chat([block.id, block.name])
|
cfg.quiet || bot.chat([block.id, block.name])
|
||||||
}
|
}
|
||||||
|
|
||||||
const load = (config) => {
|
const load = (config) => {
|
||||||
cfg = config
|
cfg = config
|
||||||
bot = cfg.bot
|
bot = cfg.bot
|
||||||
cfg.info = {
|
cfg.info = {
|
||||||
quiet: cfg.quiet,
|
quiet: cfg.quiet,
|
||||||
}
|
}
|
||||||
mcData = bot.mcData || (bot.mcData = require('minecraft-data')(bot.version))
|
mcData = bot.mcData || (bot.mcData = require('minecraft-data')(bot.version))
|
||||||
}
|
}
|
||||||
|
|
||||||
const unload = () => {}
|
const unload = () => {}
|
||||||
|
|
||||||
module.exports = { load, unload, info }
|
module.exports = { load, unload, info }
|
22
package.json
22
package.json
|
@ -34,20 +34,20 @@
|
||||||
"require-self": "^0.2.3"
|
"require-self": "^0.2.3"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"dotenv-packed": "^1.2.1",
|
|
||||||
"minecraft-data": "^2.70.2",
|
"minecraft-data": "^2.70.2",
|
||||||
"mineflayer": "^2.39.2",
|
"mineflayer": "^2.34.0",
|
||||||
"mineflayer-armor-manager": "^1.3.0",
|
"mineflayer-armor-manager": "^1.3",
|
||||||
"mineflayer-pathfinder": "^1.2.3",
|
"mineflayer-pathfinder": "^1.1",
|
||||||
"mineflayer-pvp": "^1.0.2",
|
"mineflayer-pvp": "^1",
|
||||||
"prismarine-block": "^1.7.2",
|
"prismarine-block": "^1",
|
||||||
"prismarine-chat": "^1.0.3",
|
"prismarine-chat": "^1",
|
||||||
"prismarine-entity": "^1.1.0",
|
"prismarine-entity": "^1.1.0",
|
||||||
"prismarine-item": "^1.5.0",
|
"prismarine-item": "^1.5.0",
|
||||||
"prismarine-nbt": "^1.3.0",
|
"prismarine-nbt": "^1.3",
|
||||||
"prismarine-recipe": "^1.1.0",
|
"prismarine-recipe": "^1",
|
||||||
"typescript": "^4.1.3",
|
"typescript": "^4",
|
||||||
"vec3": "^0.1.7"
|
"vec3": "^0.1",
|
||||||
|
"dotenv-packed": "^1.2"
|
||||||
},
|
},
|
||||||
"files": [
|
"files": [
|
||||||
"lib/**/*"
|
"lib/**/*"
|
||||||
|
|
Loading…
Reference in New Issue
Block a user