Skip to content
This repository has been archived by the owner on Feb 24, 2024. It is now read-only.

Remove FakePlayer #135

Closed
wants to merge 3 commits into from
Closed

Remove FakePlayer #135

wants to merge 3 commits into from

Conversation

mworzala
Copy link

@mworzala mworzala commented Feb 7, 2024

No description provided.

@MelonHell
Copy link

I agree with the removal of FakePlayer, I myself do not like its implementation. But how to spawn NPCs now?

@mworzala
Copy link
Author

mworzala commented Feb 7, 2024

FakePlayer is/was not intended to be used for NPCs, this is one of the major reasons I want it gone (it is confused constantly).

The typical method of creating an NPC is to use an entity with the type PLAYER and handle addViewer/removeViewer to create the relevant tab list entries. I attached an example from one of my projects.

https://gist.github.com/mworzala/2c5da51204c45c70db771d0ce7fe9412

@mworzala
Copy link
Author

Moved to Minestom

@mworzala mworzala closed this Feb 24, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants