mirror of
https://github.com/Auxilor/EcoEnchants.git
synced 2024-11-25 15:35:11 +01:00
Added barrier artifact
This commit is contained in:
parent
78097e729b
commit
6a36a98a13
@ -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.
|
||||
|
@ -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;
|
||||
}
|
||||
}
|
@ -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
|
Loading…
Reference in New Issue
Block a user