diff --git a/src/main/java/top/penowl/quidproquo/QuidProQuo.java b/src/main/java/top/penowl/quidproquo/QuidProQuo.java index 9405787..4d0b8ad 100644 --- a/src/main/java/top/penowl/quidproquo/QuidProQuo.java +++ b/src/main/java/top/penowl/quidproquo/QuidProQuo.java @@ -41,6 +41,10 @@ public class QuidProQuo extends JavaPlugin { rituals.add(new LavaRitual()); rituals.add(new HitRitual()); rituals.add(new HerobrineRitual()); + rituals.add(new ChickenSpewRitual()); + rituals.add(new ChugJugRitual()); + rituals.add(new CreeperHissRitual()); + rituals.add(new RotateRitual()); // run ritual setup scripts for (Ritual ritual : rituals) { diff --git a/src/main/java/top/penowl/quidproquo/rituals/ChickenSpewRitual.java b/src/main/java/top/penowl/quidproquo/rituals/ChickenSpewRitual.java new file mode 100644 index 0000000..7625c76 --- /dev/null +++ b/src/main/java/top/penowl/quidproquo/rituals/ChickenSpewRitual.java @@ -0,0 +1,28 @@ +package top.penowl.quidproquo.rituals; + +import org.bukkit.Location; +import org.bukkit.Material; +import org.bukkit.entity.EntityType; +import org.bukkit.entity.Player; + +import top.penowl.quidproquo.Ritual; + +public class ChickenSpewRitual extends Ritual { + + @Override + public void setup() { + addIngredient(Material.WHEAT, 64); + addIngredient(Material.DIAMOND_HOE, 1); + health = 3; + name = "chicken spew"; + backfire = 0.1; + } + + @Override + public void execute(Player caster, Player target, Location location) { + for (int i = 0; i < 20; i++) { + target.getLocation().getWorld().spawnEntity(target.getLocation(), EntityType.CHICKEN); + } + } + +} diff --git a/src/main/java/top/penowl/quidproquo/rituals/ChugJugRitual.java b/src/main/java/top/penowl/quidproquo/rituals/ChugJugRitual.java new file mode 100644 index 0000000..65c6385 --- /dev/null +++ b/src/main/java/top/penowl/quidproquo/rituals/ChugJugRitual.java @@ -0,0 +1,36 @@ +package top.penowl.quidproquo.rituals; + +import org.bukkit.Location; +import org.bukkit.Material; +import org.bukkit.entity.EntityType; +import org.bukkit.entity.LivingEntity; +import org.bukkit.entity.Player; +import org.bukkit.potion.PotionEffect; +import org.bukkit.potion.PotionEffectType; + +import top.penowl.quidproquo.Ritual; + +public class ChugJugRitual extends Ritual { + + @Override + public void setup() { + addIngredient(Material.BLAZE_ROD, 1); + addIngredient(Material.GLASS_BOTTLE, 1); + addIngredient(Material.REDSTONE, 1); + addIngredient(Material.GLOWSTONE, 1); + addIngredient(Material.WHEAT, 64*8); + addSacrifice(EntityType.WITCH, 1); + health = 10; + name = "chug jug"; + } + + @Override + public void execute(Player caster, Player target, Location location) { + LivingEntity witch = (LivingEntity) target.getWorld().spawnEntity(target.getLocation(), EntityType.WITCH); + witch.setMaxHealth(100); + witch.setHealth(100); + witch.setCustomName("fortnite gaming"); + witch.addPotionEffect(new PotionEffect(PotionEffectType.SPEED, 10000, 4)); + } + +} diff --git a/src/main/java/top/penowl/quidproquo/rituals/CreeperHissRitual.java b/src/main/java/top/penowl/quidproquo/rituals/CreeperHissRitual.java new file mode 100644 index 0000000..56cd0a7 --- /dev/null +++ b/src/main/java/top/penowl/quidproquo/rituals/CreeperHissRitual.java @@ -0,0 +1,25 @@ +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 CreeperHissRitual extends Ritual { + + @Override + public void setup() { + addIngredient(Material.SULPHUR, 1); + addIngredient(Material.REDSTONE, 1); + addIngredient(Material.WHEAT, 16); + health = 1; + } + + @Override + public void execute(Player caster, Player target, Location location) { + target.playSound(target.getLocation(), Sound.CREEPER_HISS, 1, 1); + } + +} diff --git a/src/main/java/top/penowl/quidproquo/rituals/RotateRitual.java b/src/main/java/top/penowl/quidproquo/rituals/RotateRitual.java new file mode 100644 index 0000000..7a8b44d --- /dev/null +++ b/src/main/java/top/penowl/quidproquo/rituals/RotateRitual.java @@ -0,0 +1,28 @@ +package top.penowl.quidproquo.rituals; + +import org.bukkit.Location; +import org.bukkit.Material; +import org.bukkit.entity.Player; + +import top.penowl.quidproquo.Ritual; + +public class RotateRitual extends Ritual { + + @Override + public void setup() { + addIngredient(Material.COMPASS, 1); + addIngredient(Material.STICK, 1); + addIngredient(Material.IRON_BOOTS, 1); + addIngredient(Material.WHEAT, 128); + health = 4; + backfire = 0.05; + name = "rotation"; + } + + @Override + public void execute(Player caster, Player target, Location location) { + Location targetLocation = target.getLocation(); + targetLocation.setDirection(targetLocation.getDirection().multiply(-1)); + } + +}