-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Added Copper, Amethyst and Netherite Exchangers - Made Golden, Iron and Copper Exchangers to be the same tier and all 3 of them can be used to upgrade to the Diamond Exchanger - Slightly nerfed Obsidian Exchanger - Removed Netherite ingots from Obsidian Exchanger recipe - Removed leftover code for Better With Mods integration as it is very unlikely to be ported for newer versions of MC - Added translations for Traditional Chinese (Hong Kong and Taiwan) - Updated textures for all of the Vanilla Exchangers
- Loading branch information
Showing
55 changed files
with
916 additions
and
93 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
41 changes: 0 additions & 41 deletions
41
src/main/java/jackyy/exchangers/integration/BetterWithModsIntegration.java
This file was deleted.
Oops, something went wrong.
46 changes: 46 additions & 0 deletions
46
src/main/java/jackyy/exchangers/item/vanilla/ItemAmethystExchanger.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
package jackyy.exchangers.item.vanilla; | ||
|
||
import jackyy.exchangers.item.ItemExchangerBase; | ||
import jackyy.exchangers.registry.ModConfigs; | ||
import jackyy.exchangers.util.DefaultValues; | ||
import net.minecraft.world.item.ItemStack; | ||
import net.minecraft.world.item.Rarity; | ||
import net.minecraftforge.common.Tags; | ||
|
||
public class ItemAmethystExchanger extends ItemExchangerBase { | ||
|
||
public ItemAmethystExchanger() { | ||
super(new Properties().durability(DefaultValues.amethystMaxDmg).rarity(Rarity.EPIC)); | ||
} | ||
|
||
@Override | ||
public String getHarvestLevel() { | ||
return ModConfigs.CONFIG.amethystMaxHarvestLevel.get(); | ||
} | ||
|
||
@Override | ||
public String getDefaultHarvestLevel() { | ||
return DefaultValues.amethystMaxHarvestLevel; | ||
} | ||
|
||
@Override | ||
public int getMaxRange() { | ||
return ModConfigs.CONFIG.amethystMaxRange.get(); | ||
} | ||
|
||
@Override | ||
public int getTier() { | ||
return 7; | ||
} | ||
|
||
@Override | ||
public boolean checkLoaded() { | ||
return ModConfigs.CONFIG.vanillaModule.get(); | ||
} | ||
|
||
@Override | ||
public boolean isValidRepairItem(ItemStack toRepair, ItemStack repair) { | ||
return repair.is(Tags.Items.GEMS_AMETHYST); | ||
} | ||
|
||
} |
46 changes: 46 additions & 0 deletions
46
src/main/java/jackyy/exchangers/item/vanilla/ItemCopperExchanger.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
package jackyy.exchangers.item.vanilla; | ||
|
||
import jackyy.exchangers.item.ItemExchangerBase; | ||
import jackyy.exchangers.registry.ModConfigs; | ||
import jackyy.exchangers.util.DefaultValues; | ||
import net.minecraft.world.item.ItemStack; | ||
import net.minecraft.world.item.Rarity; | ||
import net.minecraftforge.common.Tags; | ||
|
||
public class ItemCopperExchanger extends ItemExchangerBase { | ||
|
||
public ItemCopperExchanger() { | ||
super(new Properties().durability(DefaultValues.copperMaxDmg).rarity(Rarity.RARE)); | ||
} | ||
|
||
@Override | ||
public String getHarvestLevel() { | ||
return ModConfigs.CONFIG.copperMaxHarvestLevel.get(); | ||
} | ||
|
||
@Override | ||
public String getDefaultHarvestLevel() { | ||
return DefaultValues.copperMaxHarvestLevel; | ||
} | ||
|
||
@Override | ||
public int getMaxRange() { | ||
return ModConfigs.CONFIG.copperMaxRange.get(); | ||
} | ||
|
||
@Override | ||
public int getTier() { | ||
return 3; | ||
} | ||
|
||
@Override | ||
public boolean checkLoaded() { | ||
return ModConfigs.CONFIG.vanillaModule.get(); | ||
} | ||
|
||
@Override | ||
public boolean isValidRepairItem(ItemStack toRepair, ItemStack repair) { | ||
return repair.is(Tags.Items.INGOTS_COPPER); | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -30,7 +30,7 @@ public int getMaxRange() { | |
|
||
@Override | ||
public int getTier() { | ||
return 5; | ||
return 4; | ||
} | ||
|
||
@Override | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -30,7 +30,7 @@ public int getMaxRange() { | |
|
||
@Override | ||
public int getTier() { | ||
return 6; | ||
return 5; | ||
} | ||
|
||
@Override | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -31,7 +31,7 @@ public int getMaxRange() { | |
|
||
@Override | ||
public int getTier() { | ||
return 8; | ||
return 9; | ||
} | ||
|
||
@Override | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -30,7 +30,7 @@ public int getMaxRange() { | |
|
||
@Override | ||
public int getTier() { | ||
return 4; | ||
return 3; | ||
} | ||
|
||
@Override | ||
|
46 changes: 46 additions & 0 deletions
46
src/main/java/jackyy/exchangers/item/vanilla/ItemNetheriteExchanger.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
package jackyy.exchangers.item.vanilla; | ||
|
||
import jackyy.exchangers.item.ItemExchangerBase; | ||
import jackyy.exchangers.registry.ModConfigs; | ||
import jackyy.exchangers.util.DefaultValues; | ||
import net.minecraft.world.item.ItemStack; | ||
import net.minecraft.world.item.Rarity; | ||
import net.minecraftforge.common.Tags; | ||
|
||
public class ItemNetheriteExchanger extends ItemExchangerBase { | ||
|
||
public ItemNetheriteExchanger() { | ||
super(new Properties().durability(DefaultValues.netheriteMaxDmg).rarity(Rarity.EPIC)); | ||
} | ||
|
||
@Override | ||
public String getHarvestLevel() { | ||
return ModConfigs.CONFIG.netheriteMaxHarvestLevel.get(); | ||
} | ||
|
||
@Override | ||
public String getDefaultHarvestLevel() { | ||
return DefaultValues.netheriteMaxHarvestLevel; | ||
} | ||
|
||
@Override | ||
public int getMaxRange() { | ||
return ModConfigs.CONFIG.netheriteMaxRange.get(); | ||
} | ||
|
||
@Override | ||
public int getTier() { | ||
return 8; | ||
} | ||
|
||
@Override | ||
public boolean checkLoaded() { | ||
return ModConfigs.CONFIG.vanillaModule.get(); | ||
} | ||
|
||
@Override | ||
public boolean isValidRepairItem(ItemStack toRepair, ItemStack repair) { | ||
return repair.is(Tags.Items.INGOTS_NETHERITE); | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -30,7 +30,7 @@ public int getMaxRange() { | |
|
||
@Override | ||
public int getTier() { | ||
return 7; | ||
return 6; | ||
} | ||
|
||
@Override | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.