mirror of
https://github.com/Auxilor/EcoEnchants.git
synced 2024-11-22 15:05:18 +01:00
Added particle-amount option to enchanting table
This commit is contained in:
parent
362166d3b2
commit
b900a14274
@ -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
|
||||
|
@ -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();
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user