Posted October 12, 201410 yr So, I'm creating a mod that makes minecraft a bit more realistic. To do that I am removing all vanilla minecraft recipe's with this piece of code: CraftingManager.getInstance().getRecipeList().clear(); But there is a slight problem: this code also removes modded recipe's... Although this mod is not supposed to be played with other mods, it would still be nice for people who really want to play with other mods. So: is there a way to remove vanilla minecraft recipe's only? I never post on the forums, but when I do, I have no clue how to do a certain thing.
October 12, 201410 yr Just do this before registering new recipes. All new recipes will enter clear list. You can try in @Mod use depedencies:"required-before:minecraft-forge" Check out my mods: BTAM Armor sets Avoid Exploding Creepers Tools compressor Anti Id Conflict Key bindings overhaul Colourfull blocks Invisi Zones
October 13, 201410 yr Author You can try in @Mod use depedencies:"required-before:minecraft-forge" I never used dependencies in the @Mod annotation, how do I use it? I never post on the forums, but when I do, I have no clue how to do a certain thing.
October 13, 201410 yr Recipes are normally loaded in post-Init, right? try clearing the list in pre-Init or Init. I ask complicated questions, and apparently like to write really long detailed posts. But I also help others when I can.
October 13, 201410 yr 1st: remove recipes in per-init if doesn't nelp: you have something like @Mod(modid="sscp", name="SSCP content editor", version="0.1") after version add: dependencies="required-before:minecraft-forge" that means that when fml will go trwow classes with @Mod will read dependencies. It's how core-mods works. also there is: before: will load before loading the mod or load normally when there is no this mod required-before: will load before and only if mod exists after: will load after loading the mod or load normally when there is no this mod required-after: will load after and only if mod exists after them write modid, Example: sscp-core the code you obtained may look like this: @Mod(modid="sscp", name="SSCP content editor", version="0.1", dependencies="required-before:minecraft-forge") or also you can try with @Mod(modid="sscp", name="SSCP content editor", version="0.1", dependencies="required-before:minecraft") But this would probably crash minecraft Check out my mods: BTAM Armor sets Avoid Exploding Creepers Tools compressor Anti Id Conflict Key bindings overhaul Colourfull blocks Invisi Zones
October 13, 201410 yr MinecraftForge isn't a mod though, it just has a dummy mod container. I don't think you can load before it. BEFORE ASKING FOR HELP READ THE EAQ! I'll help if I can. Apologies if I do something obviously stupid. If you don't know basic Java yet, go and follow these tutorials.
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.