Pehkui
Pehkui copied to clipboard
[Bug]: Jump height not scaling linearly
Minecraft version(s)
1.19.2
Minecraft version details
No response
Mod loader
Fabric
Mod loader version
0.14.9
Fabric API version
0.62.0
In what kind of world or server did the problem occur?
A multiplayer server that I was connected to
What went wrong? (Crash logs don't go here)
I'm tinkering with the pehkui:jump_height
scale type, wanting to recreate a sort of inchling-style origin (based on the one in Extra Origins) but without any potential conflicts with other Pehkui-based mods like White Rabbit. However, I assume it is still in-progress, as the values don't scale linearly like I expected them to.
When I set the jump_height
to 1, its default, I have the normal jump height of around 1.25 blocks. However, when I set it to 2, suddenly I can leap over 4 blocks into the air! The server I was running my initial tests on was running Pehkui version 3.4.2, so I updated to 3.5.0 client side to see if that would change anything in single player (even tho the patch notes said nothing about this). It didn't change the oddity.
Setting the scale to 3 produced an interesting effect, as I jumped up to nearly 9 blocks high. Continuing to 4, the jump height went to over 14 blocks high. It's almost like the change is acting as a square exponent function rather than a straight linear function (2^2 = 4, 3^2 = 9, 4^2 = 16, etc), but with decreasing accuracy over larger distances. Keeping the numbers low provided more recognizable results (1.5^2 = 2.25, 2.5^2 = 6.25), and using numbers smaller than zero squares them too (0.5^2 = .25 = can't even jump a halfslab).
I cannot tell if this was intentional or not, as the jump height does seem to scale linearly with the pehkui:motion
scale, however there is currently no way to modify the jump height within its dependencies (which is where I assume pehkui:jump_height
's eventual placement will be upon completion).
As this is likely still experimental, I'm thinking of just finding more stable options for my origin for now (Origins has the modifier baked right in so I'll probably use that one), but I'd like to find ways to integrate as many scaling formats into Pehkui's as I can, as the mismatch between the Inchling origin's motion scales being based on Minecraft's vanilla attribute vs Pehkui's motion scale gave me a few issues trying to math out how exactly I wanted to scale things for my own origin.
Full list of installed mods and their version numbers
bclib-2.1.0.jar better-end-2.1.0.jar better-nether-7.1.0.jar charm-fabric-1.19.2-4.4.4.jar cloth-config-8.2.88-forge.jar Croptopia-1.19.2-FABRIC-2.1.0.jar decor4fabric-1.2.1-1.19.jar.jar dontherdme-beta_1.1.1_1.19.2.jar DramaticDoors-Fabric-1.19.2-1.3.2.jar Drogtor-1.19-1.1.3.jar End+Origins.jar Extra+classes.jar extraorigins-1.19-2.jar fabric-api-0.62.0+1.19.2.jar flesh2leather-1.0.3+1.19.jar geckolib-fabric-1.19-3.1.22.jar goodall-1.1.1-fabric.jar inmis-2.7.0-1.19.jar LatoOrigins-1.19.2-1.1.0.jar max-enchant-x-1.1-1.19.X.jar moborigins-1.9.0.jar myloot-3.0.2-1.19.1.jar nethermap-2.0.2-1.19.2.jar Origins-1.19.2-1.7.0.jar Origins-Classes-1.19-1.4.0.jar oxidized-1.7.2.jar Pehkui-3.4.2+1.14.4-1.19.2.jar spoornpacks-4.3.3-1.19.1.jar TooManyOrigins-0.6.5+1.19-fabric.jar voicechat-fabric-1.19.2-2.3.10.jar WhiteRabbit-1.1.0+1.14.4-1.19.2.jar Xaeros_Minimap_22.15.1_Fabric_1.19.1.jar XaerosWorldMap_1.28.0_Fabric_1.19.1.jar
Did the problem cause the game to crash?
No.
Full crash report contents (if you experienced a crash)
No response