I'm trying to learn how to add entities into levels, so here is what I think it is: PHP: $this->getServer()->getLevel()->addEntity(new PrimedTNT());
PHP: /** @var Vector3 $v3 *//** @var Level $level */$nbt = new Compound("", [ "Pos" => new Enum("Pos", [ new Double("", $v3->x), // same with y and z ]), "Motion" => new Enum("Motion", [ new Double("", 0.0), new Double("", 0.2), new Double("", 0.0) ]), "Rotation" => new Enum("Rotation", [ new Float("", 0), new Float("", 0) ]), "Fuse" => new Byte("Fuse", 80)]);$ent = Entity::createEntity(new PrimedTNT($level->getChunk($v3->x >> 4, $v3->z >> 4), $nbt)));$ent->spawnToAll();