Started by
jeux2119
on
Topic category: Advanced modding
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?
Topic category: Advanced modding
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?
It would be helpful if you could send us a screenshot.
What do you mean by "set a distance of where to head entities"?
ok i will and i was trying to say if a tameable mob is in a 10 block radious it will apply instant health
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
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.
thx and sorry it took me so long