Skip to content

Entity types do not correspond with documentation #54

Open
@MyUsernamee

Description

@MyUsernamee

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

  1. Open a singleplayer world to lan in 1.19.3
  2. Create a mineflayer bot
  3. 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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions