Making mod entity teleport to random location after being hit.

Started by RandyModmo on Thu, 11/05/2020 - 12:23

Topic category: Help with MCreator software

Last seen on 14:34, 5. Nov 2020
Joined Feb 2019
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • 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
Last seen on 14:34, 5. Nov 2020
Joined Feb 2019
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
(No subject)
Thu, 11/05/2020 - 12:26

Last seen on 20:21, 22. Jan 2021
Joined Nov 2018
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • 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.

Last seen on 02:56, 17. Jan 2021
Joined Dec 2017
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • 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..