#(Niklas) No crossbow reloading while moving
23 messages · Page 1 of 1 (latest)
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>
Content of Denizen Script Paste #110250: Unnamed Denizen Script Paste... pasted 2023/05/25 03:41:27 UTC-07:00, Paste length: 365 characters across 9 lines, Content: #nicht nachladen
!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
I want the player to NOT reload a crossbow while he is moving.
Apply a slow when the player right clicks a crossbow
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?
not start
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?
i'd check <player.velocity> but with .with_y[0] and see if it equals zero
this can sometimes break
weird client thing, i think - but there's sometimes when it can return zero constantly even when moving until you start looking around
Alternatively instead of checking the velocity, you could freeze the player when he reloads the crossbow.