Jump to content

Change mods folder


Recommended Posts

Hello.I have one problem.I changed folder to download texturepacks, saves, stats and resourses but mods...

I did changing in Minecraft.class with InClassTranslater.I know, that "Forge" substitute original Minecraft.class and i write here.Please, help me!

Link to comment
Share on other sites

OMG!!!I have my own launcher. It downloads minecraft to another folder(not .minecraft). I did changes, that minecraft takes saves, texturepacks from another folder(not .minecraft  :P), but folder mods... It create at .minecraft, but i want that it creat at another foldeder

And question.How to change it?It changes in Minecraft.class (minecraft.jar/net/client/) with original client, Forge substitute Minecraft.class and i can't change it(don't know how).

Link to comment
Share on other sites

Alright, so english isn't your first language, so I am gunna try and ignore some of the failure to comunicate.

Anyways, there is a field inside of Minecraft that holds the root folder that Minecraft uses for all folders, you can use your Launcher to change that field.

I dont know which field it is off the top of my head, but its fairly straight forward if you take 10 mins to go research how the directory is obtained. If you are writing a launcher, you should have the skills to read the code and figure it out.

I do Forge for free, however the servers to run it arn't free, so anything is appreciated.
Consider supporting the team on Patreon

Link to comment
Share on other sites

Mmmm... Sory for my English, you're right...But I worked with Minecraft.class (I know that in this file, I must doing changes), and don't understand. I changed line with "minecraft" to "mine". But folder mods anyway reads in .minecraft (not .mine  :(), folders texturepacks,saves read in .mine  :). I think you can help me, because you're authors of "Forge" .

P.S. sory for my English again if I have mistakes.

P.P.S. if i don't do changes in Minecraft.class, all folders are read in .minecraft

P.P.P.S my launcher download Client.zip from FTP and unzips it in .mine

Link to comment
Share on other sites

there is a function in Minecraft something along the lines of getDataDir() or something like that.

Look into that and see how it determines the path, I know it uses a field.

What you need to do is make your launcher set that field. Then anything that uses getDataDir will get your new path.

Also, we do not support illegally distrabuting the mods/jars, which you just described.


And, DO NOT BUMP YOUR POSTS. It may result in a ban next time.

I do Forge for free, however the servers to run it arn't free, so anything is appreciated.
Consider supporting the team on Patreon

Link to comment
Share on other sites

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.

Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing

    • No registered users viewing this page.
  • Posts

    • hello there, is there any Plugin/Mod/Datapack that can create a skyblock dimension for ech player that using /is create or something. cuz i have a allthemods 9 server and i wanted to make some skyblock out of it but i dont want that every player needs to download a mod for it or anything so i want to make it like the SuperiorSkyblock plugin but it generates worlds and i need Dimensions for forge. if anyone knows how i can make this happen i thank you very much.
    • Hey everyone, I am starting a brand new Minecraft server by the name “WILZON”. This server will include game modes such as Skyblock, PVP, Survival, but it is mainly focused and based on the Survival gamemode. As of right now, the staff that will be recruited won’t be paid so this will only be volunteer work at the moment… BUT in the future when the server starts making money, the staff WILL be paid by splitting the revenue! What am I looking for?: Plugin Manager(s) Someone/People with Server knowledge Someone/People with Server experiences Someone/People who could moderate the server Builder(s) Someone who would be willing to promote/advertise (if possible) Tester(s) If you have anymore questions or are interested, DM me on Discord @wilzonn OR you can join this Server (https://discord.gg/eDwhHwygzW)
    • Damn it was good mod, sad i had to remove it, but it worked and thank you so much for your help! Also, 2 things: do you detect what mod is causing the crash by seeing which mod in the crash report is listed the most? And, this is a random question but, do worldgen mods like tectonic cause less mobs to spawn in vanilla and modded biomes? Again thanks so much for your help.
    • public class FireDot extends MobEffect { public FireDot() { super(MobEffectCategory.HARMFUL, 0x660990); getLogger().info("Test Log 999994 "); } @Override public void applyEffectTick(LivingEntity entity, int amplifier) { if (entity instanceof LivingEntity) { entity.hurt(entity.damageSources().inFire(), 0.1F + amplifier); getLogger().info("Test Log 22333 : ") } } public boolean isDurationEffectTick(int duration, int amplifier) { int tickInterval = 2; return duration % tickInterval == 0; } } this is my custom MobEffect public class ModEffects { public static final DeferredRegister<MobEffect> MOB_EFFECTS = DeferredRegister.create(ForgeRegistries.MOB_EFFECTS, DoJiJoJu.MODID); public static final RegistryObject<MobEffect> FIRE_DOT = MOB_EFFECTS.register("fire_dot", FireDot::new); public static void register(IEventBus eventBus) {MOB_EFFECTS.register(eventBus);} } and I registed in Registry ModEffects.register(modEventBus); in my Main Class ((LivingEntity) this.target).addEffect(new MobEffectInstance(ModEffects.FIRE_DOT.get(), 100, 1)); getLogger().info("Test Log 888884 " + ModEffects.FIRE_DOT.get()); I add the Effect by this way and the `Log 888884` was printed but other Logs wasn't printed. The effect of MobEffectCategory.HARMFUL, 0x660990 was visible. but the hurt code wasn't work why It doesn't work? I tested in Creative mode and solo play Thank you
  • Topics

  • Create New...

Important Information

By using this site, you agree to our Terms of Use.