Hi There! i dont know what is the mistake in my code! PHP: $player->addParticale(new Vector3(HeartParticale($x, $y, $z)));
@luca28pet ok i did it and i added "new" to Heart Particle PHP: $player->getLevel()->addParticle(new Vector3(new HeartParticle($x, $y, $z))); and i got a error say "undefined vairable x y z"
okkkk i fixed it all! i just changed the Vector3 and HeartParticle Places And added player->$x $y $z and my Plugin Worked! PHP: $player->getLevel()->addParticle(new HeartParticle3(new Vector3($player->x, $player->y, $player->z)));
Just so you know what the error means: Undefined variable means, of course, that the variable isn't defined. Means, you didn't give $x, $y, $z any values. You have to set them before you use them. For example: PHP: $x = $player->getX();$y = $player->getY();$z = $player->getZ();