Skip to main content
7 events
when toggle format what by license comment
May 14, 2016 at 6:25 vote accept nelson2tm
May 13, 2016 at 13:59 answer added Skylinerw timeline score: 2
May 13, 2016 at 12:18 history edited nelson2tm CC BY-SA 3.0
added 43 characters in body
May 13, 2016 at 6:45 comment added Orc JMR @Liesmith 's guess is very likely, though someone needs to look into game's code to say for sure. According to wiki, enchantment levels are stored on Short numbers, which gives a range of -32768 to 32767 (hence you are able to assign 128 at all), so the conversion to Byte (-128 to 127) happens somewhere during effect calculation.
May 13, 2016 at 6:01 comment added Liesmith Just a guess, so I won't put it as an answer, but this sounds like an issue with the datatype used to store the potion modifier. For instance, a signed 8-bit datatype has a range of -127 to 127, so if you try to store a 128, it loops back to -127. In this case, it sounds like the potion level is displayed correctly, but when that level is applied to the effect modifier, it overflows.
May 13, 2016 at 5:33 history edited nelson2tm CC BY-SA 3.0
added 444 characters in body; edited title
May 13, 2016 at 5:04 history asked nelson2tm CC BY-SA 3.0