How to make an item that lets the player climb any full block

Started by BlueAwesomeDinosaur on

Topic category: Help with modding (Java Edition)

Last seen on 21:04, 13. Sep 2024
Joined Aug 2017
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
How to make an item that lets the player climb any full block

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!

Last seen on 19:51, 2. Oct 2024
Joined Oct 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I'm not sure if that is a…
Mon, 07/08/2024 - 12:05

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.

Last seen on 21:04, 13. Sep 2024
Joined Aug 2017
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Thanks for the reply. How…
Mon, 07/08/2024 - 12:09

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.

Last seen on 19:51, 2. Oct 2024
Joined Oct 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I just made a procedure that…
Mon, 07/08/2024 - 14:10

I just made a procedure that worked. Give me one minute to put it here.

Last seen on 19:51, 2. Oct 2024
Joined Oct 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
This worked surprisingly…
Mon, 07/08/2024 - 14:23

t

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.

Last seen on 21:04, 13. Sep 2024
Joined Aug 2017
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
That looks good. I just…
Mon, 07/08/2024 - 17:47

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.