I have a custom enchantment that for testing purpose have 0 effects.
For now the target is BOW but i only want this enchantment to have my custom item as target but can't find a way to do it
public class HarmonyEnchant extends TerraEnchantment {
public HarmonyEnchant() {
super(Enchantment.Rarity.RARE, EnchantmentTarget.BOW, new EquipmentSlot[]{EquipmentSlot.MAINHAND});
}
@Override
public int getMinPower(int level) {
return 50; // impossible to get vanilla
}
@Override
public boolean isAvailableForEnchantedBookOffer() {
return false;
}
public boolean isAvailableForRandomSelection() {
return false;
}
}