i changed spawn and despawn in Human class (from AddPlayerPacket to AddEntityPacket) and im using zombie instead of player. but zombies are always 2 blocks higher than where is player's position. i set NO_AI data flag to 1, and then that happens. Why? i need to set NO_AI to 1 because when it i 0, movement is very buggy
2 months ago, i sent a pull request to falk, just with the mobs on. https://github.com/Falkirks/DisguiseMe The way falk set the code makes it easier to add mobs. WHOOP WHOOP
It doesn't help add mobs at all, it's simply despawning a player from all the clients on the server and spawning an entity in place with the same entity ID so when the server recivies packets to move the entity the clients are sort of tricked into think the player is a mob and the mob is update as if it was the player.
Sending the client a packet doesn't add any mobs to any list, in fact when you remove the player you remove them from the player list
i dont think you know what I mean. what i mean is, when mojang add a new mob, simoly edit the MOBS LIST on the plugin resource.
yup. https://github.com/Falkirks/DisguiseMe/blob/master/resources/mobs.json. (i always know what im on about ) you also need to look at plugin in question's code to understand too xD
No i mean this: When player is on ground, zombie entity is 2 blocks higher. But this happens only if NO_AI flag is 1. But idk how to fix it.
Could it help when you set the zombie's coordinates 2 blocks down on Entity- or PlayerMoveEvent? I know this bug too, it happens too when you want to run TP codes with blocklauncher on local multiplayer worlds...