
[Feature Request]: Better difficulty decrease
SamuelUlep opened this issue ยท 0 comments
Suggestions
Implementation of difficulty decrease is kinda meh as of Improved Mobs 1.20.1-1.13.6 (or is bugged) and would like if the difficulty decrease was changed
Solution
Currently as per testing, when attempting to decrease the difficulty by a certain value, it reaches the minimum threshold which then decreases the difficulty by the specified amount before reverting to the increasing amount, lets take the one in #327 as an example but less extreme.
"input": [
"0-0.01",
"9.9-0.1",
"30.0|-0.1"
]
So when it reaches the difficulty of 30, in the next 2400 tick it subtracts from the difficulty by 0.1 and then since its no longer at the difficulty of 30 it goes back to the "9.9-0.1"
condition and increases the difficulty by 0.1 bringing it back again to 30, it flips between the last two conditions as per the example every 2400 ticks in my testing.
I was hoping that instead of being a minimum current difficulty, it becomes a difficulty threshold condition; where when it reaches that difficulty value by either increment or decrement it continues to do that addition or subtraction of the difficulty until it reaches another condition. So following the example, when the difficulty reaches 30, it then subtracts from the difficulty until it reaches difficulty of 9.9 in which it then proceeds to add to the difficulty until it reaches difficulty 30 again and so forth and so forth.