Fabric API

Fabric API

106M Downloads

Expand on the Climbing API

TelepathicGrunt opened this issue ยท 3 comments

commented

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

commented

Should mention the old climbable PR has some capability to do this:
#62

commented

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.

commented

It would probably end up as a v2 module.