All particle effects?

Discussion in 'Plugin Development' started by microgeek, Mar 29, 2013.

Thread Status:
Not open for further replies.
  1. Offline

    microgeek

    Has the API implemented all of the particle effects yet? Like witch particles, potion particles, and explosions(just examples). If they heven't I could make a class for this if anyone else wants it.
     
  2. Offline

    DSH105

    microgeek
    The API only has support for the following visual effects (I might miss some):
    • Eye of ender breaking
    • Mobspawner flames
    • Potion break splash
    • Smoke
    • Block break
    • Explosion
    I have also been able to create these effects (not as straightforward as above):
    • Bone meal sparkle
    • Music note
    • Hearts
    If you have others I'm sure I'm not the only one would like to see them :)
     
  3. Offline

    microgeek

    I've created a utility class with the following particles using packets:

    hugeexplosion
    largeexplode
    fireworksSpark
    bubble
    suspend
    depthsuspend
    townaura
    crit
    magicCrit
    smoke
    mobSpell
    mobSpellAmbient
    spell
    instantSpell
    witchMagic
    note
    portal
    enchantmenttable
    explode
    flame
    lava
    footstep
    splash
    largesmoke
    cloud
    reddust
    snowballpoof
    dripWater
    dripLava
    snowshovel
    slime
    heart
    angryVillager
    happerVillager
    iconcrack_X
    tilecrack_X_X

    I may post it in the resource section.
     
  4. Offline

    stirante

    I thought that many of them were created client-side. Have you tested it? And if you would post it you would sure get my like and support and anything xD
     
  5. Offline

    skipperguy12

  6. Offline

    LazyLemons

    microgeek Would love to see it in the Resources section.
     
  7. Offline

    chasechocolate

  8. Offline

    microgeek

  9. Offline

    chasechocolate

    Yes, please do! Can you make a thread in the resources section?
     
  10. Offline

    skipperguy12

  11. Offline

    stirante

  12. Offline

    microgeek

    There's no Api implantation for it yet, so you need to use reflection to set the values.
     
  13. Offline

    stirante

    Yes, I saw that packet even don't have constructor. Also doing Enum for ALL particle names :D.
     
  14. Offline

    microgeek

    Save yourself the time:
    Code:
        HUGE_EXPLOSION("hugeexplosion"),
        LARGE_EXPLODE("largeexplode"),
        FIREWORKS_SPARK("fireworksSpark"),
        BUBBLE("bubble"),
        SUSPEND("suspend"),
        DEPTH_SUSPEND("depthSuspend"),
        TOWN_AURA("townaura"),
        CRIT("crit"),
        MAGIC_CRIT("magicCrit"),
        MOB_SPELL("mobSpell"),
        MOB_SPELL_AMBIENT("mobSpellAmbient"),
        SPELL("spell"),
        INSTANT_SPELL("instantSpell"),
        WITCH_MAGIC("witchMagic"),
        NOTE("note"),
        PRTAL("portal"),
        ENCHANTMENT_TABLE("enchantmenttable"),
        EXPLODE("explode"),
        FLAME("flame"),
        LAVA("lava"),
        FOOTSTEP("footstep"),
        SPLASH("splash"),
        LARGE_SMOKE("largesmoke"),
        CLOUD("cloud"),
        RED_DUST("reddust"),
        SNOWBALL_POOF("snowballpoof"),
        DRIP_WATER("dripWater"),
        DRIP_LAVA("dripLava"),
        SNOW_SHOVEL("snowshovel"),
        SLIME("slime"),
        HEART("heart"),
        ANGRY_VILLAGER("angryVillager"),
        HAPPY_VILLAGER("happerVillager"),
        ICONCRACK("iconcrack_"),
        TILECRACK("tilecrack_");
     
  15. Offline

    stirante

    Too late xD

    Btw could you explain me what are those 'X' in tile crack?
     
  16. Offline

    microgeek

    Data and block ids
    From Minecraft:
    Code:
     else if (par1Str.startsWith("iconcrack_")) {
                            int var27 = Integer.parseInt(par1Str.substring(par1Str
                                    .indexOf("_") + 1));
                            var21 = new EntityBreakingFX(this.theWorld, par2, par4,
                                    par6, par8, par10, par12,
                                    Item.itemsList[var27], this.renderEngine);
                        } else if (par1Str.startsWith("tilecrack_")) {
                            String[] var28 = par1Str.split("_", 3);
                            int var25 = Integer.parseInt(var28[1]);
                            int var26 = Integer.parseInt(var28[2]);
                            var21 = (new EntityDiggingFX(this.theWorld, par2, par4,
                                    par6, par8, par10, par12,
                                    Block.blocksList[var25], 0, var26,
                                    this.renderEngine)).applyRenderColor(var26);
                        }
     
  17. Offline

    DSH105

  18. Offline

    MCForger

  19. Offline

    DSH105

    MCForger
    Yeah, I just noticed that. Great job!
     
  20. Offline

    MCForger

    _DSH105_
    Thank you! Hope you use this in your plugin!
     
Thread Status:
Not open for further replies.

Share This Page