@thehutch you are adding the location to the location, use p.getLocation().add(0, -1, 0) instead of doubling the values.
@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() ) ???
@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...
@bergerkiller This is what I have so far: SpellListener: http://pastie.org/3103600 Earthquake Spell: http://pastie.org/3103602 Ok well if your busy there is no need for me to take up your time just message me when/ if you can
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.