Started by
ConvertSystems
on
Topic category: Advanced modding
I am making a mob so that when it is in passive mode it carries an item in its secondary hand and when it is in attack mode it carries an item in its main hand but I don't know how to do it, help me.
I usually detect if the entity is targeting another entity for attack to determine if it is hostile or passive. If it's not targeting an entity for attack, it would be passive.
I can't remember if this procedure block is part of a plugin though.
How could I do so that the verification is repeated, for example if it is hit, it checks if it is attacking and after a while it is repeated to update the state and see if it is not attacking.