Skip to content

Commit

Permalink
Remove the rest of the default enchants
Browse files Browse the repository at this point in the history
  • Loading branch information
IcarussOne committed Jan 13, 2025
1 parent 8127a34 commit c2c9999
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 41 deletions.
14 changes: 0 additions & 14 deletions src/main/java/twilightforest/item/ItemTFMazebreakerPick.java
Original file line number Diff line number Diff line change
@@ -1,13 +1,10 @@
package twilightforest.item;

import net.minecraft.block.state.IBlockState;
import net.minecraft.creativetab.CreativeTabs;
import net.minecraft.init.Enchantments;
import net.minecraft.item.EnumRarity;
import net.minecraft.item.Item;
import net.minecraft.item.ItemPickaxe;
import net.minecraft.item.ItemStack;
import net.minecraft.util.NonNullList;
import twilightforest.block.TFBlocks;
import twilightforest.client.ModelRegisterCallback;

Expand All @@ -19,17 +16,6 @@ protected ItemTFMazebreakerPick(Item.ToolMaterial material) {
this.setCreativeTab(TFItems.creativeTab);
}

@Override
public void getSubItems(CreativeTabs tab, NonNullList<ItemStack> list) {
if (isInCreativeTab(tab)) {
ItemStack istack = new ItemStack(this);
istack.addEnchantment(Enchantments.EFFICIENCY, 4);
istack.addEnchantment(Enchantments.UNBREAKING, 3);
istack.addEnchantment(Enchantments.FORTUNE, 2);
list.add(istack);
}
}

@Override
public float getDestroySpeed(@Nonnull ItemStack stack, IBlockState state) {
float destroySpeed = super.getDestroySpeed(stack, state);
Expand Down
21 changes: 0 additions & 21 deletions src/main/java/twilightforest/item/ItemTFNagaArmor.java
Original file line number Diff line number Diff line change
@@ -1,12 +1,9 @@
package twilightforest.item;

import net.minecraft.creativetab.CreativeTabs;
import net.minecraft.entity.Entity;
import net.minecraft.init.Enchantments;
import net.minecraft.inventory.EntityEquipmentSlot;
import net.minecraft.item.EnumRarity;
import net.minecraft.item.ItemStack;
import net.minecraft.util.NonNullList;
import twilightforest.TwilightForestMod;
import twilightforest.client.ModelRegisterCallback;

Expand All @@ -23,22 +20,4 @@ public String getArmorTexture(ItemStack itemstack, Entity entity, EntityEquipmen
return TwilightForestMod.ARMOR_DIR + "naga_scale_1.png";
}
}

@Override
public void getSubItems(CreativeTabs tab, NonNullList<ItemStack> list) {
if (isInCreativeTab(tab)) {
ItemStack istack = new ItemStack(this);
switch (this.armorType) {
case CHEST:
istack.addEnchantment(Enchantments.FIRE_PROTECTION, 3);
break;
case LEGS:
istack.addEnchantment(Enchantments.PROTECTION, 3);
break;
default:
break;
}
list.add(istack);
}
}
}
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
{
"result": {
"nbt": "{ench:[{lvl:3s,id:1s}]}",
"item": "twilightforest:naga_chestplate",
"type": "minecraft:item_nbt"
"item": "twilightforest:naga_chestplate"
},
"group": "naga_armor",
"pattern": [
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
{
"result": {
"nbt": "{ench:[{lvl:3s,id:0s}]}",
"item": "twilightforest:naga_leggings",
"type": "minecraft:item_nbt"
"item": "twilightforest:naga_leggings"
},
"group": "naga_armor",
"pattern": [
Expand Down

0 comments on commit c2c9999

Please sign in to comment.