diff --git a/src/main/java/top/penowl/quidproquo/Events.java b/src/main/java/top/penowl/quidproquo/Events.java index 973e321..8eacf0c 100644 --- a/src/main/java/top/penowl/quidproquo/Events.java +++ b/src/main/java/top/penowl/quidproquo/Events.java @@ -91,7 +91,7 @@ public final class Events implements Listener { Collection sacrifices = block.getWorld().getEntitiesByClass(LivingEntity.class); ArrayList near_sacrifices = new ArrayList(); for (Item item : items) { - if (item.getLocation().distance(location) < 2) { + if (item.getLocation().distance(location) < 3.5) { near_items.add(item); } } diff --git a/src/main/java/top/penowl/quidproquo/rituals/RandomItemRitual.java b/src/main/java/top/penowl/quidproquo/rituals/RandomItemRitual.java index 84db681..0205c35 100644 --- a/src/main/java/top/penowl/quidproquo/rituals/RandomItemRitual.java +++ b/src/main/java/top/penowl/quidproquo/rituals/RandomItemRitual.java @@ -1,5 +1,7 @@ package top.penowl.quidproquo.rituals; +import org.apache.commons.lang.WordUtils; +import org.bukkit.ChatColor; import org.bukkit.Location; import org.bukkit.Material; import org.bukkit.entity.Player; @@ -20,13 +22,15 @@ public class RandomItemRitual extends Ritual { addIngredient(Material.WHEAT, 16); health = 2; name = "itemization"; + notify = false; } @Override public void execute(Player caster, Player target, Location location) { Material[] materials = Material.values(); Material item = materials[(int)(materials.length*Math.random())]; - location.getWorld().dropItemNaturally(location.clone().add(0, 1, 0), new ItemStack(item, 1)); + location.getWorld().dropItemNaturally(location.clone().add(0, 1, 0), new ItemStack(item, 8)); + caster.sendMessage(ChatColor.YELLOW + "You summoned " + WordUtils.capitalizeFully(item.toString().replace("_", " ")) + "!"); } }