1.8.8 Increase particle size

Discussion in 'Spigot Plugin Development' started by Vengine, May 7, 2021.

Thread Status:
Not open for further replies.
  1. Hey, I'm trying to code this particle effect:
    [​IMG]
    Unfortunately, this is what it looks like with my plugin:
    [​IMG]

    My code:
    Code (Java):
    player.getWorld().playEffect(player.getLocation(), Effect.EXPLOSION_LARGE, 1);
    Does anyone know how I can increase the size of the particles?
    Thank you!
     
  2. You could try EXPLOSION_HUGE, but it looks like their server has a custom resource pack judging by the blue/gray circle around that sheep head thing in your image.
     
  3. These huge particles looks like a very hacky way with the Giant, Packets and NMS.

    Are you shure the Server you're trying to copy doesn't use a Resourcepack?
     
    • Agree Agree x 1
  4. Thank you, yes I am.
     
  5. Unfortunately, EXPLOSION_HUGE looks quite different. The server (Hypixel) does not use a texture pack.
     
  6. Did you see this on an 1.8.8 server? I know that on later versions some particles have a size option, but it wasn't there on lower versions.
     
  7. Yes Hypixel is 1.8
     
  8. I meant if you joined with a 1.8 client?
     
  9. yes
     
  10. But somehow Hypixel did it
     
  11. I found a solution

    Code (Java):
    PacketPlayOutWorldParticles packet = new PacketPlayOutWorldParticles(
                                EnumParticle.EXPLOSION_LARGE, true, (float) playerLocation.getX(),
                                (float) playerLocation.getY(), (float) playerLocation.getZ(),
                                0, 0, 0, 7, 6
                        );

                        for(Player online : Bukkit.getOnlinePlayers()) {
                            ((CraftPlayer)online).getHandle().playerConnection.sendPacket(packet);
                        }
     
Thread Status:
Not open for further replies.