MinecraftScripterAI
Discord ↗
Link Copied to Clipboard
×
"create an item, add comments to code"
/* Here we are creating a custom item class that extends Item. The constructor takes in an Item.Properties object, which can be used to set various properties of the item. In this case, we are setting the maximum stack size to 1 and the item group to Miscellaneous. */ public class CustomItem extends Item { public CustomItem() { super(new Item.Properties().stacksTo(1).tab(ItemGroup.TAB_MISC)); } }