Detect block type and move a mob

Started by CaptainShark on

Topic category: Help with modding (Java Edition)

Last seen on 06:13, 28. Aug 2023
Joined Jun 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Detect block type and move a mob

To fix a mob I have sitting on top of the water and losing it's AI I figured testing for air blocks above it and teleporting it down a few blocks ( back into the water ) would work? Just not sure how to go about doing that