plugin for rotate a lightsaber

Discussion in 'Plugin Development' started by Alex59223, Sep 11, 2016.

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

    Alex59223

    Hi there I'm new in the world of bukkit coding and am looking for the code when I drop a sword and revien she turns to me like a boomerang and afflicting damage to players visually and all his armor with a armorstand.
    like galaxy wars on hypixel.
    p.s: sorry for my bad english I'm french .
     
  2. Offline

    Zombie_Striker

    @Alex59223
    First, no one here will give you the code. We will tell you what you need to do and show you the methods you need to use, but we will not write your plugin for you.

    PlayerDropItemEvent is called when a player drops an item. To make the dropped item act like a "boomerang", create a RepeatingTask and make the item move like a boomerang. Inside that runnable, check if there is another entity within 1 meter of the boomerang. If so, damage the entity.
     
  3. Offline

    Alex59223

    Thanks You
     
Thread Status:
Not open for further replies.

Share This Page