Sentry Guns: Dispensers that target.

Discussion in 'Plugin Requests' started by Sparmerlin, Mar 20, 2015.

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

    Sparmerlin

    Hey everyone,
    I'm going to get straight to the point.

    Say a dispenser were placed on top of two stone blocks (or whatever block you choose). Like so:
    [Dispenser]
    [Stone]
    [Stone]

    Then, If the dispenser contained arrows, it would shoot at players within a configurable distance once every few seconds (so as to not make it overpowered).

    The plugin would have to:
    1. Detect whether the two blocks underneath it where of a specific type.
    2. Detect if a player is within range.
    3. Check if there are any arrows in the dispenser.
    4. Fire an arrow towards the players coordinates.
    5. Run a timer of a few seconds.
    6. Detect if a player is within range.
    7. Check if there are any arrows in the dispenser.
    8. Fire an arrow towards the players coordinates

    And so on.

    The plugin could be expanded to support factions, and not target those within the creators faction. Or it could just not attack the creator. If any of the blocks are destroyed it cancels the event. If anyone is up to make this I would much appreciate it. Feel free to make the blocks whatever you wish (or even better configurable).

    Thanks, Luke.
     
Thread Status:
Not open for further replies.

Share This Page