Added barrier, villager, anger, and nautlius artifacts

This commit is contained in:
Auxilor 2021-02-25 21:48:42 +00:00
parent bc0cf2d6b8
commit 23f6a657c0
9 changed files with 266 additions and 0 deletions

View File

@ -5,6 +5,7 @@ import com.google.common.collect.BiMap;
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.AngerArtifact;
import com.willfp.ecoenchants.enchantments.ecoenchants.artifact.AshArtifact;
import com.willfp.ecoenchants.enchantments.ecoenchants.artifact.BarrierArtifact;
import com.willfp.ecoenchants.enchantments.ecoenchants.artifact.CloudsArtifact;
@ -24,6 +25,7 @@ import com.willfp.ecoenchants.enchantments.ecoenchants.artifact.LimeArtifact;
import com.willfp.ecoenchants.enchantments.ecoenchants.artifact.MagicArtifact;
import com.willfp.ecoenchants.enchantments.ecoenchants.artifact.MagmaArtifact;
import com.willfp.ecoenchants.enchantments.ecoenchants.artifact.MusicArtifact;
import com.willfp.ecoenchants.enchantments.ecoenchants.artifact.NautilusArtifact;
import com.willfp.ecoenchants.enchantments.ecoenchants.artifact.NetherArtifact;
import com.willfp.ecoenchants.enchantments.ecoenchants.artifact.RedstoneArtifact;
import com.willfp.ecoenchants.enchantments.ecoenchants.artifact.SmokeArtifact;
@ -33,6 +35,7 @@ import com.willfp.ecoenchants.enchantments.ecoenchants.artifact.SoulFireArtifact
import com.willfp.ecoenchants.enchantments.ecoenchants.artifact.SparkleArtifact;
import com.willfp.ecoenchants.enchantments.ecoenchants.artifact.TearArtifact;
import com.willfp.ecoenchants.enchantments.ecoenchants.artifact.TotemArtifact;
import com.willfp.ecoenchants.enchantments.ecoenchants.artifact.VillagerArtifact;
import com.willfp.ecoenchants.enchantments.ecoenchants.artifact.WarpedArtifact;
import com.willfp.ecoenchants.enchantments.ecoenchants.artifact.WaterArtifact;
import com.willfp.ecoenchants.enchantments.ecoenchants.artifact.WitchArtifact;
@ -478,6 +481,9 @@ public class EcoEnchants {
public static final EcoEnchant AVERSION = new Aversion();
public static final EcoEnchant INTROVERSION = new Introversion();
public static final EcoEnchant BARRIER_ARTIFACT = new BarrierArtifact();
public static final EcoEnchant VILLAGER_ARTIFACT = new VillagerArtifact();
public static final EcoEnchant ANGER_ARTIFACT = new AngerArtifact();
public static final EcoEnchant NAUTILUS_ARTIFACT = new NautilusArtifact();
/**
* Get all registered {@link EcoEnchant}s.

View File

@ -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 AngerArtifact extends Artifact {
public AngerArtifact() {
super(
"anger_artifact"
);
}
@Override
public @NotNull Particle getParticle() {
return Particle.VILLAGER_ANGRY;
}
}

View File

@ -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 NautilusArtifact extends Artifact {
public NautilusArtifact() {
super(
"nautilus_artifact"
);
}
@Override
public @NotNull Particle getParticle() {
return Particle.NAUTILUS;
}
}

View File

@ -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 SweepArtifact extends Artifact {
public SweepArtifact() {
super(
"sweep_artifact"
);
}
@Override
public @NotNull Particle getParticle() {
return Particle.SWEEP_ATTACK;
}
}

View File

@ -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 VillagerArtifact extends Artifact {
public VillagerArtifact() {
super(
"villager_artifact"
);
}
@Override
public @NotNull Particle getParticle() {
return Particle.VILLAGER_HAPPY;
}
}

View File

@ -0,0 +1,47 @@
#
# Anger Artifact EcoEnchant
#
name: "Anger Artifact"
description: Creates angry villager 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

View File

@ -0,0 +1,47 @@
#
# Nautilus Artifact EcoEnchant
#
name: "Nautilus Artifact"
description: Creates nautilus 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

View File

@ -0,0 +1,47 @@
#
# Sweep Artifact EcoEnchant
#
name: "Sweep Artifact"
description: Creates sweep attack 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

View File

@ -0,0 +1,47 @@
#
# Villager Artifact EcoEnchant
#
name: "Villager Artifact"
description: Creates happy villager 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