How to make a ricochet-player-by-player?

  • Thread starter Thread starter /u/monarchh0042
  • Start date Start date

/u/monarchh0042

Guest
Member
I need my plugin to detect when X player hits Y player, then X player needs to suffer a knockback in a specific direction

I first tried using setVelocity so I could also determine the velocity of the direction to be the same of the velocity before the collision, but for some reason setVelocity and getVelocity don't work well when players are not on the ground (and the hit lifts you a bit) and can't detect or set the X and Z coordinantes

then I thought i could use Knockback, but i don't think it's possible to set repulsion without a item and determining the direction of the Knockback doesn't seem to be possible too

I don't want to use teleport... Is there any other way?

submitted by /u/monarchh0042
[link] [comments]

Continue reading...

free plugins
minecraft paid for free
spigotmc
SpigotMC
free minecraft paid plugins
free minecraft plugins
aac free
ewg free
Minecraft Premium Plugins
ewg free download
litebans free
epicworldgenerator free
free schematics
leaked schematics minecraft
schematics
schematics leaked
schematics free
minecraft schematics free
paid minecraft schematics free
paid minecraft schematics for free
free cracked plugins
free cracked minecraft plugins
plugins
featherboard download
featherboard plugin download
antiaura download
minecraft plugins
xenforo leaked
xenforo for free
xenforo addons
 
Top