-
Notifications
You must be signed in to change notification settings - Fork 40
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
e2c49bc
commit bb36470
Showing
6 changed files
with
43 additions
and
11 deletions.
There are no files selected for viewing
9 changes: 8 additions & 1 deletion
9
src/main/java/dev/dubhe/anvilcraft/item/EmberAnvilHammerItem.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
9 changes: 7 additions & 2 deletions
9
src/main/java/dev/dubhe/anvilcraft/item/EmberMetalAxeItem.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 |
---|---|---|
@@ -1,14 +1,19 @@ | ||
package dev.dubhe.anvilcraft.item; | ||
|
||
import net.minecraft.core.component.DataComponents; | ||
import net.minecraft.world.item.AxeItem; | ||
import net.minecraft.world.item.component.Unbreakable; | ||
|
||
public class EmberMetalAxeItem extends AxeItem { | ||
/** | ||
* | ||
*/ | ||
public EmberMetalAxeItem(Properties properties) { | ||
super( | ||
ModTiers.EMBER_METAL, | ||
properties.durability(0).attributes(AxeItem.createAttributes(ModTiers.AMETHYST, 10, -3f))); | ||
ModTiers.EMBER_METAL, | ||
properties.durability(0) | ||
.attributes(AxeItem.createAttributes(ModTiers.AMETHYST, 10, -3f)) | ||
.component(DataComponents.UNBREAKABLE, new Unbreakable(true)) | ||
); | ||
} | ||
} |
9 changes: 7 additions & 2 deletions
9
src/main/java/dev/dubhe/anvilcraft/item/EmberMetalHoeItem.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 |
---|---|---|
@@ -1,15 +1,20 @@ | ||
package dev.dubhe.anvilcraft.item; | ||
|
||
import net.minecraft.core.component.DataComponents; | ||
import net.minecraft.world.item.AxeItem; | ||
import net.minecraft.world.item.HoeItem; | ||
import net.minecraft.world.item.component.Unbreakable; | ||
|
||
public class EmberMetalHoeItem extends HoeItem { | ||
/** | ||
* | ||
*/ | ||
public EmberMetalHoeItem(Properties properties) { | ||
super( | ||
ModTiers.EMBER_METAL, | ||
properties.durability(0).attributes(AxeItem.createAttributes(ModTiers.EMBER_METAL, 1, 0))); | ||
ModTiers.EMBER_METAL, | ||
properties.durability(0) | ||
.attributes(HoeItem.createAttributes(ModTiers.EMBER_METAL, 1, 0)) | ||
.component(DataComponents.UNBREAKABLE, new Unbreakable(true)) | ||
); | ||
} | ||
} |
9 changes: 7 additions & 2 deletions
9
src/main/java/dev/dubhe/anvilcraft/item/EmberMetalPickaxeItem.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 |
---|---|---|
@@ -1,15 +1,20 @@ | ||
package dev.dubhe.anvilcraft.item; | ||
|
||
import net.minecraft.core.component.DataComponents; | ||
import net.minecraft.world.item.AxeItem; | ||
import net.minecraft.world.item.PickaxeItem; | ||
import net.minecraft.world.item.component.Unbreakable; | ||
|
||
public class EmberMetalPickaxeItem extends PickaxeItem { | ||
/** | ||
* | ||
*/ | ||
public EmberMetalPickaxeItem(Properties properties) { | ||
super( | ||
ModTiers.EMBER_METAL, | ||
properties.durability(0).attributes(AxeItem.createAttributes(ModTiers.EMBER_METAL, 6, -2.8f))); | ||
ModTiers.EMBER_METAL, | ||
properties.durability(0) | ||
.attributes(AxeItem.createAttributes(ModTiers.EMBER_METAL, 6, -2.8f)) | ||
.component(DataComponents.UNBREAKABLE, new Unbreakable(true)) | ||
); | ||
} | ||
} |
9 changes: 7 additions & 2 deletions
9
src/main/java/dev/dubhe/anvilcraft/item/EmberMetalShovelItem.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 |
---|---|---|
@@ -1,15 +1,20 @@ | ||
package dev.dubhe.anvilcraft.item; | ||
|
||
import net.minecraft.core.component.DataComponents; | ||
import net.minecraft.world.item.AxeItem; | ||
import net.minecraft.world.item.ShovelItem; | ||
import net.minecraft.world.item.component.Unbreakable; | ||
|
||
public class EmberMetalShovelItem extends ShovelItem { | ||
/** | ||
* | ||
*/ | ||
public EmberMetalShovelItem(Properties properties) { | ||
super( | ||
ModTiers.EMBER_METAL, | ||
properties.durability(0).attributes(AxeItem.createAttributes(ModTiers.EMBER_METAL, 6.5f, -3f))); | ||
ModTiers.EMBER_METAL, | ||
properties.durability(0) | ||
.attributes(ShovelItem.createAttributes(ModTiers.EMBER_METAL, 6.5f, -3f)) | ||
.component(DataComponents.UNBREAKABLE, new Unbreakable(true)) | ||
); | ||
} | ||
} |
9 changes: 7 additions & 2 deletions
9
src/main/java/dev/dubhe/anvilcraft/item/EmberMetalSwordItem.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 |
---|---|---|
@@ -1,15 +1,20 @@ | ||
package dev.dubhe.anvilcraft.item; | ||
|
||
import net.minecraft.core.component.DataComponents; | ||
import net.minecraft.world.item.AxeItem; | ||
import net.minecraft.world.item.SwordItem; | ||
import net.minecraft.world.item.component.Unbreakable; | ||
|
||
public class EmberMetalSwordItem extends SwordItem { | ||
/** | ||
* | ||
*/ | ||
public EmberMetalSwordItem(Properties properties) { | ||
super( | ||
ModTiers.EMBER_METAL, | ||
properties.durability(0).attributes(AxeItem.createAttributes(ModTiers.EMBER_METAL, 8, -2.4f))); | ||
ModTiers.EMBER_METAL, | ||
properties.durability(0) | ||
.attributes(AxeItem.createAttributes(ModTiers.EMBER_METAL, 8, -2.4f)) | ||
.component(DataComponents.UNBREAKABLE, new Unbreakable(true)) | ||
); | ||
} | ||
} |