Making mod entity teleport to random location after being hit.

Started by RandyModmo on

Topic category: Help with MCreator software

Joined Feb 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Making mod entity teleport to random location after being hit.
Thu, 11/05/2020 - 12:25 (edited)

Hi,

Is there any way to make a mob teleport when it is hit? I already tried this,

Triggers > When Entity is hurt

2 blocks that are probably supposed to work but don't.

 

If the image wont show, here is it in text.

Event trigger- triggered by external call or when (global trigger) [Choosebox]

Set location of Event/target entity to x: X+Random [0,1] y: Y+Random [0,1] z: Z+Random [0,1]

Edited by RandyModmo on Thu, 11/05/2020 - 12:25
Joined Nov 2018
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Random(0,1) is a number…
Thu, 11/05/2020 - 18:44

Random(0,1) is a number between 0 and 1 excluding 1. Make a variable that is equal to Random x 10.

Add the variable to x + var, y + var, z + var.

Joined Dec 2017
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
how do you make it not spawn…
Thu, 11/26/2020 - 22:05

how do you make it not spawn in a block? I've tried If is not air at x y z, spawn at y+1.. some times it works others it doesn't..

Joined Apr 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
how can we make us teleport…
Fri, 04/08/2022 - 18:02

how can we make us teleport to the place where a projectile lands like an arrow?

Joined Apr 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
so i can make a thing or two
Fri, 04/08/2022 - 18:02

so i can make a thing or two