Need Help with my climbing boots procedure

Started by Infern_X on Mon, 09/13/2021 - 09:51

Topic category: Help with modding (Java Edition)

Last seen on 23:58, 10. Nov 2021
Joined Aug 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
Need Help with my climbing boots procedure
Mon, 09/13/2021 - 09:51

So my idea for these Boots is to be able to climb up walls higher than 1 block when i have the shoes on ( i made a variable for the on/off mechanism and it works perfectly fine ), but the problem is that the actual climbing mechanism is kinda bugged and only works sometimes, sometimes i can´t climb a whole wall and sometimes i can´t climb the edge of a wall, any idea why this could be happening, or am I just dumb and missing something obvious? heres a video of the ingame example and a picture of my procedure:Climbing Demo

 

Climbing Procedure

Last seen on 20:49, 28. Sep 2022
Joined Aug 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
I don't know If this will…
Fri, 09/23/2022 - 17:33

I don't know If this will work but instead of using get item from armor slot 0 of event target/entity = __, try on boots tick event. boots tick event also make the procedure just a bit small meaning a bit more manageable.

Last seen on 19:24, 27. Sep 2022
Joined Sep 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
Video Shows that you don't…
Sun, 09/25/2022 - 11:04

Video Shows that you don't reach the top and one block short, try using feet position, not head

Last seen on 13:34, 25. Sep 2022
Joined Mar 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
If you are planning to check…
Sun, 09/25/2022 - 13:34

If you are planning to check if someone should be able to climb like this then add in 2 || (Or) statements to check for blocks you are facing and one block down, Try checking with smaller numbers instead of full blocks so that it is not bugged to not support pillars. if any of the statements is true then override the motion vector. Also your player is actually positioned based on where the bottom of your feet are so check 0.15 blocks ahead then check up on the Y and bellow on the Y, Also should the player rotate on the wall because if so then check in all directions using a for horizontal directions clause or if they are not intended to then keep the player from being able to see behind by making sure that to climb you must be able to turn 75 degrees to face the front top block

PS. By default most checks except for directly eye related checks, specifically head axes and Raycasting