How do I make my flying mob change when I step on the ground

Started by Dirfoxpyt on

Topic category: Help with MCreator software

Last seen on 00:53, 21. Dec 2023
Joined Jul 2018
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
How do I make my flying mob change when I step on the ground

Hello, I want to make my flying mob when it is on the ground change to another mob but when it jumps it changes to previous mob

Last seen on 22:01, 18. Aug 2022
Joined Jun 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Create a new mob, and in…
Mon, 11/23/2020 - 19:20

Create a new mob, and in tick update use:

  • If block at [x] [y - 1] [z] = air:
    • Despawn [event / target entity]
    • Summon [the previous mob] at [x] [y] [z]

In your previous mob, use:

  • If not [block at [x] [y - 1] [z] = air]:
    • Despawn [event / target entity]
    • Summon [new mob] at [x] [y] [z]

 

Hopefully this helps!

Last seen on 16:26, 22. Feb 2022
Joined Feb 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I don't think it will let…
Mon, 11/23/2020 - 23:02

I don't think it will let you do if not block at x y z, I don't know I haven't tried, but I don't think the two are compatible, a workaround, if I'm right, and you can't use the two together, would be this:

If [block at [x] [y-1] [z] = air then

         (Put a piece of code here that would do absolutely nothing)

else

        Summon [new mob] at [x] [y] [z]

        Despawn [event / target entity]

Last seen on 22:01, 18. Aug 2022
Joined Jun 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I mean not the block = air
Mon, 11/23/2020 - 23:04

I mean not the block = air

Last seen on 20:38, 30. Dec 2022
Joined Jul 2017
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
keep in mind that the mob…
Tue, 11/24/2020 - 01:13

keep in mind that the mob will also change when going up and down blocks

 

Last seen on 00:53, 21. Dec 2023
Joined Jul 2018
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
You can send me an image as…
Tue, 11/24/2020 - 02:13

You can send me an image as a reference for the procedure as I can't find different block.

Last seen on 22:01, 18. Aug 2022
Joined Jun 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
(No subject)
Tue, 11/24/2020 - 12:18

screen2

screen2

Last seen on 00:53, 21. Dec 2023
Joined Jul 2018
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
friend there is a problem,…
Wed, 11/25/2020 - 19:01

friend there is a problem, notice that the mob changes when it runs into another block that is not air and does not detect what it steps on

Last seen on 22:01, 18. Aug 2022
Joined Jun 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I accidentally wrote y…
Wed, 11/25/2020 - 19:10

I accidentally wrote y instead of y + 1