I use this code to move a entity. But my entity always gets invisible after the movement. How can I fix that? PHP: $this->level->addEntityMovement(/*THE NEW POSITION*/);
Take a look at this: https://github.com/RevivalPMMP/Pure...lpmmp/pureentities/entity/BaseEntity.php#L224
BlockPets should make this clear hopefully. Take a look here: https://github.com/BlockHorizons/Bl...ockHorizons/BlockPets/pets/WalkingPet.php#L43
This doesn't work for me. The pet is still at the old position. But if I print the distance between them the pet seems to be next to the player :/ And another question. Is there a way to turn the enderdragon? The dragon looks in the wrong direction
You have to learn how the code works. Simply copy pasting code is not going to work. For the ender dragon, simply set the yaw += 180.
Ok thanks. Do I need to update the position if I teleport the pet? I don't know what I'm doing wrong :/
What would be the best way to ride a entity? If I use the code from the pmmp API (boat) it crashes the game