mirror of
https://github.com/BlazingGames/blazing-games-plugin.git
synced 2025-02-03 21:26:41 -05:00
improved scavenger enchantment's recipes
This commit is contained in:
parent
aa59f2191d
commit
aed4e4b20b
1 changed files with 8 additions and 1 deletions
|
@ -41,7 +41,7 @@ public class ScavengerEnchantment extends CustomTreasureEnchantment {
|
|||
public AltarRecipe getRecipe(int level) {
|
||||
return new AltarRecipe(
|
||||
level, level*8,
|
||||
64, switch(level) {
|
||||
level == 3 ? 1 : 16, switch(level) {
|
||||
case 2 -> new MaterialItemPredicate(Material.DIAMOND);
|
||||
case 3 -> new MaterialItemPredicate(Material.NETHERITE_SCRAP);
|
||||
default -> new MaterialItemPredicate(Material.GOLD_INGOT);
|
||||
|
@ -58,6 +58,13 @@ public class ScavengerEnchantment extends CustomTreasureEnchantment {
|
|||
return PaperEnchantmentTarget.WEAPON;
|
||||
}
|
||||
|
||||
@Override
|
||||
public int maxLevelAvailableInAltar(int altarTier) {
|
||||
if(altarTier < 2) return 0;
|
||||
|
||||
return altarTier - 1;
|
||||
}
|
||||
|
||||
public int getMaxLevel() {
|
||||
return 3;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue