Jump to content
Search In
  • More options...
Find results that contain...
Find results in...

Goal Priority not as intended

Recommended Posts

Hey i deleted and readded the HurtByTargetGoal to give it a lower priority and have it later in the List

creeperEntity.targetSelector.addGoal(1, new DanceGoal(creeperEntity));

creeperEntity.targetSelector.addGoal(2, new HurtByTargetGoal(creeperEntity));

but HurtByTargetGoal gets still prioritized over my DanceGoal


Entire EventHandler Method:


Link to post
Share on other sites

Ok solved it. Had to add the execute function call to the tick method (maybe inefficient?)

    public void tick() {
        if(shouldExecute()) {


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...

Important Information

By using this site, you agree to our Privacy Policy.