Skip to content

Commit

Permalink
added diamond drill, added texture layers for it
Browse files Browse the repository at this point in the history
  • Loading branch information
Trinsdar committed Mar 4, 2024
1 parent fa82694 commit 3f2128a
Show file tree
Hide file tree
Showing 5 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion common/src/main/java/trinsdar/gt4r/data/GT4RData.java
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,8 @@ private static Block.Properties prepareProperties() {
public static ItemBasic<?> MachineParts = new ItemBasic<>(GT4RRef.ID, "machine_parts");
public static ItemBasic<?> StorageDataOrb = new ItemStorageOrb(GT4RRef.ID, "storage_data_orb").tip("A High Capacity Data Storage");

public static ItemElectricTool DRILL = new ItemElectricTool("drill", GTCoreTools.DRILL, 6.0f, 6.5f, 2, 1);
public static ItemElectricTool DRILL = new ItemElectricTool("drill", GTCoreTools.DRILL, 6.0f, 5.5f, 2, 1);
public static ItemElectricTool DIAMOND_DRILL = new ItemElectricTool("diamond_drill", GTCoreTools.DRILL, 8.0f, 6.0f, 3, 1);

public static ItemBasic<?> ZPM = new ItemBattery(GT4RRef.ID, "zpm", Tier.ZPM, 100000000000L, false);
//public static ItemBasic<?> BatteryEnergyOrbCluster = new ItemBasic<>(Ref.ID, "battery_energy_orb_cluster");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -302,7 +302,7 @@ public int getItemColor(ItemStack stack, @Nullable Block block, int i) {
@Override
public Texture[] getTextures() {
List<Texture> textures = new ObjectArrayList<>();
int layers = getAntimatterToolType().getOverlayLayers();
int layers = getId().contains("diamond") ? 2 : getAntimatterToolType().getOverlayLayers();
textures.add(new Texture(getTextureDomain(), "item/tool/".concat(getAntimatterToolType().getId())));
if (layers == 1)
textures.add(new Texture(getTextureDomain(), "item/tool/overlay/".concat(getAntimatterToolType().getId())));
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 3f2128a

Please sign in to comment.