Pokkit icon indicating copy to clipboard operation
Pokkit copied to clipboard

Spawn entities (pig, chicken) do not move and just stand still

Open denisglotov opened this issue 6 years ago • 2 comments
trafficstars

I have spawn some entities, but they don't move and even, if spawn above the earth, do not fall down. I used world.spawnEntity(x, y, z, EntityType.fromId(90)) to spawn a pig. Maybe this is because Motion tag is set to zero (https://github.com/PetteriM1/Pokkit/blob/new-master/src/main/java/nl/rutgerkok/pokkit/world/PokkitWorld.java#L944)?

denisglotov avatar Oct 20 '19 11:10 denisglotov

There is no mob ai in Nukkit

PetteriM1 avatar Oct 20 '19 13:10 PetteriM1

There are other plugins on Nukkit that have AI implemented though, I would advise doing a reflection check for Nukkit classes (to confirm you're on a Nukkit server), then use this: https://nukkitx.com/resources/mobplugin.3/

noahcoetsee avatar May 05 '20 17:05 noahcoetsee