diff --git a/eco-core/core-plugin/src/main/java/com/willfp/ecoenchants/enchantments/EcoEnchants.java b/eco-core/core-plugin/src/main/java/com/willfp/ecoenchants/enchantments/EcoEnchants.java index 488fdff1..d7ce5551 100644 --- a/eco-core/core-plugin/src/main/java/com/willfp/ecoenchants/enchantments/EcoEnchants.java +++ b/eco-core/core-plugin/src/main/java/com/willfp/ecoenchants/enchantments/EcoEnchants.java @@ -6,6 +6,7 @@ import com.google.common.collect.HashBiMap; import com.google.common.collect.ImmutableList; import com.willfp.eco.util.config.updating.annotations.ConfigUpdater; import com.willfp.ecoenchants.enchantments.ecoenchants.artifact.AshArtifact; +import com.willfp.ecoenchants.enchantments.ecoenchants.artifact.BarrierArtifact; import com.willfp.ecoenchants.enchantments.ecoenchants.artifact.CloudsArtifact; import com.willfp.ecoenchants.enchantments.ecoenchants.artifact.CrimsonArtifact; import com.willfp.ecoenchants.enchantments.ecoenchants.artifact.DamageArtifact; @@ -476,6 +477,7 @@ public class EcoEnchants { public static final EcoEnchant LUCKY_CATCH = new LuckyCatch(); public static final EcoEnchant AVERSION = new Aversion(); public static final EcoEnchant INTROVERSION = new Introversion(); + public static final EcoEnchant BARRIER_ARTIFACT = new BarrierArtifact(); /** * Get all registered {@link EcoEnchant}s. diff --git a/eco-core/core-plugin/src/main/java/com/willfp/ecoenchants/enchantments/ecoenchants/artifact/BarrierArtifact.java b/eco-core/core-plugin/src/main/java/com/willfp/ecoenchants/enchantments/ecoenchants/artifact/BarrierArtifact.java new file mode 100644 index 00000000..5b15416e --- /dev/null +++ b/eco-core/core-plugin/src/main/java/com/willfp/ecoenchants/enchantments/ecoenchants/artifact/BarrierArtifact.java @@ -0,0 +1,18 @@ +package com.willfp.ecoenchants.enchantments.ecoenchants.artifact; + +import com.willfp.ecoenchants.enchantments.itemtypes.Artifact; +import org.bukkit.Particle; +import org.jetbrains.annotations.NotNull; + +public class BarrierArtifact extends Artifact { + public BarrierArtifact() { + super( + "barrier_artifact" + ); + } + + @Override + public @NotNull Particle getParticle() { + return Particle.BARRIER; + } +} diff --git a/eco-core/core-plugin/src/main/resources/enchants/artifact/barrierartifact.yml b/eco-core/core-plugin/src/main/resources/enchants/artifact/barrierartifact.yml new file mode 100644 index 00000000..8e15ec22 --- /dev/null +++ b/eco-core/core-plugin/src/main/resources/enchants/artifact/barrierartifact.yml @@ -0,0 +1,47 @@ +# +# Barrier Artifact EcoEnchant +# + +name: "Barrier Artifact" +description: Creates barrier particles. +enabled: true + +obtaining: + table: true + villager: true + loot: true + rarity: epic + +general-config: + targets: + - pickaxe + - sword + - axe + - elytra + - bow + - crossbow + - trident + grindstoneable: true + disabled-in-worlds: [] + conflicts: [] + +config: + # For Attack + radius: 1 + y-delta: 0.07 + radius-multiplier: 5 + use-double-helix: false + + # For Arrows + Tridents + particle-tick-delay: 2 + + # For Pickaxes + amount: 10 + on-blocks: + - diamond_ore + - gold_ore + - lapis_ore + - redstone_ore + - iron_ore + - obsidian + - ancient_debris \ No newline at end of file