#(0TickPingo) cause player to left click

1 messages · Page 1 of 1 (latest)

nocturne scarab
#

i am writing a utility script for my smp that allows the player to set up an autoclicker for things like farms and stuff without having to make one on the client. i seem to be unable to find the right thing to make the player click tho. it seems like animate just plays the animation and doesn't do anything

icy eagleBOT
#

(0TickPingo) cause player to left click

icy eagleBOT
#

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.

night zodiac
#

I'm not sure you can force a click

#

Why not just animate and run your code

nocturne scarab
#

the point is that it should also break blocks and hit entities and stuff

#

but if you cant its not a big deal either

vapid rapids
#

you might need to raytrace what the player is looking at and fake it each animation

night zodiac
#

You can modify block with source as the player which would trigger a break/place, same goes with the hurt command
Can just check what block/entity they're looking at

nocturne scarab
#

eh, i think that would be too much effort to include all edge cases to perfectly replicate vanilla and stuff

#

i'll just stick with clientside ones for now