LJForge Posted October 3, 2023 Posted October 3, 2023 This is my code: private void addCreative(Register<Block> event) { if (event.getTab() == CreativeModeTabs.BUILDING_BLOCKS) event.register(EXAMPLE_BLOCK); } Cannot resolve symbol 'Register' How do I fix? I have tried the import import net.minecraftforge.registries.Register; but it doesn't work. I also have these problems on that same code: Cannot resolve method 'getTab()' Cannot resolve method 'register(RegistryObject<Block>)' Quote
Recommended Posts
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.