Open
Description
Some entities types that are given to entities are not included in the documentation or typescript types.
For example when you run this code with a mineflayer bot:
let nearest = bot.nearestEntity((entity: any) => {
console.log(entity.type);
});
There will be other types such as 'water_creature' or 'hostile' which isn't listed in the documentation or in the typescript types.
To reproduce
- Open a singleplayer world to lan in 1.19.3
- Create a mineflayer bot
- Run the aforementioned code
New types
It appears as though some of the new types are:
'animal',
'player',
'hostile',
'ambient',
'other',
'water_creature',
'orb'
There may be more, but from what I can tell this is all.
I got this information by running this code:
let types = new Set();
let nearest = bot.nearestEntity((entity: any) => {
types.add(entity.type);
});
console.log(types)
I then put several different kind of entitles around the bot to try and see if there were any others.
If I missed something please let me know, thank you for anything is advance :)
Metadata
Metadata
Assignees
Labels
No labels