winnetrie Posted March 28, 2016 Posted March 28, 2016 Hello, i'm new to modding and also this forum. I'm also new to java, but i have a basic understanding of c++. It looks alot the same in my opinion! I looked into several tutorials and learned alot in a short time. I've recently started creating my own mod and it goes pretty well atm.(been busy for 3 weeks now). I made a bunch of new stones and stairs and slabs (and yes the slabs work like they should). But now i want to know how to start for making an addon for an existing mod. I want to make an addon for Biomes O' Plenty, just because i like this mod very very much. I just don't know where to start and how? For example: I want to make stairs for let's say ashstone. I know how to make stairs, but how to load in into my mod? I hope someone can help me showing me the direction. greetz Quote Try out my new Modpack for MC 1.15.2 https://www.curseforge.com/minecraft/modpacks/terran-civilization
Ernio Posted March 28, 2016 Posted March 28, 2016 I don't really have time to dig into that mod's forum/whatever, but you should find it. Look for either API or decompiled source. For source - just add it and you are fine. For API - throw it somewhere, go to Build Path -> "Libraries -> Add JARs.... Add API.jar. Then (as any API should) you can attach source to API (find it in list and add API-src.zip/jar. Any how-to can be found on google. Add dependency to your @Mod. @Mod(dependencies = "required-after:APIModID@[1.0.0.0,);") // adding @ defines "minimal version". There are also other dependency keys - google them. Above is how to get references to actual mod. If you want mod to just run in background - throw it into /mods/. Note - you should never do both (add to /mods/ and libraries) - it will attempts to load twice. Note: There were some changes in 1.8+ regarding running obfuscated mods - still in your case you need API/decomp src. Quote 1.7.10 is no longer supported by forge, you are on your own.
winnetrie Posted April 18, 2016 Author Posted April 18, 2016 I tried a few times to add source/api. You said for source just add it, but add it where? I tried to add it like you said and i can find it in the reference library but everything inside is empty? Why is that? Here a picture: Quote Try out my new Modpack for MC 1.15.2 https://www.curseforge.com/minecraft/modpacks/terran-civilization
winnetrie Posted April 19, 2016 Author Posted April 19, 2016 Now i can see the biome o plenty mod in the reference lib, and everything is there. I can see in all classes etc etc. But when i start the game now i get this error: There was a severe problem during mod loading that has caused the game to fail cpw.mods.fml.common.LoaderException: java.lang.NoSuchMethodError: net.minecraft.client.Minecraft.func_71410_x()Lnet/minecraft/client/Minecraft; in the error i see this too: Caused by: java.lang.NoSuchMethodError: net.minecraft.client.Minecraft.func_71410_x()Lnet/minecraft/client/Minecraft; at biomesoplenty.ClientProxy.<init>(ClientProxy.java:49) Can i fix this? Quote Try out my new Modpack for MC 1.15.2 https://www.curseforge.com/minecraft/modpacks/terran-civilization
winnetrie Posted April 21, 2016 Author Posted April 21, 2016 I still need help with this. Is there information or instruction for forge modding and all the other stuff involved modding? Quote Try out my new Modpack for MC 1.15.2 https://www.curseforge.com/minecraft/modpacks/terran-civilization
winnetrie Posted April 22, 2016 Author Posted April 22, 2016 I fixed it with installing code chicken core. it does the deobf while running it. Now it works fine. How do i use now an existing block from that mod ? For example i want to make stairs from ashStone. I tried this: GameRegistry.registerBlock(ashstonestairs = new Customstairs(GameData.getBlockRegistry().getObject("BiomesOPlenty:ashStone"), 0).setBlockName("ashstonestairs"),"ashstonestairs" ).setCreativeTab(TemBlocks.extrastairs); The game starts but the block has no textures. Even when setting manually a texture with .setBlockTextureName("something") it has no texture. I made a class for the addon, here i add all the stuff i want to add when having the mod installed. I did a check in the class where i register all my own blocks if the mod is present and if yes then load all the "additions" for it. if(Loader.isModLoaded("BiomesOPlenty")){ BOPBlocksAddon.init(); } This works all fine, i just have no textures. So what am i doing wrong? Quote Try out my new Modpack for MC 1.15.2 https://www.curseforge.com/minecraft/modpacks/terran-civilization
JaredBGreat Posted April 24, 2016 Posted April 24, 2016 I fixed it with installing code chicken core. it does the deobf while running it. Now it works fine. How do i use now an existing block from that mod ? For example i want to make stairs from ashStone. I tried this: GameRegistry.registerBlock(ashstonestairs = new Customstairs(GameData.getBlockRegistry().getObject("BiomesOPlenty:ashStone"), 0).setBlockName("ashstonestairs"),"ashstonestairs" ).setCreativeTab(TemBlocks.extrastairs); The game starts but the block has no textures. Even when setting manually a texture with .setBlockTextureName("something") it has no texture. I made a class for the addon, here i add all the stuff i want to add when having the mod installed. I did a check in the class where i register all my own blocks if the mod is present and if yes then load all the "additions" for it. if(Loader.isModLoaded("BiomesOPlenty")){ BOPBlocksAddon.init(); } This works all fine, i just have no textures. So what am i doing wrong? Are you sure you have the right directory / folder and everything? The texture name would be: :modid/ + name e.g. for something mymod with a block called baddirt setBlockTextureName(":mymod/baddirt"); while if you used a subfolder it would be: :modid/ + subdirectory + name e.g. fro something with a graphic at src/main/resources/assets/mf1inmf2/textures/blocks/slate0.png setBlockTextureName(":mf1inmf2/basic/slate0"); Note that I've yet to make stairs, so I don't know about them specifically, so if its a stairs thing that's going wrong I probably can't help -- so far I've just made basic blocks and meta-block varieties, since most of my experience in modding is world gen. Quote Developer of Doomlike Dungeons.
winnetrie Posted April 25, 2016 Author Posted April 25, 2016 this is what i see in the console when i start up and load a world: [14:43:21] [main/INFO] [GradleStart]: Extra: [] [14:43:21] [main/INFO] [GradleStart]: Running with arguments: [--userProperties, {}, --assetsDir, C:/Users/Timmy/.gradle/caches/minecraft/assets, --assetIndex, 1.7.10, --accessToken, {REDACTED}, --version, 1.7.10, --tweakClass, cpw.mods.fml.common.launcher.FMLTweaker, --tweakClass, net.minecraftforge.gradle.tweakers.CoremodTweaker] [14:43:21] [main/INFO] [LaunchWrapper]: Loading tweak class name cpw.mods.fml.common.launcher.FMLTweaker [14:43:21] [main/INFO] [LaunchWrapper]: Using primary tweak class name cpw.mods.fml.common.launcher.FMLTweaker [14:43:21] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.gradle.tweakers.CoremodTweaker [14:43:21] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.common.launcher.FMLTweaker [14:43:21] [main/INFO] [FML]: Forge Mod Loader version 7.99.39.1566 for Minecraft 1.7.10 loading [14:43:21] [main/INFO] [FML]: Java is Java HotSpot 64-Bit Server VM, version 1.8.0_73, running on Windows 7:amd64:6.1, installed at C:\Program Files\Java\jdk1.8.0_73\jre [14:43:21] [main/INFO] [FML]: Managed to load a deobfuscated Minecraft name- we are in a deobfuscated environment. Skipping runtime deobfuscation [14:43:21] [main/WARN] [FML]: The coremod codechicken.core.launch.CodeChickenCorePlugin does not have a MCVersion annotation, it may cause issues with this version of Minecraft [14:43:22] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.gradle.tweakers.CoremodTweaker [14:43:22] [main/INFO] [GradleStart]: Injecting location in coremod cpw.mods.fml.relauncher.FMLCorePlugin [14:43:22] [main/INFO] [GradleStart]: Injecting location in coremod net.minecraftforge.classloading.FMLForgePlugin [14:43:22] [main/INFO] [GradleStart]: Injecting location in coremod codechicken.core.asm.MCPDeobfuscationTransformer.LoadPlugin [14:43:22] [main/INFO] [GradleStart]: Injecting location in coremod codechicken.core.launch.CodeChickenCorePlugin [14:43:22] [main/INFO] [LaunchWrapper]: Loading tweak class name cpw.mods.fml.common.launcher.FMLInjectionAndSortingTweaker [14:43:22] [main/INFO] [LaunchWrapper]: Loading tweak class name cpw.mods.fml.common.launcher.FMLDeobfTweaker [14:43:22] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.gradle.tweakers.AccessTransformerTweaker [14:43:22] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.common.launcher.FMLInjectionAndSortingTweaker [14:43:22] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.common.launcher.FMLInjectionAndSortingTweaker [14:43:22] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.relauncher.CoreModManager$FMLPluginWrapper [14:43:22] [main/ERROR] [FML]: The binary patch set is missing. Either you are in a development environment, or things are not going to work! [14:43:23] [main/ERROR] [FML]: FML appears to be missing any signature data. This is not a good thing [14:43:23] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.relauncher.CoreModManager$FMLPluginWrapper [14:43:23] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.relauncher.CoreModManager$FMLPluginWrapper [14:43:23] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.relauncher.CoreModManager$FMLPluginWrapper [14:43:23] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.common.launcher.FMLDeobfTweaker [14:43:24] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.gradle.tweakers.AccessTransformerTweaker [14:43:24] [main/INFO] [LaunchWrapper]: Loading tweak class name cpw.mods.fml.common.launcher.TerminalTweaker [14:43:24] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.common.launcher.TerminalTweaker [14:43:24] [main/INFO] [LaunchWrapper]: Launching wrapped minecraft {net.minecraft.client.main.Main} [14:43:25] [main/INFO]: Setting user: Player116 [14:43:27] [Client thread/INFO]: LWJGL Version: 2.9.1 [14:43:28] [Client thread/INFO] [sTDOUT]: [cpw.mods.fml.client.SplashProgress:start:188]: ---- Minecraft Crash Report ---- // Everything's going to plan. No, really, that was supposed to happen. Time: 25/04/16 14:43 Description: Loading screen debug info This is just a prompt for computer specs to be printed. THIS IS NOT A ERROR A detailed walkthrough of the error, its code path and all known details is as follows: --------------------------------------------------------------------------------------- -- System Details -- Details: Minecraft Version: 1.7.10 Operating System: Windows 7 (amd64) version 6.1 Java Version: 1.8.0_73, Oracle Corporation Java VM Version: Java HotSpot 64-Bit Server VM (mixed mode), Oracle Corporation Memory: 821351312 bytes (783 MB) / 1037959168 bytes (989 MB) up to 1037959168 bytes (989 MB) JVM Flags: 3 total; -Xincgc -Xmx1024M -Xms1024M AABB Pool Size: 0 (0 bytes; 0 MB) allocated, 0 (0 bytes; 0 MB) used IntCache: cache: 0, tcache: 0, allocated: 0, tallocated: 0 FML: GL info: ' Vendor: 'NVIDIA Corporation' Version: '4.5.0 NVIDIA 364.51' Renderer: 'GeForce GTX 560/PCIe/SSE2' [14:43:28] [Client thread/INFO] [MinecraftForge]: Attempting early MinecraftForge initialization [14:43:28] [Client thread/INFO] [FML]: MinecraftForge v10.13.4.1566 Initialized [14:43:28] [Client thread/INFO] [FML]: Replaced 183 ore recipies [14:43:28] [Client thread/INFO] [MinecraftForge]: Completed early MinecraftForge initialization [14:43:28] [Client thread/INFO] [FML]: Found 0 mods from the command line. Injecting into mod discoverer [14:43:28] [Client thread/INFO] [FML]: Searching C:\Users\Timmy\Desktop\modding tut\eclipse\mods for mods [14:43:28] [Client thread/INFO] [FML]: Also searching C:\Users\Timmy\Desktop\modding tut\eclipse\mods\1.7.10 for mods [14:43:34] [Client thread/INFO] [FML]: Forge Mod Loader has identified 6 mods to load [14:43:34] [Client thread/INFO] [FML]: FML has found a non-mod file CodeChickenLib-1.7.10-1.1.3.138-dev.jar in your mods directory. It will now be injected into your classpath. This could severe stability issues, it should be removed if possible. [14:43:35] [Client thread/INFO] [FML]: Attempting connection with missing mods [mcp, FML, Forge, CodeChickenCore, tem, BiomesOPlenty] at CLIENT [14:43:35] [Client thread/INFO] [FML]: Attempting connection with missing mods [mcp, FML, Forge, CodeChickenCore, tem, BiomesOPlenty] at SERVER [14:43:35] [Client thread/INFO]: Reloading ResourceManager: Default, FMLFileResourcePack:Forge Mod Loader, FMLFileResourcePack:Minecraft Forge, FMLFileResourcePack:Tim's Expansion Mod, FMLFileResourcePack:Biomes O' Plenty [14:43:35] [Client thread/INFO] [FML]: Processing ObjectHolder annotations [14:43:35] [Client thread/INFO] [FML]: Found 341 ObjectHolder annotations [14:43:35] [Client thread/INFO] [FML]: Identifying ItemStackHolder annotations [14:43:35] [Client thread/INFO] [FML]: Found 0 ItemStackHolder annotations [14:43:35] [Client thread/INFO] [FML]: Configured a dormant chunk cache size of 0 [14:43:37] [Client thread/INFO] [biomesOPlenty]: Trail info successfully received from remote. [14:43:37] [Client thread/INFO] [FML]: Applying holder lookups [14:43:37] [Client thread/INFO] [FML]: Holder lookups applied [14:43:37] [Client thread/INFO] [FML]: Injecting itemstacks [14:43:37] [Client thread/INFO] [FML]: Itemstack injection complete [14:43:37] [sound Library Loader/INFO] [sTDOUT]: [paulscode.sound.SoundSystemLogger:message:69]: [14:43:37] [sound Library Loader/INFO] [sTDOUT]: [paulscode.sound.SoundSystemLogger:message:69]: Starting up SoundSystem... [14:43:37] [Thread-9/INFO] [sTDOUT]: [paulscode.sound.SoundSystemLogger:message:69]: Initializing LWJGL OpenAL [14:43:37] [Thread-9/INFO] [sTDOUT]: [paulscode.sound.SoundSystemLogger:message:69]: (The LWJGL binding of OpenAL. For more information, see http://www.lwjgl.org) [14:43:38] [Thread-9/INFO] [sTDOUT]: [paulscode.sound.SoundSystemLogger:message:69]: OpenAL initialized. [14:43:38] [sound Library Loader/INFO] [sTDOUT]: [paulscode.sound.SoundSystemLogger:message:69]: [14:43:38] [sound Library Loader/INFO]: Sound engine started [14:43:41] [Client thread/INFO]: Created: 16x16 textures/blocks-atlas [14:43:41] [Client thread/INFO]: Created: 16x16 textures/items-atlas [14:43:41] [Client thread/ERROR] [CodeChickenCore]: Unable to do mod description scrolling due to lack of stencil buffer [14:43:41] [Client thread/INFO] [FML]: Injecting itemstacks [14:43:41] [Client thread/INFO] [FML]: Itemstack injection complete [14:43:41] [Client thread/INFO] [FML]: Forge Mod Loader has successfully loaded 6 mods [14:43:41] [Client thread/INFO]: Reloading ResourceManager: Default, FMLFileResourcePack:Forge Mod Loader, FMLFileResourcePack:Minecraft Forge, FMLFileResourcePack:Tim's Expansion Mod, FMLFileResourcePack:Biomes O' Plenty [14:43:42] [Client thread/INFO]: Created: 512x512 textures/blocks-atlas [14:43:42] [Client thread/INFO]: Created: 512x256 textures/items-atlas [14:43:42] [Client thread/INFO] [sTDOUT]: [paulscode.sound.SoundSystemLogger:message:69]: [14:43:42] [Client thread/INFO] [sTDOUT]: [paulscode.sound.SoundSystemLogger:message:69]: SoundSystem shutting down... [14:43:42] [Client thread/INFO] [sTDOUT]: [paulscode.sound.SoundSystemLogger:importantMessage:90]: Author: Paul Lamb, www.paulscode.com [14:43:42] [Client thread/INFO] [sTDOUT]: [paulscode.sound.SoundSystemLogger:message:69]: [14:43:42] [sound Library Loader/INFO] [sTDOUT]: [paulscode.sound.SoundSystemLogger:message:69]: [14:43:42] [sound Library Loader/INFO] [sTDOUT]: [paulscode.sound.SoundSystemLogger:message:69]: Starting up SoundSystem... [14:43:42] [Thread-12/INFO] [sTDOUT]: [paulscode.sound.SoundSystemLogger:message:69]: Initializing LWJGL OpenAL [14:43:42] [Thread-12/INFO] [sTDOUT]: [paulscode.sound.SoundSystemLogger:message:69]: (The LWJGL binding of OpenAL. For more information, see http://www.lwjgl.org) [14:43:42] [Thread-12/INFO] [sTDOUT]: [paulscode.sound.SoundSystemLogger:message:69]: OpenAL initialized. [14:43:43] [sound Library Loader/INFO] [sTDOUT]: [paulscode.sound.SoundSystemLogger:message:69]: [14:43:43] [sound Library Loader/INFO]: Sound engine started [14:44:41] [server thread/INFO]: Starting integrated minecraft server version 1.7.10 [14:44:41] [server thread/INFO]: Generating keypair [14:44:41] [server thread/INFO] [FML]: Injecting existing block and item data into this server instance [14:44:41] [server thread/INFO] [FML]: Applying holder lookups [14:44:41] [server thread/INFO] [FML]: Holder lookups applied [14:44:41] [server thread/INFO] [FML]: Loading dimension 0 (New World) (net.minecraft.server.integrated.IntegratedServer@7d7e292d) [14:44:41] [server thread/INFO] [FML]: Loading dimension 1 (New World) (net.minecraft.server.integrated.IntegratedServer@7d7e292d) [14:44:41] [server thread/INFO] [FML]: Loading dimension -1 (New World) (net.minecraft.server.integrated.IntegratedServer@7d7e292d) [14:44:41] [server thread/INFO]: Preparing start region for level 0 [14:44:42] [server thread/INFO]: Changing view distance to 12, from 10 [14:44:43] [Netty Client IO #0/INFO] [FML]: Server protocol version 2 [14:44:43] [Netty IO #1/INFO] [FML]: Client protocol version 2 [14:44:43] [Netty IO #1/INFO] [FML]: Client attempting to join with 6 mods : [email protected],[email protected],[email protected],[email protected],[email protected],[email protected] [14:44:43] [Netty IO #1/INFO] [FML]: Attempting connection with missing mods [] at CLIENT [14:44:43] [Netty Client IO #0/INFO] [FML]: Attempting connection with missing mods [] at SERVER [14:44:43] [server thread/INFO] [FML]: [server thread] Server side modded connection established [14:44:43] [Client thread/INFO] [FML]: [Client thread] Client side modded connection established [14:44:43] [server thread/INFO]: Player116[local:E:ef1dd6ca] logged in with entity id 412 at (32.679943133582384, 65.0, 266.68128256586186) [14:44:43] [server thread/INFO]: Player116 joined the game [14:44:48] [server thread/INFO]: Saving and pausing game... [14:44:48] [server thread/INFO]: Saving chunks for level 'New World'/Overworld [14:44:48] [server thread/INFO]: Saving chunks for level 'New World'/Nether [14:44:48] [server thread/INFO]: Saving chunks for level 'New World'/The End in my opinion nothing special. As for the texture i do not apply 1, because i make stairs out of that block and that block has a texture. At least this works for my own blocks. If i change the biome o plenty block into 1 of my own blocks or 1 of minecraft, it then works. But just in case i tested it with supplying a texture of my own and also tested it with supplying the texture it from BOP. It also see no error saying it has no texture. So somehow it knows the texture but does not apply it. Quote Try out my new Modpack for MC 1.15.2 https://www.curseforge.com/minecraft/modpacks/terran-civilization
winnetrie Posted April 25, 2016 Author Posted April 25, 2016 So i tried something new, based on some info i found. public static final void init(){ GameRegistry.registerBlock(ashstonestairs = new Customstairs(getBlock("BiomesOPlenty:ashStone"), 0).setBlockName("ashstonestairs"),"ashstonestairs" ).setCreativeTab(TemBlocks.extrastairs); } public static Block getBlock(String name) { Block block = (Block) Block.blockRegistry.getObject(name); if (block == null || block == Blocks.air) throw new NullPointerException("Could not find any blocks named " + name); return block; } But now it gives me that error, wich is weird because the block IS there. If i try to supply a block from minecraft or 1 of mine it works! What am i doing wrong? Why can't it find the block, i'm very sure the name is correct. I can also find the block ingame in the bop tab. EDIT: I tried initializing it in the postinit of my proxy, because you never know and it worked... package winnetrie.tem; import winnetrie.tem.block.BOPBlocksAddon; import winnetrie.tem.block.TemBlocks; import winnetrie.tem.block.ColoredSlab; import winnetrie.tem.crafting.TemRecipes; import winnetrie.tem.item.TemItems; import winnetrie.tem.item.TemTools; import cpw.mods.fml.common.Loader; import cpw.mods.fml.common.event.FMLInitializationEvent; import cpw.mods.fml.common.event.FMLPostInitializationEvent; import cpw.mods.fml.common.event.FMLPreInitializationEvent; import cpw.mods.fml.common.registry.GameRegistry; public class CommonProxy { public void preInit(FMLPreInitializationEvent event) { TemItems.init(); TemBlocks.init(); TemTools.init(); } public void init(FMLInitializationEvent event) { TemRecipes.init(); GameRegistry.registerWorldGenerator(new ChalkStoneGenerator(), 1); } public void postInit(FMLPostInitializationEvent event) { if(Loader.isModLoaded("BiomesOPlenty")){ BOPBlocksAddon.init(); } } } I have all my own block in the preinit Why do i have to put the addon block in the postinit to let it work? Is this because the mod has to be loaded first before you can qeue something? It now works but if something is still not good or wrong i'll be happy to hear it. Quote Try out my new Modpack for MC 1.15.2 https://www.curseforge.com/minecraft/modpacks/terran-civilization
JaredBGreat Posted April 25, 2016 Posted April 25, 2016 Ah! Now I know what's happening, though should have thought of it before. Its about the order the mods load. Your mod was being loaded before BoP, so the BoP resources weren't there yet. By moving it to post init it insured that all other mods had been at least loaded (and should have gone through pre-init and init as well). By putting it in pre-init it meant that some mods might not even have been loaded. You should try defining and registering blocks in init -- technically pre-init is for things like reading in config files and setting options. Init is for initializing your main content, like including blocks, and post init is there to allow for inter-mod compatibility, by allowing things to be done after other mods have initialized. Register in init should work, since BoP resources should be loaded by then, but if not you can always go back to post-init. But doing this in pre-init was not the correct place and probably cause the problem. EDIT: The reason post-init might not be the best place is that it could cause problem if another mod wants to use your block -- for example, I have Doomlike Dungeons read in themes in post-init so blocks from other mods can be used -- if you're block didn't exist yet then my mod might crash if someone had added it to a theme. Quote Developer of Doomlike Dungeons.
Choonster Posted April 25, 2016 Posted April 25, 2016 Blocks and items should be registered in preInit, not init. Use the dependencies attribute of your @Mod annotation (as Ernio said) to ensure your mod loads after BoP. Edit: It was Ernio who originally mentioned the dependencies attribute, not diesieben07 as I said previously. Quote Please don't PM me to ask for help. Asking your question in a public thread preserves it for people who are having the same problem in the future.
winnetrie Posted April 26, 2016 Author Posted April 26, 2016 Use the dependencies attribute of your @Mod annotation (as diesieben07 said) to ensure your mod loads after BoP. wouldn't that make my mod depending on BOP? If so, i don't want that. My mod is a mod on his own, but whenever BOP is installed too you have the extra stuff Quote Try out my new Modpack for MC 1.15.2 https://www.curseforge.com/minecraft/modpacks/terran-civilization
JaredBGreat Posted April 26, 2016 Posted April 26, 2016 Use the dependencies attribute of your @Mod annotation (as diesieben07 said) to ensure your mod loads after BoP. wouldn't that make my mod depending on BOP? If so, i don't want that. My mod is a mod on his own, but whenever BOP is installed too you have the extra stuff That is true. If your mod really is an add-on it should have the other as a dependency, but if its not that's a problem. I know there is a way to make a mod a "soft" dependency, that doesn't require the other but loads after it because Lycanite did that with my mod -- but I don't know how (its something I've been wanting to learn myself). But if its not technically an add-on, if its its own mod, it really shouldn't have a hard dependency. Quote Developer of Doomlike Dungeons.
winnetrie Posted April 26, 2016 Author Posted April 26, 2016 before:xyz means "load before xyz if it present" required-before:xyz "load before xyz and fail if it's missing" Same with after. Ow,this is nice. I didn't know you can do "before" and "after" alone. I always thought it has to be "required-after" or "required-before". thank you very much!! Seems to work all fine now! Quote Try out my new Modpack for MC 1.15.2 https://www.curseforge.com/minecraft/modpacks/terran-civilization
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.