This is a completely serious, totally not a joke mod that adds a 0.0001% chance to stub your toe every time you walk or run from block to block. This chance is doubled when you are walking up blocks without jumping (ex: walking up stairs/slabs, stepping up from farmland/paths onto a fullblock.
When you stub your toe, you are inflicted with a status effect that slows you down and may temporarily disable your ability to sprint or even move.
This mod is inspired by a Starbound mod with the same name that effectively does the same thing.
There are 3 different status effects that can be applied when you stub your toe, which one is actually applied depends on how fast you were moving when you stubbed your toe.
If you have the ParCool mod installed, you will be forced into a roll when you stub your toe. This can be disabled in the configuration, and ParCool is not required for the mod to function (you just won't do a roll after stubbing your toe...)
The mod will create a file called stubyourtoe.toml in the config folder which can be used to configure the mod.
The default contents for the file can be found below:
#The percent chance that a player will stub their toe when crossing the edge of a block.
#Range: 4.9E-324 ~ 100.0
baseStubChance = 1.0E-4
#The modifier for the chance that a player will stub their toe when "stepping up" from a lower y-level to a higher y-level. (Ex: stairs, slabs, etc.)
#Range: 0.01 ~ 100.0
stepUpStubModifier = 2.0
#If enabled, the player can stub their toe even while sneaking.
enableSneakStub = false
#If enabled, the player will enter a roll when they stub their toe. This setting only applies if the "ParCool! ~ Minecraft Parkour ~" mod is installed.
enableRollOnStub = true
#The speed modifier applied to a player with the Stubbed Toe status effect.
#Range: 4.9E-324 ~ 1.0
stubbedToeSpeedModifier = 0.25
#The duration (in ticks) that the first tier of the status effect will last.
#Range: > 1
tier1DurationTicks = 1300
#The duration (in ticks) that the second tier of the status effect will last.
#Range: > 1
tier2DurationTicks = 400
#The duration (in ticks) that the third tier of the status effect will last.
#Range: > 1
tier3DurationTicks = 100