1. The forums will be archived and moved to a read only mode in about 2 weeks (mid march).

Change bow damage

Discussion in 'Development' started by Remarkabless, Dec 9, 2017.

  1. Remarkabless

    Remarkabless Slime

    Messages:
    83
    GitHub:
    Remakem
    How can I change the damage of a bow when it hits a target?
     
  2. Kyd

    Kyd Zombie Pigman

    Messages:
    678
    GitHub:
    boi1216
    In EntityDamageEvent with setDamage function
     
  3. xXNiceAssassinlo YT

    xXNiceAssassinlo YT Zombie Pigman

    Messages:
    499
    GitHub:
    xXNiceYT
    Right
     
  4. Karanpatel567

    Karanpatel567 Baby Zombie

    Messages:
    115
    GitHub:
    Karanpatel567
    Note: setDamage() is not a function its a variable, Also you forgot the brackets after setDamage. :p
     
    OnTheVerge likes this.
  5. Kyd

    Kyd Zombie Pigman

    Messages:
    678
    GitHub:
    boi1216
    No no no. setDamage() is function , not variable and I don't have brackets , because I said it's a function, so everyone who know PHP a bit, know that there are brackets :p
     
  6. Kyd

    Kyd Zombie Pigman

    Messages:
    678
    GitHub:
    boi1216
  7. kazuya

    kazuya Slime

    Messages:
    79
    GitHub:
    xdqrknez
    variable? so $setDamage()???[​IMG]
     
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.