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

Solved Nether Star as weapon

Discussion in 'Development' started by Error202, Apr 11, 2019.

  1. Error202

    Error202 Spider Jockey

    Messages:
    39
    Can I use a star as a weapon. Drop it out horizontally. If you hit the player, he dies.

    Sorry for English (Google Translate)
     
  2. KielKing

    KielKing Zombie

    Messages:
    245
    GitHub:
    kielking
    what do you mean by drop it out horizontally?
     
  3. Error202

    Error202 Spider Jockey

    Messages:
    39
    Throw a star like a ninja :)
     
  4. hikingjungle

    hikingjungle Baby Zombie

    Messages:
    123
    GitHub:
    hikingjungle
    the first thing i would do is look at the code for a snowball or arrow and go from there
     
    Muqsit likes this.
  5. Muqsit

    Muqsit Chicken

    Messages:
    1,548
    GitHub:
    muqsit
    Yes, create a class extending Projectile and refer to the ItemEntity class's sendSpawnPacket and copy it over to your new projectile class. You'll need to modify that function to make it show up as a nether star item entity.
    Set the gravity of the nether star projectile to 0.0.
     
    Last edited: Apr 12, 2019
    Error202 likes this.
  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.