Skip to content

Commit

Permalink
Reconfigure for 1.20.4
Browse files Browse the repository at this point in the history
  • Loading branch information
MooseOnTehLoose committed Jan 26, 2024
0 parents commit 2b96c01
Show file tree
Hide file tree
Showing 20 changed files with 1,408 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"java.project.referencedLibraries": [
"lib/**/*.jar",
"x:\\Code\\Minecraft\\Spigot\\spigot-api-1.20.4-R0.1-SNAPSHOT-shaded.jar"
]
}
61 changes: 61 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
# Features:
[![Watch the video](https://img.youtube.com/vi/JHRbZa4WLmc/default.jpg)](https://youtu.be/JHRbZa4WLmc)

# Usage:
## Arrow Types
* GlassHead - Higher critical chance rate
* APmax - Always hits for 3 damage
* Torch - Places a torch where the arrow lands
* Net - Create a slowing net trap on impact
* Water - Create a water spout, from a distance
* Fire - Not just for entities anymore, these fire arrows pack a bit more punch
* Lightning - Pretty self explanatory
* Mudslinger - Throw sand blocks as far as you can shoot
* Warp - Teleports you as soon as the arrow lands, wherever it lands
* Poison - Gives anybody it hits a healthy dose
* Frag - The classic
* Impact - Reach out and touch someone
* BugBomb - Hug people with spiders
* PlanetCracker - You don't want to be anywhere near these when they go off

## To Fire off a Salvo:
1. Place a bow in your hotbar
2. Place the materials required for the desired type in your hotbar
3. Left click your bow to cycle through the available arrow types
4. Right click to fire

You may only cycle through arrow types that have sufficient ingredients in your hotbar\
You may have multiple arrow type ingredients in your hotbar at the same time

## Commands:
None at this time

## Permissions
No permissions support at this time.

## Configuration
To enable an arrow type, uncomment the line by removing the #

Costs are given in the format ITEM_NAME:AMOUNT

For arrows that have multiple requirements, separate them with a comma

EX: Frag: TNT:1,Dirt:1,water_bucket:1

* GlassHead: glass:1
* APmax: iron_ingot:3,obsidian:1
* Torch: torch:1
* Net: string:9
* Water: water_bucket:1
* Fire: torch:1,coal:1
* Lightning: emerald:1,iron_ingot:1,magma_cream:1
* Mudslinger: sand:1
* Warp: ender_pearl:1
* Poison: spider_eye:3,red_mushroom:3,brown_mushroom:3
* Frag: TNT:1
* Impact: TNT:1
* Bugbomb: spider_eye:1,sugar:10
* PlanetCracker: ghast_tear:1,ender_eye:1,TNT:5,redstone:5

## Installation:
Place Barrage.jar in your plugins folder and reload the server.
23 changes: 23 additions & 0 deletions src/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
#To enable an arrow type, uncomment the line by removing
# the #.
#
#Costs are given in the format ITEM_NAME:AMOUNT
#For arrows that have multiple requirements, separate them
#with a comma.
#
#EX: Frag: TNT:1,Dirt:1,Water Bucket:64

#GlassHead: glass:1
#APmax: iron_ingot:3,obsidian:1
#Torch: torch:1
#Net: string:9
#Water: water_bucket:1
#Fire: torch:1,coal:1
#Lightning: emerald:1,iron_ingot:1,magma_cream:1
#Mudslinger: sand:1
#Warp: ender_pearl:1
#Poison: spider_eye:3,red_mushroom:3,brown_mushroom:3
#Frag: TNT:1
#Impact: TNT:1
#Bugbomb: spider_eye:1,sugar:10
#PlanetCracker: ghast_tear:1,ender_eye:1,TNT:5,redstone:5
24 changes: 24 additions & 0 deletions src/net/moosecraft/Barrage/APmaxArrowEffect.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
package net.moosecraft.Barrage;

import org.bukkit.entity.Arrow;
import org.bukkit.entity.Entity;

// Referenced classes of package moosecraft:
// ArrowEffect

public class APmaxArrowEffect
implements ArrowEffect
{

public APmaxArrowEffect()
{
}

public void onEntityHitEvent(Arrow arrow1, Entity entity)
{
}

public void onGroundHitEvent(Arrow arrow1)
{
}
}
12 changes: 12 additions & 0 deletions src/net/moosecraft/Barrage/ArrowEffect.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
package net.moosecraft.Barrage;

import org.bukkit.entity.Arrow;
import org.bukkit.entity.Entity;

public interface ArrowEffect
{

public abstract void onEntityHitEvent(Arrow arrow, Entity entity);

public abstract void onGroundHitEvent(Arrow arrow);
}
Loading

0 comments on commit 2b96c01

Please sign in to comment.