Started by
BlackAndWhite
on
Topic category: Help with Minecraft modding (Java Edition)
Can please someone help me with making procedure that will disable sprint for player when he wears an armor? Is it possible?
Topic category: Help with Minecraft modding (Java Edition)
Can please someone help me with making procedure that will disable sprint for player when he wears an armor? Is it possible?
You can do something like:
For every tick the player is wearing a full set of your custom armor, the script will set the sprint state to false. IF the player tries to sprint, it will immediately set the sprint state to false. I have not tested the script, so I do not know of any errors currently.
You could give them slowness I. This actually won't slow the player's walking speed down, but it will stop them from sprinting.