From 86fa02f55d5db9cf2dbf1816c4bc93b2d5eab5fe Mon Sep 17 00:00:00 2001 From: B1G-FUNGUS Date: Fri, 1 Oct 2021 17:27:37 -0700 Subject: [PATCH] Adds a hit ritual --- .../penowl/quidproquo/rituals/HitRitual.java | 24 +++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 src/main/java/top/penowl/quidproquo/rituals/HitRitual.java diff --git a/src/main/java/top/penowl/quidproquo/rituals/HitRitual.java b/src/main/java/top/penowl/quidproquo/rituals/HitRitual.java new file mode 100644 index 0000000..d8c5810 --- /dev/null +++ b/src/main/java/top/penowl/quidproquo/rituals/HitRitual.java @@ -0,0 +1,24 @@ +package top.penowl.quidproquo.rituals; + +import org.bukkit.Location; +import org.bukkit.Material; +import org.bukkit.Sound; +import org.bukkit.entity.Player; + +import top.penowl.quidproquo.Ritual; + +public class HitRitual extends Ritual { + @Override + public void setup() { + addIngredient(Material.IRON_SWORD, 1); + addIngredient(Material.HAY_BLOCK, 1); + name = "shadow hit"; + health = 2; + } + + @Override + public void execute(Player caster, Player target, Location location) { + target.playSound(target.getLocation(), Sound.SUCCESSFUL_HIT, 1, 1); + } + +}