Added copper-ore to all artifacts and mining enchantments

This commit is contained in:
Auxilor 2021-06-12 19:22:43 +01:00
parent 41d11bab30
commit 3c83c677ca
41 changed files with 41 additions and 7 deletions

View File

@ -14,8 +14,6 @@ import org.bukkit.event.block.BlockBreakEvent;
import org.bukkit.inventory.ItemStack;
import org.jetbrains.annotations.NotNull;
import java.util.stream.Collectors;
public class Transfuse extends EcoEnchant {
public Transfuse() {
super(
@ -38,9 +36,7 @@ public class Transfuse extends EcoEnchant {
event.setDropItems(false);
if (!this.getConfig().getStrings(EcoEnchants.CONFIG_LOCATION + "works-on").stream()
.map(string -> Material.getMaterial(string.toUpperCase()))
.collect(Collectors.toList()).contains(block.getType())) {
if (!this.getConfig().getStrings(EcoEnchants.CONFIG_LOCATION + "works-on").contains(block.getType().toString().toLowerCase())) {
return;
}

View File

@ -37,9 +37,8 @@ public class Vein extends EcoEnchant {
}
List<Material> materials = new ArrayList<>();
this.getConfig().getStrings(EcoEnchants.CONFIG_LOCATION + "whitelisted-blocks").forEach(name -> materials.add(Material.getMaterial(name.toUpperCase())));
if (!materials.contains(block.getType())) {
if (!this.getConfig().getStrings(EcoEnchants.CONFIG_LOCATION + "whitelisted-blocks").contains(block.getType().toString().toLowerCase())) {
return;
}

View File

@ -43,5 +43,6 @@ config:
- lapis_ore
- redstone_ore
- iron_ore
- copper_ore
- obsidian
- ancient_debris

View File

@ -43,5 +43,6 @@ config:
- lapis_ore
- redstone_ore
- iron_ore
- copper_ore
- obsidian
- ancient_debris

View File

@ -43,5 +43,6 @@ config:
- lapis_ore
- redstone_ore
- iron_ore
- copper_ore
- obsidian
- ancient_debris

View File

@ -43,5 +43,6 @@ config:
- lapis_ore
- redstone_ore
- iron_ore
- copper_ore
- obsidian
- ancient_debris

View File

@ -43,5 +43,6 @@ config:
- lapis_ore
- redstone_ore
- iron_ore
- copper_ore
- obsidian
- ancient_debris

View File

@ -43,5 +43,6 @@ config:
- lapis_ore
- redstone_ore
- iron_ore
- copper_ore
- obsidian
- ancient_debris

View File

@ -43,5 +43,6 @@ config:
- lapis_ore
- redstone_ore
- iron_ore
- copper_ore
- obsidian
- ancient_debris

View File

@ -43,5 +43,6 @@ config:
- lapis_ore
- redstone_ore
- iron_ore
- copper_ore
- obsidian
- ancient_debris

View File

@ -43,5 +43,6 @@ config:
- lapis_ore
- redstone_ore
- iron_ore
- copper_ore
- obsidian
- ancient_debris

View File

@ -43,5 +43,6 @@ config:
- lapis_ore
- redstone_ore
- iron_ore
- copper_ore
- obsidian
- ancient_debris

View File

@ -43,5 +43,6 @@ config:
- lapis_ore
- redstone_ore
- iron_ore
- copper_ore
- obsidian
- ancient_debris

View File

@ -43,5 +43,6 @@ config:
- lapis_ore
- redstone_ore
- iron_ore
- copper_ore
- obsidian
- ancient_debris

View File

@ -43,5 +43,6 @@ config:
- lapis_ore
- redstone_ore
- iron_ore
- copper_ore
- obsidian
- ancient_debris

View File

@ -43,5 +43,6 @@ config:
- lapis_ore
- redstone_ore
- iron_ore
- copper_ore
- obsidian
- ancient_debris

View File

@ -43,5 +43,6 @@ config:
- lapis_ore
- redstone_ore
- iron_ore
- copper_ore
- obsidian
- ancient_debris

View File

@ -43,5 +43,6 @@ config:
- lapis_ore
- redstone_ore
- iron_ore
- copper_ore
- obsidian
- ancient_debris

View File

@ -43,5 +43,6 @@ config:
- lapis_ore
- redstone_ore
- iron_ore
- copper_ore
- obsidian
- ancient_debris

View File

@ -43,5 +43,6 @@ config:
- lapis_ore
- redstone_ore
- iron_ore
- copper_ore
- obsidian
- ancient_debris

View File

@ -43,5 +43,6 @@ config:
- lapis_ore
- redstone_ore
- iron_ore
- copper_ore
- obsidian
- ancient_debris

View File

@ -43,5 +43,6 @@ config:
- lapis_ore
- redstone_ore
- iron_ore
- copper_ore
- obsidian
- ancient_debris

View File

@ -43,5 +43,6 @@ config:
- lapis_ore
- redstone_ore
- iron_ore
- copper_ore
- obsidian
- ancient_debris

View File

@ -43,5 +43,6 @@ config:
- lapis_ore
- redstone_ore
- iron_ore
- copper_ore
- obsidian
- ancient_debris

View File

@ -43,5 +43,6 @@ config:
- lapis_ore
- redstone_ore
- iron_ore
- copper_ore
- obsidian
- ancient_debris

View File

@ -43,5 +43,6 @@ config:
- lapis_ore
- redstone_ore
- iron_ore
- copper_ore
- obsidian
- ancient_debris

View File

@ -43,5 +43,6 @@ config:
- lapis_ore
- redstone_ore
- iron_ore
- copper_ore
- obsidian
- ancient_debris

View File

@ -43,5 +43,6 @@ config:
- lapis_ore
- redstone_ore
- iron_ore
- copper_ore
- obsidian
- ancient_debris

View File

@ -43,5 +43,6 @@ config:
- lapis_ore
- redstone_ore
- iron_ore
- copper_ore
- obsidian
- ancient_debris

View File

@ -43,5 +43,6 @@ config:
- lapis_ore
- redstone_ore
- iron_ore
- copper_ore
- obsidian
- ancient_debris

View File

@ -43,5 +43,6 @@ config:
- lapis_ore
- redstone_ore
- iron_ore
- copper_ore
- obsidian
- ancient_debris

View File

@ -43,5 +43,6 @@ config:
- lapis_ore
- redstone_ore
- iron_ore
- copper_ore
- obsidian
- ancient_debris

View File

@ -43,5 +43,6 @@ config:
- lapis_ore
- redstone_ore
- iron_ore
- copper_ore
- obsidian
- ancient_debris

View File

@ -43,5 +43,6 @@ config:
- lapis_ore
- redstone_ore
- iron_ore
- copper_ore
- obsidian
- ancient_debris

View File

@ -43,5 +43,6 @@ config:
- lapis_ore
- redstone_ore
- iron_ore
- copper_ore
- obsidian
- ancient_debris

View File

@ -43,5 +43,6 @@ config:
- lapis_ore
- redstone_ore
- iron_ore
- copper_ore
- obsidian
- ancient_debris

View File

@ -43,5 +43,6 @@ config:
- lapis_ore
- redstone_ore
- iron_ore
- copper_ore
- obsidian
- ancient_debris

View File

@ -43,5 +43,6 @@ config:
- lapis_ore
- redstone_ore
- iron_ore
- copper_ore
- obsidian
- ancient_debris

View File

@ -29,6 +29,7 @@ config:
- lapis_ore
- redstone_ore
- iron_ore
- copper_ore
chance-per-level: 0.03 # Chance for drop to be switched
works-on:
- stone

View File

@ -28,6 +28,7 @@ config:
whitelisted-blocks:
- coal_ore
- iron_ore
- copper_ore
- gold_ore
- ancient_debris
- lapis_ore

View File

@ -26,6 +26,7 @@ config:
blocks:
- coal_ore
- iron_ore
- copper_ore
- gold_ore
- redstone_ore
- lapis_ore