Need help to make "railgun" on my plugin

Discussion in 'Archived: Plugin Requests' started by Synoctron, Nov 1, 2014.

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

    Synoctron

    Hey, so I need gun to my minigame, that if you click *item* it would shoot maybe redstone particles and if player gets hit by those particles, that would maybe do little damage and stuff. I could not find any tutorials or plugins that would make this happend, so if anyone knows how to make this, that would be awesome <3
     
  2. Offline

    XgXXSnipz

    Synoctron actually, I have code that shoots stuff going straight, but it may not work the way you want it to
     
  3. Offline

    woaosodo

    This is not tested, but I believe it'd be something like this:
    Code:
                    for(Block b : p.getLineOfSight(null, 20)){
                        b.getWorld().playEffect(b.getLocation(), Effect.STEP_SOUND, Material.REDSTONE_BLOCK);
                    }
     
  4. Offline

    timtower Administrator Administrator Moderator

    woaosodo Used method is deprecated, BlockIterator is the new way.
     
  5. Offline

    Synoctron

    timtower woaosodo How i need it to work: Right click stick = shoot straight line of *particle here* = if particle line hits player, the line doesnt continue and then maybe broadcasts message or something
     
  6. Offline

    woaosodo

    I'm getting the sense even you don't 100% know what you want.. Think it over, then come to forums.
     
Thread Status:
Not open for further replies.

Share This Page