Minecraft Wiki
Advertisement

The maths behind Loyalty's return time[]

So, seeing as this is one of the only Enchant pages with no explanation of how level mathematically affects the enchantment effect, I decided to do some testing. I tested Loyalty I, II, and III over distances of 5, 10, 15, 20, 25, 30, and 35 blocks. Here are my results for the time between strike and return (partly kept track of via command blocks to ensure accuracy):

Distance Loyalty I Loyalty II Loyalty III
5 Blocks 1.5s 1.25s 1.17s
10 Blocks 2s 1.5s 1.33s
15 Blocks 2.5s 1.75s 1.5s
20 Blocks 3s 2s 1.67s
25 Blocks 4s 2.5s 2s
30 Blocks 3.5s 2.25s 1.83s
35 Blocks 4.5s 2.75s 2.17s

Note that the only anomaly is 25 and 30 blocks, whose results, oddly enough, are swapped in-game (possibly an undetected/unreported bug?).

Observations: over 1 second (which seems to be the base time), return time takes an additional 0.1 seconds per block for Loyalty I, 0.05 seconds per block for Loyalty II, and 0.0333(...) seconds per block for Loyalty III. This works out to a nice, easy formula:

  • Return Time = 1 + (0.1 * Distance)/(Loyalty Level)

I'm not sure if this is 100% accurate (again, there's that weird glitch around 25~30 blocks I can't explain), but this seems to hold true for all other values tested. After testing Loyalty X at 35 Blocks, the formula seems to still be holding up (measured ~1.3 seconds, the formula gives 1.35).

Thoughts?

--23.124.116.45 16:44, 22 July 2020 (UTC) --23.124.116.45 16:45, 22 July 2020 (UTC) (slight edit because I'm dumb)

Advertisement