Added straw charge item.

This commit is contained in:
2022-01-16 17:50:55 +00:00
parent 811b993409
commit 861998df1b
2 changed files with 19 additions and 1 deletions

View File

@ -0,0 +1,17 @@
package dev.micle.totemofreviving.item;
import dev.micle.totemofreviving.TotemOfReviving;
import net.minecraft.item.Item;
import net.minecraft.item.Rarity;
public class StrawChargeItem extends Item {
private static final String NAME = "straw_charge";
public StrawChargeItem() {
super(new Properties().tab(TotemOfReviving.ITEM_GROUP).stacksTo(64).rarity(Rarity.UNCOMMON));
}
public static String getName() {
return NAME;
}
}

View File

@ -1,12 +1,13 @@
package dev.micle.totemofreviving.setup;
import dev.micle.totemofreviving.item.StrawChargeItem;
import dev.micle.totemofreviving.item.StrawTotemItem;
import net.minecraft.item.Item;
import net.minecraftforge.fml.RegistryObject;
public class ModItems {
public static RegistryObject<Item> STRAW_TOTEM = Registration.ITEMS.register(StrawTotemItem.getName(), StrawTotemItem::new);
//public static RegistryObject<Item> STRAW_CHARGE = Registration.ITEMS.register();
public static RegistryObject<Item> STRAW_CHARGE = Registration.ITEMS.register(StrawChargeItem.getName(), StrawChargeItem::new);
public static void register() {}
}