FabricMC / fabric

Essential hooks for modding with Fabric.
Apache License 2.0
2.35k stars 414 forks source link

Expand on the Climbing API #636

Open TelepathicGrunt opened 4 years ago

TelepathicGrunt commented 4 years ago

I was talking in the Fabric Discord about what the Fabric equivalent is of Forge's isLadder() hook. I was using the hook to make my block climbable only when it has certain blockstates but since Vanilla uses a climbable tag that is only applied to the block itself, I cannot easily make my block climbable based on blockstates.

If I apply climbable tag on my block, then when my block is facing only downward, the player ends up floating when they walk on the block which doesn't look right. Hence this request. image

The someone came up with is that Fapi should provide a way to let modders adjust climbing speed based on blockstates or at least a toggle of some kind. I'll be totally find with any way this gets implemented as this can help people make more interesting kinds of blocks and more control over the climbing feature. Maybe even a block that becomes harder to climb when it is raining or become more climbable the more broken it is. :)

Until then, I'll be looking into making a mixin for my use-case but other may really like this feature in Fapi

i509VCB commented 4 years ago

Should mention the old climbable PR has some capability to do this: https://github.com/FabricMC/fabric/pull/62

modmuss50 commented 4 years ago

This might be slighly more challanging as the climbing module is only in 1.15 as 1.16 vanilla has the built in tag. However I dont see why it couldnt be updated or slotted into an existing module.

i509VCB commented 4 years ago

It would probably end up as a v2 module.