Closed yocontra closed 11 years ago
A couple more options:
"extras"
In addition to the "plugins" folder we have an "extras" folder. These are plugins that are not enabled by default. Like you suggested before, you can use bot.use('radar')
to inject the extra into your bot.
separate project
Installation would look something like require('mineflayer-radar')(bot)
.
The benefits of this are:
Also, I will expose all the classes on mineflayer in the next release, such as Entity, Block, etc. so if you want to add properties / methods to these classes you can.
Sweet if the classes are exposed I can quit annoying you with issues :+1:
What do you think about having Entity have nearest(filter), nearestWithinRange(filter) 6 block range default, nearestObject(), nearestMob(), nearestMobWithinRange(), nearestPlayer(), nearestPlayerWithinRange()
Finding entities relative to other entities would be fun. I want to make a bot that stands around PvP and when a player gets close enough to attack another player (6 blocks) it will say watch out X is trying to kill you.
I have this working with my radar plugin - just wanted your opinion before I add it to Entity and send a pull req