entity iterior is not working!!

Started by jeux2119 on

Topic category: Advanced modding

Joined Jan 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
entity iterior is not working!!

it is supposed to set a distance of where to heal entitys but it is healing every wolf type entity in the world how do i fix this?

Joined Nov 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
It would be helpful if you…
Tue, 06/27/2023 - 23:58

It would be helpful if you could send us a screenshot.

What do you mean by "set a distance of where to head entities"?

Joined Jan 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
ok i will and i was trying…
Wed, 06/28/2023 - 00:00

ok i will and i was trying to say if a tameable mob is in a 10 block radious it will apply instant health

 

Joined Jan 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
idk how to send a screenshot…
Wed, 06/28/2023 - 00:04

idk how to send a screenshot so
it is set on entity tick update
the an if event/target subtype of tameable entity
do for each entity as entity inierieor is set it to ten 
and finnaly add potion inside of the entity intieror

Joined Nov 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
It looks like what you need…
Wed, 06/28/2023 - 02:18

It looks like what you need is a way to determine if the entity is close to a player. (What does the tamable entity have to be close to?)

I would suggest changing your global trigger to "on player tick update". Then, get a "For each entity in square cube with size" and put that around your whole program.

Now, the "entity iterator" block will contain the entity that is near the player, and the "Add potion" block will only activate for entities that are near a player.

You can remove the entity iterator block you already have.

Joined Jan 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
thx and sorry it took me so…
Wed, 08/02/2023 - 23:05

thx and sorry it took me so long