mirror of
https://github.com/dragonruler1000/hdm-mod.git
synced 2025-06-29 08:29:33 -05:00
Added item tab and removed unused folder
This commit is contained in:
parent
edf1b8b2d0
commit
5f94c642db
6 changed files with 26 additions and 3 deletions
|
@ -1,7 +1,6 @@
|
|||
package us.minecraftchest2.hdm_mod.item;
|
||||
|
||||
import net.minecraft.item.Item;
|
||||
import net.minecraft.item.ItemGroup;
|
||||
import net.minecraftforge.eventbus.api.IEventBus;
|
||||
import net.minecraftforge.fml.RegistryObject;
|
||||
import net.minecraftforge.registries.DeferredRegister;
|
||||
|
@ -14,7 +13,10 @@ public class ModItems {
|
|||
DeferredRegister.create(ForgeRegistries.ITEMS, Hdm_mod.MOD_ID);
|
||||
|
||||
public static final RegistryObject<Item> DUST = ITEMS.register("dust",
|
||||
() -> new Item(new Item.Properties().isImmuneToFire().maxStackSize(65).group(ItemGroup.MATERIALS)));
|
||||
() -> new Item(new Item.Properties().isImmuneToFire().maxStackSize(63).group(ModItenGroup.HDM_ITEM_GROUP)));
|
||||
|
||||
// public static final RegistryObject<Item> OMELET = ITEMS.register("omelet",
|
||||
// () -> new Item(new Item.Properties().food()))
|
||||
|
||||
|
||||
|
||||
|
|
|
@ -0,0 +1,20 @@
|
|||
package us.minecraftchest2.hdm_mod.item;
|
||||
|
||||
import net.minecraft.item.ItemGroup;
|
||||
import net.minecraft.item.ItemStack;
|
||||
|
||||
public class ModItenGroup {
|
||||
public static final ItemGroup HDM_ITEM_GROUP = new ItemGroup("hdmModItemTab") {
|
||||
@Override
|
||||
public ItemStack createIcon()
|
||||
{
|
||||
return new ItemStack(ModItems.DUST.get());
|
||||
}
|
||||
};
|
||||
public static final ItemGroup HDM_BLOCK_GROUP = new ItemGroup("hdmModBlockTab") {
|
||||
@Override
|
||||
public ItemStack createIcon() {
|
||||
return null;
|
||||
}
|
||||
};
|
||||
}
|
|
@ -1,5 +1,6 @@
|
|||
{
|
||||
"itemGroup.hdm_mod": "HDM Mod Items",
|
||||
"itemGroup.hdmModItemTab": "HDM Mod Items",
|
||||
"itemGroup.hdmModBlockTab": "HDM Mod Blocks",
|
||||
|
||||
"item.hdm_mod.knife": "Subtle Knife",
|
||||
"item.hdm_mod.omelet": "Omelet",
|
||||
|
|
Before Width: | Height: | Size: 191 B After Width: | Height: | Size: 191 B |
Before Width: | Height: | Size: 108 B After Width: | Height: | Size: 108 B |
Before Width: | Height: | Size: 136 B After Width: | Height: | Size: 136 B |
Loading…
Add table
Add a link
Reference in a new issue