Pokkit
Pokkit copied to clipboard
Spawn entities (pig, chicken) do not move and just stand still
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)?
There is no mob ai in Nukkit
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/