Added particle-amount option to enchanting table

This commit is contained in:
Auxilor 2021-08-01 19:18:27 +01:00
parent 362166d3b2
commit b900a14274
3 changed files with 2 additions and 4 deletions

View File

@ -6,7 +6,6 @@ import net.minecraft.nbt.NBTTagCompound;
import net.minecraft.nbt.NBTTagList;
import net.minecraft.world.item.ItemEnchantedBook;
import org.bukkit.Material;
import org.bukkit.NamespacedKey;
import org.bukkit.craftbukkit.v1_17_R1.inventory.CraftItemStack;
import org.bukkit.craftbukkit.v1_17_R1.util.CraftNamespacedKey;
import org.bukkit.enchantments.Enchantment;
@ -14,9 +13,7 @@ import org.bukkit.inventory.ItemStack;
import org.jetbrains.annotations.NotNull;
import java.util.HashMap;
import java.util.HashSet;
import java.util.Map;
import java.util.Set;
public final class FastGetEnchants implements FastGetEnchantsProxy {
@Override

View File

@ -224,7 +224,7 @@ public class EnchantingListeners extends PluginDependent<EcoPlugin> implements L
location.add(0, 1, 0);
int limit = NumberUtils.randInt(8, 13);
int limit = this.getPlugin().getConfigYml().getInt("enchanting-table.notify-on-special.particle-amount");
for (int i = 0; i < limit; i++) {
Location spawnLoc = location.clone();

View File

@ -73,6 +73,7 @@ enchanting-table:
sound: ENTITY_PLAYER_LEVELUP
pitch: 1.5
show-particles: true
particle-amount: 26
cap-amount: # Prevent getting above a certain amount of enchantments
enabled: true # Enable capping