Added Stalinium Hoe, just normal for now
This commit is contained in:
@@ -19,5 +19,6 @@ public class ModItemModelProvider extends ItemModelProvider {
|
|||||||
handheldItem(ModItems.STALINIUM_SWORD.get());
|
handheldItem(ModItems.STALINIUM_SWORD.get());
|
||||||
handheldItem(ModItems.STALINIUM_AXE.get());
|
handheldItem(ModItems.STALINIUM_AXE.get());
|
||||||
handheldItem(ModItems.STALINIUM_SHOVEL.get());
|
handheldItem(ModItems.STALINIUM_SHOVEL.get());
|
||||||
|
handheldItem(ModItems.STALINIUM_HOE.get());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -32,5 +32,7 @@ public class ModItemTagProvider extends ItemTagsProvider {
|
|||||||
.add(ModItems.STALINIUM_AXE.get());
|
.add(ModItems.STALINIUM_AXE.get());
|
||||||
this.tag(ItemTags.SHOVELS)
|
this.tag(ItemTags.SHOVELS)
|
||||||
.add(ModItems.STALINIUM_SHOVEL.get());
|
.add(ModItems.STALINIUM_SHOVEL.get());
|
||||||
|
this.tag(ItemTags.HOES)
|
||||||
|
.add(ModItems.STALINIUM_HOE.get());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -29,6 +29,7 @@ public class ModCreativeModeTabs {
|
|||||||
output.accept(ModItems.STALINIUM_SWORD.get());
|
output.accept(ModItems.STALINIUM_SWORD.get());
|
||||||
output.accept(ModItems.STALINIUM_AXE.get());
|
output.accept(ModItems.STALINIUM_AXE.get());
|
||||||
output.accept(ModItems.STALINIUM_SHOVEL.get());
|
output.accept(ModItems.STALINIUM_SHOVEL.get());
|
||||||
|
output.accept(ModItems.STALINIUM_HOE.get());
|
||||||
}).build());
|
}).build());
|
||||||
|
|
||||||
public static void register(IEventBus eventBus) {
|
public static void register(IEventBus eventBus) {
|
||||||
|
|||||||
@@ -2,10 +2,7 @@ package net.krituximon.stalinium.item;
|
|||||||
|
|
||||||
import net.krituximon.stalinium.Stalinium;
|
import net.krituximon.stalinium.Stalinium;
|
||||||
import net.krituximon.stalinium.sound.ModSounds;
|
import net.krituximon.stalinium.sound.ModSounds;
|
||||||
import net.minecraft.world.item.AxeItem;
|
import net.minecraft.world.item.*;
|
||||||
import net.minecraft.world.item.Item;
|
|
||||||
import net.minecraft.world.item.ShovelItem;
|
|
||||||
import net.minecraft.world.item.SwordItem;
|
|
||||||
import net.neoforged.bus.api.IEventBus;
|
import net.neoforged.bus.api.IEventBus;
|
||||||
import net.neoforged.neoforge.registries.DeferredHolder;
|
import net.neoforged.neoforge.registries.DeferredHolder;
|
||||||
import net.neoforged.neoforge.registries.DeferredItem;
|
import net.neoforged.neoforge.registries.DeferredItem;
|
||||||
@@ -33,7 +30,11 @@ public class ModItems {
|
|||||||
|
|
||||||
public static final DeferredItem<ShovelItem> STALINIUM_SHOVEL = ITEMS.register("stalinium_shovel",
|
public static final DeferredItem<ShovelItem> STALINIUM_SHOVEL = ITEMS.register("stalinium_shovel",
|
||||||
() -> new StaliniumShovelItem(ModTiers.STALINIUM, new Item.Properties()
|
() -> new StaliniumShovelItem(ModTiers.STALINIUM, new Item.Properties()
|
||||||
.attributes(AxeItem.createAttributes(ModTiers.STALINIUM, 1.5f, -3.0f))));
|
.attributes(ShovelItem.createAttributes(ModTiers.STALINIUM, 1.5f, -3.0f))));
|
||||||
|
|
||||||
|
public static final DeferredItem<HoeItem> STALINIUM_HOE = ITEMS.register("stalinium_hoe",
|
||||||
|
() -> new StaliniumHoeItem(ModTiers.STALINIUM, new Item.Properties()
|
||||||
|
.attributes(HoeItem.createAttributes(ModTiers.STALINIUM, 1.0f, -3.0f))));
|
||||||
|
|
||||||
public static void register(IEventBus eventBus) {
|
public static void register(IEventBus eventBus) {
|
||||||
ITEMS.register(eventBus);
|
ITEMS.register(eventBus);
|
||||||
|
|||||||
@@ -0,0 +1,28 @@
|
|||||||
|
package net.krituximon.stalinium.item;
|
||||||
|
|
||||||
|
import net.minecraft.world.item.HoeItem;
|
||||||
|
import net.minecraft.world.item.Item;
|
||||||
|
import net.minecraft.world.item.ItemStack;
|
||||||
|
import net.minecraft.world.item.Tier;
|
||||||
|
|
||||||
|
public class StaliniumHoeItem extends HoeItem {
|
||||||
|
public StaliniumHoeItem(Tier tier, Item.Properties properties) {
|
||||||
|
super(tier, properties);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public int getMaxDamage(ItemStack stack) {
|
||||||
|
return 2;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public boolean isDamageable(ItemStack stack) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public boolean isDamaged(ItemStack stack) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
@@ -4,6 +4,7 @@
|
|||||||
"item.stalinium.stalinium_sword": "Stalinium Sword",
|
"item.stalinium.stalinium_sword": "Stalinium Sword",
|
||||||
"item.stalinium.stalinium_axe": "Stalinium Axe",
|
"item.stalinium.stalinium_axe": "Stalinium Axe",
|
||||||
"item.stalinium.stalinium_shovel": "Stalinium Shovel",
|
"item.stalinium.stalinium_shovel": "Stalinium Shovel",
|
||||||
|
"item.stalinium.stalinium_hoe": "Stalinium Hoe",
|
||||||
|
|
||||||
"item.stalinium.soviet_anthem_music_disc": "Soviet Anthem Music Disc",
|
"item.stalinium.soviet_anthem_music_disc": "Soviet Anthem Music Disc",
|
||||||
"item.stalinium.soviet_anthem_music_disc.desc": "Ministry of Defense of the USSR - Soviet Union national anthem",
|
"item.stalinium.soviet_anthem_music_disc.desc": "Ministry of Defense of the USSR - Soviet Union national anthem",
|
||||||
|
|||||||
Reference in New Issue
Block a user