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

Started by Rukreep on

Topic category: Help with Minecraft modding (Java Edition)

Active 3 years ago
Joined Nov 2019
Points:
711

User statistics:

  • Modifications: 0
  • Forum topics: 12
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 16
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.

 

 

 

 

Active 1 month ago
Joined Apr 2020
Points:
787

User statistics:

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

help

Active 3 years ago
Joined Nov 2019
Points:
711

User statistics:

  • Modifications: 0
  • Forum topics: 12
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 16
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.