Skip to content

Instantly share code, notes, and snippets.

@LatvianModder
Last active July 16, 2019 14:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save LatvianModder/715a7259379cff333fdae0a6c1f6791a to your computer and use it in GitHub Desktop.
Save LatvianModder/715a7259379cff333fdae0a6c1f6791a to your computer and use it in GitHub Desktop.
FTBTweaks

FTBTweaks

FTBTweaks overrides normal CraftTweaker script loading, and instead loads scripts based on the packmode, e.g. expert or normal

1. Default packmodes.json file

Packmodes config file lives in modpack/packmodes.json, in your Minecraft instance directory

2. Adding a new packmode

Edit packmodes.json. By default you should see:

{
  "modes": [
    "default"
  ],
  "default": "default"
}

Let's say this pack will have 2 modes - normal and expert, and by default we want normal to be used. The json should look like this:

{
  "modes": [
    "normal",
    "expert"
  ],
  "default": "normal"
}

Now create /modpack/normal/scripts/ and /modpack/expert/scripts/ folders, if they don't exist already. Put your .zs scripts in the scripts folders.

3. Ingame commands

Run /packmode get to display current mode. It should be normal Run /packmode list to display all modes. It should be normal and expert Run /packmode set expert to change the mode to expert (You must be OP to run this command) If the commands don't work, try with /ftb prefix, e.g. /ftb packmode list

@frosztbyte
Copy link

So simple, and yet so awesome. A hearty and sincere thank you from California to Latvia and the world's greatest Latvian, LatvianModder, of course! xP

@vizthex123
Copy link

Thank you so much! Usually guides aren't ever well-written so they get confusing, but this one was really well done.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment