Launch Projectil

Discussion in 'Plugin Development' started by Xogos1997, Aug 19, 2014.

Thread Status:
Not open for further replies.
  1. Offline

    Xogos1997

    Hi. can i set damage for launch Projectil ?

    here is my code

    Code:
    player.launchProjectile(Arrow.class);    
    its all :D
    I do not know more

    thx for help
     
  2. Offline

    br456

  3. Offline

    Xogos1997

    br456
    What if I want custom bullets? it is I have to somehow distinguish right?
     
  4. Offline

    br456

    Xogos1997
    Yes, you need to find a way to check the difference between arrows

    Xogos1997
    Possible create a new CustomArrow class that extends Arrow, and then shoot that, and also check if it is an instance of it

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: Jun 9, 2016
  5. Offline

    Xogos1997

    Is there any way to do afterwards class? for it to shot an arrow Arrow = player.shotarrow();
     
  6. Offline

    Gater12

    Xogos1997
    Alternatively, You attach Metadata to the arrow and check for the metadata to see if it's your arrow.
     
  7. Offline

    Xogos1997

    Gater12
    Not a bad idea.

    or I can do this through public ArrayList <String> Damage = new ArrayList <String> (); and help it detect damage not?

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: Jun 9, 2016
Thread Status:
Not open for further replies.

Share This Page