Hello, I would like to know, how to generate an entity, I have already tried it, but it says: Call to a member function spawnTo() on null.
Yes, maybe, here is my attempt: PHP: $position = new Position($x, $y, $z, $player->getLevel());$nbt = Entity::createBaseNBT($position);$entity = Entity::createEntity(10, $player->getLevel(), $nbt);$entity->spawnToAll();
Are you sure entity id 10 is registered? PocketMine is missing most entities, so mobs are not registered by default