Setting spider to attack in daytime

Discussion in 'Plugin Development' started by HeyAwesomePeople, Mar 11, 2015.

Thread Status:
Not open for further replies.
  1. I am fairly new to NMS and how to read it... So be easy on the NMS lingo :)

    So for this plugin I am making, I want spiders to be able to attack during daylight. Now, I was told you are to use goldSelector or targetSelector to do this. Am I good so far?

    Anyways, I took a look at spigot server code and found the EntitySpider class. But what do I override? Everything is just all-so-helpful random letters and numbers, how do I know what each does?
    My best guess at this point is that I should be doing this, in my constructor:

    Code:
    this.targetSelector.a(1, new PathfinderGoalHurtByTarget(this, true, new Class[0])); // the 'true' used to be false
    I am testing this now, but, am I even close to doing this right?

    Thanks,
    HeyAwesomePeople
     
  2. Offline

    teej107

Thread Status:
Not open for further replies.

Share This Page