Generating an EARTHQUAKE o.O

Discussion in 'Plugin Development' started by thehutch, Dec 30, 2011.

  1. Offline

    bergerkiller

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    @thehutch you are adding the location to the location, use p.getLocation().add(0, -1, 0) instead of doubling the values.
  2. Offline

    thehutch

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    @bergerkiller

    Ok so I have everything hooked up and I see all the effects and blocks so move but not like you had in your video, in mine I have to spam the spell lots of times, am I meant to for it in a for loop or something? (the makeEarthquake() ) ???
  3. Offline

    bergerkiller

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    @thehutch it's possible that the area you test it on is not flat enough, you may need to alter the function a bit to make shockwaves pass underneath too. (it's at the while (y < 127) and I go up until I find air, go down there too)

    I'm busy, so can't really help too much...
  4. Offline

    thehutch

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME

    This post has been edited 2 times. It was last edited by thehutch Dec 31, 2011.
  5. Offline

    nkrecklow

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    Code:
    active.getWorld().createExplosion(active.getLocation(), 0);
    active.getWorld().playEffect(active.getLocation(), Effect.SMOKE, 5);
    Both are not needed, I would recommend just the effect, because its smaller and doesn't cause nearly as much lag, but if you have both, you don't notice the smoke effect in the tnt effect.
  6. Offline

    ilios_elvetikos

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    Hello Sir, any News about the Plugin? :)
  7. Offline

    TopGear93

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    did you really have to necro this post?
    thehutch likes this.
  8. Offline

    thehutch

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME

Share This Page