Hey, how can we spawn an entity (for example a firework) with a command (/firework <x> <y> <z> <type> ??
PHP: $nbt = Entity::createBaseNBT(new Vector3(x, y, z)); If you are using build versions of software, you should change Entity to EntityFactory.