#(Niklas) No crossbow reloading while moving

23 messages · Page 1 of 1 (latest)

slender wigeonBOT
#

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.
You can block this bot if you don't want to see these messages, I won't mind.
<@&525394568410038282>

ocean elm
fading minnow
#

!vague

cosmic canopyBOT
# fading minnow !vague
Info: vague

Your question is too vague to be able to answer well.

If you're asking how to do something, please make sure to add some background detail. Make sure to specify your overall end goal and the general design/idea and any existing progress towards that goal, not just the single specific point.

For script-related problems, see also !info haste debug. For non-scripting server trouble, see !logs.

See also !xyproblem

ocean elm
#

I want the player to NOT reload a crossbow while he is moving.

fading minnow
#

Apply a slow when the player right clicks a crossbow

ancient summit
#

That depends, do you want loading the crossbow to stop them, or not let them start loading the crossbow if they're moving?

#

It sounds like you want the latter?

fading minnow
#

Ohhh

#

I get what you mean now

ancient summit
#

I'd probably listen to the step on block event, flag them with a short expire, and check for that flag in the load crossbow event?

lament furnace
#

i'd check <player.velocity> but with .with_y[0] and see if it equals zero

keen quartz
#

weird client thing, i think - but there's sometimes when it can return zero constantly even when moving until you start looking around

opaque kernel
#

Alternatively instead of checking the velocity, you could freeze the player when he reloads the crossbow.