MinecraftScripterAI
Discord ↗
Link Copied to Clipboard
×
"how to create a custom item class"
/* To create a custom item class in Minecraft Forge, you need to extend the Item class and create a constructor that takes an Item.Properties argument. Here's an example: */ public class CustomItem extends Item { public CustomItem() { super(new Item.Properties().tab(ItemGroup.TAB_MISC)); } } /* Don't forget to register your custom item in your mod's main class or a dedicated registry class. */