#How can i make a custom pvp knockback like The hive or Cubecraft ??
1 messages · Page 1 of 1 (latest)
on damage add velocity or something
i already maange to do it but ty
@open quarry i'm uploading a clip
so what do u think of it ? @open quarry
There's an applyKnockback
can i get that damage indicator?
could you try this with an autoclicker (>20cps) and tell me if the hit cooldown is still 10 ticks for you
i was trying to make something like this aswell but the hit registration was awful
turn it off, i just wanna see cause of the hitreg
ahh alr
you’re using applydamage for this right
its just vanilla hit reg
only applyknockback
i didnt change any player.json data
oh that’s interesting, can i ask how you canceled the vanilla knockback
i could remove some delay using player.json but its quite buggy
i just applied knockback, it automatically cancels the vanilla knockback
ahh okay, thanks for the info :)
that’d be great
can i ask if this fixes hit cooldown bugs or not? i assume it doesn’t though cause as you said it only applies knockback
wdym
whats that
@exotic bolt
please dont share the code tho
btw are you making a server ?
kind of yeah
won’t
uhh like
have you noticed a bug where you can double hit people in bedrock
or make tjem take knockback even when they’re not being damaged
that’s great i’ve always wanted to have that fixed :)
did you dm me it
yup
it went into my requests if so
alr, i’ll have a look thanks
np
isn’t the pack open sourced 💀
unedited*
i modified it. i only used the ah / faction / vaults part of UM
i was talking abt the rest
Doesn't change the fact it's open source 🤷
?????
i was literally talking about my additions
not any of UM's one
the kb is mine
how?
imma send u one
alr
where are u sending?
the hologram?
i just want the damage indicator
i might have the old code for it
const { x, y, z } = player.location;
const h = world.getDimension(`overworld`).spawnEntity('mod:damage_entity', new Vector(x + offset[0], y + offset[1], z + offset[2]));
h.nameTag = text;
h.applyImpulse({ x: vector[0], y: vector[1], z: vector[2] });
}```
this could technically still work i’ve never tested or checked
wait
there’s more i need to find
😭
needs tweaking since it was used with a custom api but you add allat in a entityHurt event
.indicator(data.hurtEntity, §c§l${(data.damage / 2).toFixed(1)}, [0, -0.1, 0], [CX.extra.random(-1, 1), 0.5, CX.extra.random(-1, 1)]);
}
});
@dreamy plinth
sure
sam
yeah?
do u have the thing
imma send th eindicator
CX.extra.indicator(data.hurtEntity, §4§l${(data.damage / 2).toFixed(1)}, [0, -0.1, 0], [CX.extra.random(-1, 1), 0.5, CX.extra.random(-1, 1)]);
but
imma send u one
that works
for every thing
sure
ok
nvm sam i got one working i think
my code btw
const location = hurtEntity.location
const otherRandom = Math.round(Math.random())
const random = Math.random() + 0.5
const hologram1 = world.getDimension("overworld").spawnEntity("traye:hologram", {x:location.x-random,y:location.y+random,z:location.z+random})
const hologram2 = world.getDimension("overworld").spawnEntity("traye:hologram", {x:location.x+random,y:location.y-random,z:location.z+random})
if (otherRandom == 0) {hologram1.nameTag = `§c-${damage/2} `; system.runTimeout(() => {
hologram1.remove()
},10)}
if (otherRandom == 1) {hologram2.nameTag = `§c-${damage/2} `; system.runTimeout(() => {
hologram2.remove()
},10)}```
u should put it in script resources ,would be helpful to ppl @dreamy plinth
thats just what i was thinking
yeah but it's paid
Does not work with players only entities
applyknockback:
Sure come in my dms