#How can i make a custom pvp knockback like The hive or Cubecraft ??

1 messages · Page 1 of 1 (latest)

wraith bloom
#

Title

open quarry
#

on damage add velocity or something

wraith bloom
#

i already maange to do it but ty

#

@open quarry i'm uploading a clip

#

so what do u think of it ? @open quarry

potent crag
dreamy plinth
wraith bloom
#

private for my pack but its rly easy

#

to make

exotic bolt
# wraith bloom

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

wraith bloom
#

i alr have an anti autoclicker

#

and btw

#

i didnt rly understand

exotic bolt
wraith bloom
#

ahh alr

exotic bolt
wraith bloom
#

its just vanilla hit reg

exotic bolt
#

and applyKnockback

#

?

wraith bloom
#

i didnt change any player.json data

exotic bolt
wraith bloom
#

i could remove some delay using player.json but its quite buggy

wraith bloom
exotic bolt
wraith bloom
#

np

#

if u want the code i could give it to you

#

its rly simple

#

@exotic bolt

exotic bolt
#

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

wraith bloom
#

wdym

#

whats that

#

@exotic bolt

#

please dont share the code tho

#

btw are you making a server ?

exotic bolt
exotic bolt
exotic bolt
#

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

wraith bloom
#

this fixes it i think

#

try it

exotic bolt
#

that’s great i’ve always wanted to have that fixed :)

exotic bolt
wraith bloom
#

yup

exotic bolt
#

it went into my requests if so

exotic bolt
wraith bloom
#

np

weary crow
#

unedited*

wraith bloom
#

i was talking abt the rest

nimble aspen
wraith bloom
#

?????

#

i was literally talking about my additions

#

not any of UM's one

#

the kb is mine

dreamy plinth
wraith bloom
#

imma send u one

dreamy plinth
#

i alr have the hologram

wraith bloom
#

alr

dreamy plinth
weary crow
#

mines dooky

dreamy plinth
weary crow
#

wait no im too tired for this

#

i read

#

“algorithm”

#

im slow

#

my bad

#

😭

dreamy plinth
#

do u want it

#

?

weary crow
#

nah it’s fine

#

do you want the custom knockback i made?

dreamy plinth
#

i just want the damage indicator

weary crow
#

i might have the old code for it

weary crow
# dreamy plinth i just want the damage indicator
        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

wraith bloom
#

sure

dreamy plinth
#

sam

wraith bloom
#

yeah?

dreamy plinth
#

do u have the thing

wraith bloom
#

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

dreamy plinth
#

ok

dreamy plinth
wraith bloom
#

W

#

sry if i couldnt help u

dreamy plinth
#

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)}```
wraith bloom
#

u should put it in script resources ,would be helpful to ppl @dreamy plinth

dreamy plinth
#

thats just what i was thinking

wraith bloom
#

yeah but it's paid

rustic echo
open quarry
wraith bloom
#

Sure come in my dms