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

Started by Dirfoxpyt on Mon, 11/23/2020 - 04:08

Topic category: Help with MCreator software

Last seen on 02:37, 22. Jan 2021
Joined Jul 2018
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
How do I make my flying mob change when I step on the ground
Mon, 11/23/2020 - 04:08

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 14:43, 18. Dec 2020
Joined Jun 2020
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • 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 04:26, 7. Jan 2021
Joined Feb 2020
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • 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 14:43, 18. Dec 2020
Joined Jun 2020
User points:

User statistics:

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

I mean not the block = air

Last seen on 19:09, 18. Jan 2021
Joined Jul 2017
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • 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 02:37, 22. Jan 2021
Joined Jul 2018
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • 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 14:43, 18. Dec 2020
Joined Jun 2020
User points:

User statistics:

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

screen2

screen2

Last seen on 02:37, 22. Jan 2021
Joined Jul 2018
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • 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 14:43, 18. Dec 2020
Joined Jun 2020
User points:

User statistics:

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

I accidentally wrote y instead of y + 1