#(skullfurious) I'm trying to make it so players can knockback other players when they land.
16 messages · Page 1 of 1 (latest)
(skullfurious) I'm trying to make it so players can knockback other players when they land.
Hi I'm AutoThreadBot! Don't mind me, I'll just be adding the helper team to this thread so they can see it. A human will get to you soon.
declaration: package: org.bukkit, enum: Particle
Is it not one of the GUST variants?
Is that just a particle though or is there a way to make the player stomp the ground like with a mace
I can't say I've played with maces
It's not a big deal, I'm writing it myself. Poorly, but surely.
/ex push <player.target> origin:<player.target.location> destination:<player.target.location.sub[<player.location>].normalize.mul[5].add[<player.target.location>].add[0,5,0]> no_rotate duration:5t
Normalized vector FROM the player to the target then multiply it and give it some vertical power.
Actually if you happen to know how to provide a value (e.g.) 40, into a range, and get back a value between the min and max of that range based on that value?
so to explain
If I take 40 damage, I want it to give 5, if I take 20 damage, I want it to give 2.5, and if I get 0 damage, I want it to return 0.
linear mapping apparently
Apparently I'm looking for a 1/8 ratio lmao