Jump to content

add pathfinder goal to nearest player


TrueCubeDS

Recommended Posts

So I am trying to make a skript for a very angry dog but when I add a pathfinder goal to event-entity i get this error:image.png.681a31dccc6edc2481ebaf68bce875ee.png

 

My code is

 

on spawn of wolf:
  chance of 2%:
    set name of event-entity to "Sam"
    set event-entity's held item to bone of sharpness 15 named "&cSam's Bone"
    add pathfinder goal target nearest player to event-entity

 

Link to comment
Share on other sites

Make sure you have all addons needed for the pathfinder goal expression.

Main MC account: Gam3rBoi (VIP in MH)

Alt MC account: *Gam3rBoi2147

Farcade server owner

Skripter with 6+ months experience + time learning coding concepts

Message me through the forums if you need anything!

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...