mirror of
https://github.com/Auxilor/EcoEnchants.git
synced 2025-02-03 02:21:21 +01:00
Added 1.16 artifacts
This commit is contained in:
parent
de9b773211
commit
b216901c43
@ -0,0 +1,16 @@
|
||||
package com.willfp.ecoenchants.enchantments.ecoenchants.artifact;
|
||||
|
||||
import com.willfp.ecoenchants.enchantments.itemtypes.Artifact;
|
||||
import com.willfp.ecoenchants.util.optional.Prerequisite;
|
||||
import org.bukkit.Particle;
|
||||
|
||||
public final class AshArtifact extends Artifact {
|
||||
public AshArtifact() {
|
||||
super(
|
||||
"ash_artifact",
|
||||
5.0,
|
||||
Particle.WHITE_ASH,
|
||||
new Prerequisite[]{Prerequisite.MinVer1_16}
|
||||
);
|
||||
}
|
||||
}
|
@ -0,0 +1,16 @@
|
||||
package com.willfp.ecoenchants.enchantments.ecoenchants.artifact;
|
||||
|
||||
import com.willfp.ecoenchants.enchantments.itemtypes.Artifact;
|
||||
import com.willfp.ecoenchants.util.optional.Prerequisite;
|
||||
import org.bukkit.Particle;
|
||||
|
||||
public final class CrimsonArtifact extends Artifact {
|
||||
public CrimsonArtifact() {
|
||||
super(
|
||||
"crimson_artifact",
|
||||
5.0,
|
||||
Particle.CRIMSON_SPORE,
|
||||
new Prerequisite[]{Prerequisite.MinVer1_16}
|
||||
);
|
||||
}
|
||||
}
|
@ -0,0 +1,16 @@
|
||||
package com.willfp.ecoenchants.enchantments.ecoenchants.artifact;
|
||||
|
||||
import com.willfp.ecoenchants.enchantments.itemtypes.Artifact;
|
||||
import com.willfp.ecoenchants.util.optional.Prerequisite;
|
||||
import org.bukkit.Particle;
|
||||
|
||||
public final class SoulArtifact extends Artifact {
|
||||
public SoulArtifact() {
|
||||
super(
|
||||
"soul_artifact",
|
||||
5.0,
|
||||
Particle.SOUL,
|
||||
new Prerequisite[]{Prerequisite.MinVer1_16}
|
||||
);
|
||||
}
|
||||
}
|
@ -0,0 +1,16 @@
|
||||
package com.willfp.ecoenchants.enchantments.ecoenchants.artifact;
|
||||
|
||||
import com.willfp.ecoenchants.enchantments.itemtypes.Artifact;
|
||||
import com.willfp.ecoenchants.util.optional.Prerequisite;
|
||||
import org.bukkit.Particle;
|
||||
|
||||
public final class SoulFireArtifact extends Artifact {
|
||||
public SoulFireArtifact() {
|
||||
super(
|
||||
"soul_fire_artifact",
|
||||
5.0,
|
||||
Particle.SOUL_FIRE_FLAME,
|
||||
new Prerequisite[]{Prerequisite.MinVer1_16}
|
||||
);
|
||||
}
|
||||
}
|
@ -0,0 +1,16 @@
|
||||
package com.willfp.ecoenchants.enchantments.ecoenchants.artifact;
|
||||
|
||||
import com.willfp.ecoenchants.enchantments.itemtypes.Artifact;
|
||||
import com.willfp.ecoenchants.util.optional.Prerequisite;
|
||||
import org.bukkit.Particle;
|
||||
|
||||
public final class TearArtifact extends Artifact {
|
||||
public TearArtifact() {
|
||||
super(
|
||||
"tear_artifact",
|
||||
5.0,
|
||||
Particle.DRIPPING_OBSIDIAN_TEAR,
|
||||
new Prerequisite[]{Prerequisite.MinVer1_16}
|
||||
);
|
||||
}
|
||||
}
|
@ -0,0 +1,16 @@
|
||||
package com.willfp.ecoenchants.enchantments.ecoenchants.artifact;
|
||||
|
||||
import com.willfp.ecoenchants.enchantments.itemtypes.Artifact;
|
||||
import com.willfp.ecoenchants.util.optional.Prerequisite;
|
||||
import org.bukkit.Particle;
|
||||
|
||||
public final class WarpedArtifact extends Artifact {
|
||||
public WarpedArtifact() {
|
||||
super(
|
||||
"warped_artifact",
|
||||
5.0,
|
||||
Particle.WARPED_SPORE,
|
||||
new Prerequisite[]{Prerequisite.MinVer1_16}
|
||||
);
|
||||
}
|
||||
}
|
@ -8,6 +8,7 @@ import com.willfp.ecoenchants.enchantments.EcoEnchants;
|
||||
import com.willfp.ecoenchants.enchantments.util.EnchantChecks;
|
||||
import com.willfp.ecoenchants.nms.TridentStack;
|
||||
import com.willfp.ecoenchants.util.NumberUtils;
|
||||
import com.willfp.ecoenchants.util.optional.Prerequisite;
|
||||
import org.bukkit.Location;
|
||||
import org.bukkit.Particle;
|
||||
import org.bukkit.block.Block;
|
||||
@ -33,11 +34,19 @@ public abstract class Artifact extends EcoEnchant {
|
||||
private final Particle.DustOptions extra;
|
||||
|
||||
protected Artifact(String key, double version, Particle particle) {
|
||||
this(key, version, particle, null);
|
||||
this(key, version, particle, null, new Prerequisite[]{} );
|
||||
}
|
||||
|
||||
protected Artifact(String key, double version, Particle particle, Particle.DustOptions extra) {
|
||||
super(new EcoEnchantBuilder(key, EnchantmentType.ARTIFACT, version));
|
||||
this(key, version, particle, extra, new Prerequisite[]{});
|
||||
}
|
||||
|
||||
protected Artifact(String key, double version, Particle particle, Prerequisite[] prerequisites) {
|
||||
this(key, version, particle, null, prerequisites);
|
||||
}
|
||||
|
||||
protected Artifact(String key, double version, Particle particle, Particle.DustOptions extra, Prerequisite[] prerequisites) {
|
||||
super(new EcoEnchantBuilder(key, EnchantmentType.ARTIFACT, version), prerequisites);
|
||||
this.particle = particle;
|
||||
this.extra = extra;
|
||||
}
|
||||
|
47
Plugin/src/main/resources/enchants/artifact/ashartifact.yml
Normal file
47
Plugin/src/main/resources/enchants/artifact/ashartifact.yml
Normal file
@ -0,0 +1,47 @@
|
||||
#
|
||||
# Ash Artifact EcoEnchant
|
||||
#
|
||||
|
||||
config-version: 5.0 # Don't edit this.
|
||||
|
||||
name: "Ash Artifact"
|
||||
description: Creates basalt deltas particles.
|
||||
enabled: true
|
||||
|
||||
obtaining:
|
||||
table: true
|
||||
villager: true
|
||||
loot: true
|
||||
rarity: epic
|
||||
|
||||
general-config:
|
||||
targets:
|
||||
- pickaxe
|
||||
- sword
|
||||
- axe
|
||||
- elytra
|
||||
- bow
|
||||
- crossbow
|
||||
- trident
|
||||
grindstoneable: true
|
||||
conflicts: []
|
||||
|
||||
config:
|
||||
# For Attack
|
||||
radius: 1
|
||||
y-delta: 0.07
|
||||
radius-multiplier: 5
|
||||
|
||||
# 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
|
@ -0,0 +1,47 @@
|
||||
#
|
||||
# Crimson Artifact EcoEnchant
|
||||
#
|
||||
|
||||
config-version: 5.0 # Don't edit this.
|
||||
|
||||
name: "Crimson Artifact"
|
||||
description: Creates crimson forest particles.
|
||||
enabled: true
|
||||
|
||||
obtaining:
|
||||
table: true
|
||||
villager: true
|
||||
loot: true
|
||||
rarity: epic
|
||||
|
||||
general-config:
|
||||
targets:
|
||||
- pickaxe
|
||||
- sword
|
||||
- axe
|
||||
- elytra
|
||||
- bow
|
||||
- crossbow
|
||||
- trident
|
||||
grindstoneable: true
|
||||
conflicts: []
|
||||
|
||||
config:
|
||||
# For Attack
|
||||
radius: 1
|
||||
y-delta: 0.07
|
||||
radius-multiplier: 5
|
||||
|
||||
# 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
|
47
Plugin/src/main/resources/enchants/artifact/soulartifact.yml
Normal file
47
Plugin/src/main/resources/enchants/artifact/soulartifact.yml
Normal file
@ -0,0 +1,47 @@
|
||||
#
|
||||
# Soul Artifact EcoEnchant
|
||||
#
|
||||
|
||||
config-version: 5.0 # Don't edit this.
|
||||
|
||||
name: "Soul Artifact"
|
||||
description: Creates soul particles.
|
||||
enabled: true
|
||||
|
||||
obtaining:
|
||||
table: true
|
||||
villager: true
|
||||
loot: true
|
||||
rarity: epic
|
||||
|
||||
general-config:
|
||||
targets:
|
||||
- pickaxe
|
||||
- sword
|
||||
- axe
|
||||
- elytra
|
||||
- bow
|
||||
- crossbow
|
||||
- trident
|
||||
grindstoneable: true
|
||||
conflicts: []
|
||||
|
||||
config:
|
||||
# For Attack
|
||||
radius: 1
|
||||
y-delta: 0.07
|
||||
radius-multiplier: 5
|
||||
|
||||
# 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
|
@ -0,0 +1,47 @@
|
||||
#
|
||||
# Soul Fire Artifact EcoEnchant
|
||||
#
|
||||
|
||||
config-version: 5.0 # Don't edit this.
|
||||
|
||||
name: "Soul Fire Artifact"
|
||||
description: Creates soul flame particles.
|
||||
enabled: true
|
||||
|
||||
obtaining:
|
||||
table: true
|
||||
villager: true
|
||||
loot: true
|
||||
rarity: epic
|
||||
|
||||
general-config:
|
||||
targets:
|
||||
- pickaxe
|
||||
- sword
|
||||
- axe
|
||||
- elytra
|
||||
- bow
|
||||
- crossbow
|
||||
- trident
|
||||
grindstoneable: true
|
||||
conflicts: []
|
||||
|
||||
config:
|
||||
# For Attack
|
||||
radius: 1
|
||||
y-delta: 0.07
|
||||
radius-multiplier: 5
|
||||
|
||||
# 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
|
47
Plugin/src/main/resources/enchants/artifact/tearartifact.yml
Normal file
47
Plugin/src/main/resources/enchants/artifact/tearartifact.yml
Normal file
@ -0,0 +1,47 @@
|
||||
#
|
||||
# Tear Artifact EcoEnchant
|
||||
#
|
||||
|
||||
config-version: 5.0 # Don't edit this.
|
||||
|
||||
name: "Tear Artifact"
|
||||
description: Creates crying obsidian particles.
|
||||
enabled: true
|
||||
|
||||
obtaining:
|
||||
table: true
|
||||
villager: true
|
||||
loot: true
|
||||
rarity: epic
|
||||
|
||||
general-config:
|
||||
targets:
|
||||
- pickaxe
|
||||
- sword
|
||||
- axe
|
||||
- elytra
|
||||
- bow
|
||||
- crossbow
|
||||
- trident
|
||||
grindstoneable: true
|
||||
conflicts: []
|
||||
|
||||
config:
|
||||
# For Attack
|
||||
radius: 1
|
||||
y-delta: 0.07
|
||||
radius-multiplier: 5
|
||||
|
||||
# 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
|
@ -0,0 +1,47 @@
|
||||
#
|
||||
# Warped Artifact EcoEnchant
|
||||
#
|
||||
|
||||
config-version: 5.0 # Don't edit this.
|
||||
|
||||
name: "Warped Artifact"
|
||||
description: Creates warped forest particles.
|
||||
enabled: true
|
||||
|
||||
obtaining:
|
||||
table: true
|
||||
villager: true
|
||||
loot: true
|
||||
rarity: epic
|
||||
|
||||
general-config:
|
||||
targets:
|
||||
- pickaxe
|
||||
- sword
|
||||
- axe
|
||||
- elytra
|
||||
- bow
|
||||
- crossbow
|
||||
- trident
|
||||
grindstoneable: true
|
||||
conflicts: []
|
||||
|
||||
config:
|
||||
# For Attack
|
||||
radius: 1
|
||||
y-delta: 0.07
|
||||
radius-multiplier: 5
|
||||
|
||||
# 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
|
@ -243,6 +243,13 @@ permissions:
|
||||
ecoenchants.fromtable.inaccuracycurse: true
|
||||
ecoenchants.fromtable.respirator: true
|
||||
ecoenchants.fromtable.fetching: true
|
||||
ecoenchants.fromtable.economical: true
|
||||
ecoenchants.fromtable.soulfireartifact: true
|
||||
ecoenchants.fromtable.soulartifact: true
|
||||
ecoenchants.fromtable.crimsonartifact: true
|
||||
ecoenchants.fromtable.warpedartifact: true
|
||||
ecoenchants.fromtable.ashartifact: true
|
||||
ecoenchants.fromtable.tearartifact: true
|
||||
|
||||
ecoenchants.updateannounce:
|
||||
description: Informs admins of a new update
|
||||
@ -856,4 +863,22 @@ permissions:
|
||||
default: true
|
||||
ecoenchants.fromtable.economical:
|
||||
description: Allows getting economical from an enchanting table
|
||||
default: true
|
||||
ecoenchants.fromtable.soulfireartifact:
|
||||
description: Allows getting soul fire artifact from an enchanting table
|
||||
default: true
|
||||
ecoenchants.fromtable.soulartifact:
|
||||
description: Allows getting soul artifact from an enchanting table
|
||||
default: true
|
||||
ecoenchants.fromtable.crimsonartifact:
|
||||
description: Allows getting crimson artifact from an enchanting table
|
||||
default: true
|
||||
ecoenchants.fromtable.warpedartifact:
|
||||
description: Allows getting warped artifact from an enchanting table
|
||||
default: true
|
||||
ecoenchants.fromtable.ashartifact:
|
||||
description: Allows getting ash artifact from an enchanting table
|
||||
default: true
|
||||
ecoenchants.fromtable.tearartifact:
|
||||
description: Allows getting tear artifact from an enchanting table
|
||||
default: true
|
Loading…
Reference in New Issue
Block a user