Started by
BlueAwesomeDinosaur
on
Topic category: Help with Minecraft modding (Java Edition)
I am rather stuck on how I could make an item that works like climbing gloves for the player. I want to let the player climb any block. I understand step height or giving levitation when facing a block that is close are options but I was wondering if there is an option that lets the player treat the sides of any or certain blocks as ladders.
Thanks!
I'm not sure if that is a thing. You could try doing something that places invisible climbing blocks that only last for a second or something, but it might be better to use the override motion vector block to move them up if they are walking into a block.
Thanks for the reply. How could I exactly detect they are walking into a block? Unfortunately I do not think there is a way to get the player movement input, so that would not work to check the movement and velocity would not work as the block of course is blocking the movement.
I just made a procedure that worked. Give me one minute to put it here.
This worked surprisingly well. Not sure if this is what you wanted, and there's probably simpler ways to do this, but I put this in a key bind when it is pressed, then you can walk up to any block and spam it to climb.
That looks good. I just realized it may be a fun solution to have it where mining at the block climbs it and the glove will not be able to mine blocks.