Posted October 17, 20213 yr Hi Guys, I'm relatively new to forge modding and wanted to know how do I create a block with custom bluckitem which has its own java class?
October 17, 20213 yr Author if i us my own class, the block and the item are not linked public static final RegistryObject<Item> OILY_OAF= ITEMS.register("oily_oaf", () -> new OilyOaf(new Item.Properties().group(ModGroup.LOOTBUG_GROUP))); but if i use BlockItem, my Custom Item class is not linked to the item public static final RegistryObject<Item> OILY_OAF= ITEMS.register("oily_oaf", () -> new BlockItem(ModBlocks.OILY_OAF.get(),new Item.Properties().group(ModGroup.LOOTBUG_GROUP)));
October 17, 20213 yr Author package net.thetruescp.lootbugs.block.custom; import net.minecraft.block.Block; public class OilyOaf extends Block { public OilyOaf(Properties properties) { super(properties); } }
October 17, 20213 yr Author sorry for writing again but I have no idea what to do, the item should also be drinkable like a bucket, how should I do that when the class is already being extended with BlockItems? Edited October 17, 20213 yr by TheTrueSCP
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.