Skip to content

Commit

Permalink
Updated Freezing and Textures
Browse files Browse the repository at this point in the history
-Made it so Freezing can't apply with Fire Aspect
-Added textures for Fire Ruby and Ice Sapphire
  • Loading branch information
Dariensg committed Aug 4, 2021
1 parent 331c1db commit 9a1bc07
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@

import net.minecraft.enchantment.Enchantment;
import net.minecraft.enchantment.EnchantmentType;
import net.minecraft.enchantment.FireAspectEnchantment;
import net.minecraft.entity.Entity;
import net.minecraft.entity.LivingEntity;
import net.minecraft.inventory.EquipmentSlotType;
Expand Down Expand Up @@ -48,6 +49,11 @@ public int getMaxLevel() {
return 3;
}

@Override
protected boolean canApplyTogether(Enchantment ench) {
return !(ench instanceof FireAspectEnchantment);
}

@Override
public boolean canApply(ItemStack stack) {
return stack.getItem() instanceof AxeItem || super.canApply(stack);
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 9a1bc07

Please sign in to comment.