How to make a mob teleport over me?

Started by a guy called l… on

Topic category: Help with Minecraft modding (Java Edition)

Active 3 months ago
Joined Jan 2021
Points:
820

User statistics:

  • Modifications: 1
  • Forum topics: 41
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 85
How to make a mob teleport over me?
Sun, 10/24/2021 - 22:26 (edited)

I try to made on "entity tick uptade" that if theres a player in X Y Z range, teleport to X of entity iterator, Y + 4 of entity iterator and Z of entity iterator. The problem? entity tick uptade dont work whit entity iterator, so i dont have form to detect were is the player to made the mob go over it

 

Also a extra question, how i use the "Get nearest entity at x: X y: Y z: Z in square cube size 4 of type "insert type"

Edited by a guy called lonchor12 on Sun, 10/24/2021 - 22:26
Active 2 months ago
Joined Mar 2021
Points:
989

User statistics:

  • Modifications: 3
  • Forum topics: 37
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 451
On entity tick update: for…
Mon, 10/25/2021 - 05:46

On entity tick update: for each iterator if iterator = player then set entity location to x ,y and z of iterator

 

Active 3 months ago
Joined Jan 2021
Points:
820

User statistics:

  • Modifications: 1
  • Forum topics: 41
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 85
Man, I CAN'T use Entity…
Mon, 10/25/2021 - 16:43

Man, I CAN'T use Entity iterator, if i put one Entity iterator block, the procedure can't be used "on Entity tick update" because is a "miss dependecy"

Active 2 months ago
Joined Mar 2021
Points:
989

User statistics:

  • Modifications: 3
  • Forum topics: 37
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 451
Not really, use entity…
Mon, 10/25/2021 - 18:27

Not really, use entity iterator on Entity tick update on your entity not on player

Active 3 months ago
Joined Jan 2021
Points:
820

User statistics:

  • Modifications: 1
  • Forum topics: 41
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 85
I use it on entiy, I cant, I…
Mon, 10/25/2021 - 19:12

I use it on entiy, I cant, I cant add the procedure in "entity tick update". Mcreator dont let me do it, the procedure apparear whit "missing dependency's"

 

 

Active 2 months ago
Joined Mar 2021
Points:
989

User statistics:

  • Modifications: 3
  • Forum topics: 37
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 451
Seriously please, this…
Tue, 10/26/2021 - 05:56

Seriously please, this perfectly works just do as I told you

Active 3 months ago
Joined Jan 2021
Points:
820

User statistics:

  • Modifications: 1
  • Forum topics: 41
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 85
What version of mcreator you…
Tue, 10/26/2021 - 21:11

What version of mcreator you use? I dont remember see the block For each entity as...

I'm using 2021.2 

If I am just an idiot and never see the block, I am sorry

Tomorrow i will search it, if i dont find it I have absolute no idea what to do

Active 2 months ago
Joined Mar 2021
Points:
989

User statistics:

  • Modifications: 3
  • Forum topics: 37
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 451
You have it don't worry  
Wed, 10/27/2021 - 05:12

You have it don't worry

 

Active 3 months ago
Joined Jan 2021
Points:
820

User statistics:

  • Modifications: 1
  • Forum topics: 41
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 85
Well... The block is there,…
Wed, 10/27/2021 - 21:41

Well...

The block is there, and is usable

thanks and sorry xd