Solved Chunk particles glitchy on 1.14.4?

Discussion in 'Spigot Plugin Development' started by Sean0402, Feb 10, 2020.

Thread Status:
Not open for further replies.
  1. Hey, I was working on chunk particles and for some reason this is the result

    It glithces out and only shows some of it sometimes, whereas sometimes it'll completely disappear. then come back. Not sure if this is normal behaviour?

    Here is my code;
    Code (Java):
                                        Location border = new Location(p.getLocation().getChunk().getWorld(), p.getLocation().getChunk().getX() * 16 + x + 0.5, y, p.getLocation().getChunk().getZ() * 16 + z + 0.5);

    Bukkit.getScheduler().scheduleSyncRepeatingTask(BluePolice.getInstance(), () -> {
                                            border.getWorld().spawnParticle(Particle.VILLAGER_HAPPY, border, 10);
                                        }, 0L, 20L);
    I use a for loop to loop through X Y Z before adding this, which is how the chunk works of course.

    Anyone else had this weird visual glitch?
    #1 Sean0402, Feb 10, 2020
    Last edited: Feb 10, 2020

    For others wondering;
    I changed the count to 1 instead of 10 :unsure:
    • Winner Winner x 1
Thread Status:
Not open for further replies.