Auto-Jump boots.

Started by _Vitjok_ on

Topic category: Help with modding (Java Edition)

Last seen on 14:30, 26. Aug 2018
Joined Jun 2015
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Auto-Jump boots.

Hey there!

Right now making in my mod boots, that will make you able to auto-jump.

I found this little script here:

{

entity.stepHeight = 1.0F;

 }

 

Yeah, this works, but it's not setting back to 0.5F after undressing the boots and I can't figure how to make player set back step height to 0.5F again.

I already tried using "Every minecraft tick" make step height to 0.5F, but player everytime has 0.5F, even when with boots.

 

So, how to make player reset their step height back to 0.5F after undressing the boots?

Last seen on 15:27, 11. Mar 2022
Joined Dec 2014
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I don't think you can…
Sun, 03/18/2018 - 21:03

I don't think you can because there's no button that says "when X taken off".

Last seen on 00:22, 12. Mar 2024
Joined Nov 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Just do a procedure that has…
Fri, 09/29/2023 - 01:13

Just do a procedure that has the global trigger : On player tick update; then do an if statement that says: if player is wearing boots, Set step height to (Whatever step height you want), then go to the little settings cogwheel in the top left corner of the if statement block, then add an else block in there. Under the New Else statement, put the stepheight to the lower number that you want all the players without boots to have.

If you have an trouble with this, or don't understand what I'm saying (I say things super complicated sometimes) just ask, also I might be able to post a picture if you want. Also tell me if this doesn't work.

Last seen on 22:41, 16. Oct 2023
Joined Mar 2018
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I don't know to put in that…
Fri, 09/29/2023 - 23:55

Image

I don't know to put in that step hieght code but here is how you control if player is wearing boots or not. id of slot of boots is = 0. leggings = 1, chestplate =2, and helmet =3, kinda simple. 

So fist if, put your new step height code their somehow

2nd put in the code but put change back to normal. etc. 

Last seen on 22:41, 16. Oct 2023
Joined Mar 2018
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
instead of using code you…
Sat, 09/30/2023 - 00:02

instead of using code you could try this

Image

anytime player collides with a block from 2 or lower distance, it'll attempt to auto-move player on the y axis by 1, then reset it back to 0. if you aim for armor