Moddingus Posted March 19, 2023 Posted March 19, 2023 Sorry if this isnt the support forum but im trying to create a creative mode tab but its telling me that "The constructer CreativeModeTab(String) is undefined" im making it like this (which is what they say to do in modding videos: public static final CreativeModeTab EPIC_TAB = new CreativeModeTab(modId) { @Override @OnlyIn(Dist.CLIENT) public ItemStack makeIcon() { return null; } }; I looked up why but couldnt find anyhting Pls help Thanks Quote
warjort Posted March 19, 2023 Posted March 19, 2023 The modern way to register CreativeModeTabs is: https://github.com/MinecraftForge/MinecraftForge/blob/f03adc840e031b0c772e07ddda4ab910e367469a/src/main/java/net/minecraftforge/event/CreativeModeTabEvent.java#L56 e.g. from the forge tests https://github.com/MinecraftForge/MinecraftForge/blob/44c689f1712fcfb7ccb13262d1c02f0a880055be/src/test/java/net/minecraftforge/debug/CreativeModeTabTest.java Quote Boilerplate: If you don't post your logs/debug.log we can't help you. For curseforge you need to enable the forge debug.log in its minecraft settings. You should also post your crash report if you have one. If there is no error in the log file and you don't have a crash report then post the launcher_log.txt from the minecraft folder. Again for curseforge this will be in your curseforge/minecraft/Install Large files should be posted to a file sharing site like https://gist.github.com You should also read the support forum sticky post.
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.