How can I make an entity pitch when going up blocks?

Started by Rukreep on

Topic category: Help with modding (Java Edition)

Last seen on 15:22, 31. May 2022
Joined Nov 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
How can I make an entity pitch when going up blocks?

Hey all,

I'm currently working on a mod consisting of various vehicles and I'm wondering if it's possible to make the rideable entity pitch 30º if starts to go up blocks.

Is this possible?

 

Thanks,

Rukreep.

 

 

 

 

Last seen on 11:52, 23. Apr 2024
Joined Apr 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
(No subject)
Mon, 05/16/2022 - 19:20

help

Last seen on 15:22, 31. May 2022
Joined Nov 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Okay, I've tried this…
Fri, 05/20/2022 - 16:34

Okay, I've tried this. However, it doesn't seem to be working.

Can someone tell me what I've done wrong?

if Is [Event/target entity] looking at a block with raytrace distance [5] fluid mode [NONE] block mode [OUTLINE] do Set rotation of [Event/target entity] yaw: [Direction(yaw) in deg. relative to S of [Event/target entity]] pitch [45] else Set rotation of [Event/target entity] yaw: [Direction(yaw) in deg. relative to S of [Event/target entity]] pitch [0]

Thanks.