Fluid type whitelist/blacklist for movement module
barttraeger opened this issue ยท 2 comments
Enhancement
Hi, love your mod, great work!
It would be nice to have a whitelist/blacklist in the config for movement behavior in different fluids.
E.g. swimming in lava would only work the vanilla way, so that you are automatically sinking.
Another thing: right now the quicksand from Biomes O Plenty doesn't drag you down with the movement module enabled, you sink one block and then "float" there.
Implementing a config for enabling/disabling the movement module in different fluids would
solve this and greatly improve overall compatibility.
Good idea but it's more complicated than you might think. I'm not checking if the player is inside a fluid. I'm using vanilla methods and iirc they check for the material.
And because the material of lava isn't water in lava everything works like in vanilla.
And because the material of quicksand is water the movement is changed.
So a black-/whitelist would require a custom check in which fluid the player currently is.
This is not a thing i'm currently planning to do. Because it's harder to implement than it looks like and i'm focusing mostly on features, game breaking issues and performance.