Ever wonder why no AM2 block-only spells have particle effects on block? Why they all have like empty spawnParticles method?
Well, that's cuz they fucked up a little.
Mithion decided, that when you hit Entity, method will receive (..., target.posX, target.posY + target.getEyeHeight(), target.posZ, ...) fully qualified Entity position with height, but when you hit Block, you just get (..., blockX, blockY, blockZ, ...) raw block int coords, and that's look just gross (I tried), cuz particles spawns on one of the down vertices of the cube instead of cube center.
Is there some way to distinct if entity or block was targeted, and then do + 0.5D to position? Nope. Nothing indicates about that except StackTrace, but I'm not Emoniph to write code that cracked.
Ever wonder why no AM2 block-only spells have particle effects on block? Why they all have like empty spawnParticles method? Well, that's cuz they fucked up a little. Mithion decided, that when you hit Entity, method will receive
(..., target.posX, target.posY + target.getEyeHeight(), target.posZ, ...)
fully qualified Entity position with height, but when you hit Block, you just get(..., blockX, blockY, blockZ, ...)
raw block int coords, and that's look just gross (I tried), cuz particles spawns on one of the down vertices of the cube instead of cube center. Is there some way to distinct if entity or block was targeted, and then do + 0.5D to position? Nope. Nothing indicates about that except StackTrace, but I'm not Emoniph to write code that cracked.Simple fix? Yep, just change this line:
to look like this:
AM2PG does that using ASM, and everything looks nice.