PetteriM1 / Pokkit

Nukkit plugin that is able to load some Bukkit and Spigot plugins
https://nukkitx.com/resources/pokkit.21/
Other
41 stars 8 forks source link

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

Open denisglotov opened 4 years ago

denisglotov commented 4 years ago

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)?

PetteriM1 commented 4 years ago

There is no mob ai in Nukkit

noahcoetsee commented 4 years ago

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/