#Totem Detection

1 messages · Page 1 of 1 (latest)

small thicket
#

Hello can anyone help me how to make a anti-auto totem with this new scripting equipment checker i can't find a way to make one maybe anyone can help me pls

small thicket
#

Anyone? pleaseee

marsh star
#

you can use a system tick

#

tick interval*

#

hold up let

#

let me make you one real quick

#

oh wait anti totem

#

nevermind

glad lark
#

Do you want it to detect when someone equips a totem whilst not opening their inventory

#

If so, my only idea is to track the movement of the player a couple of ticks before and after they equip the totem. As the average player most likely can't open their inventory, equip a totem and then close their inventory in a couple of ticks, they should have a couple of ticks where they are deaccelerating

#

If they are acceleting during the period they equip the totem, they are most likely auto toteming

#

How does that sound

#

Also are you asking for someone to code it for you

fast fossil
#

subscribe an entityHurt event

#

check if the damage is < 0

#

and if the damage cause is 'none'

#

that's how you detect totem

glad lark
#

hes not talking about that

#

hes talking about detecting an autototem cheater

glad lark
#

@small thicket

fast fossil
#

you need to first detect a postmortal for detecting an auto totem, you know?

#

if in the same tick the totem was activated the player has another totem in offhand then he is cheating

#

the thing here is taking in count a "tick treshold" to take the player as a cheater

glad lark
#

i guess thats fair enough

#

yeah thats a better way of doing that

#

so does totems have -1 damage or smth