Jump to content

Recommended Posts

Posted

I'm playing on an RP server with "The Working Classes" mod.
We want to encourage specialization, but the commoner class encourages solo play.

Unless there is something I'm missing, you can't just disable a class. A mod for this would be welcomed.
Maybe an option to disable classes in the server config would be a good idea in the future.

Posted (edited)

you're on the right track

Take a look at the load order in your logs, look for "Mods, sorted by dependency: game, creative, survival"

If you're making this as a mod, try adding this in your modinfo.json file:

  "dependencies": { 
	"game": "1.20.0",
  }

 

Edited by xXx_Ape_xXx
Posted (edited)
2 hours ago, PanzerOfTheLake said:

I found that there seems to be a way to disable a class in the code. Here is the check https://github.com/anegostudios/vssurvivalmod/blob/33bbe5ac85dde831c859724d3c32c2933b3afbd9/Systems/Character/Character.cs#L307

The class has an enable boolean.

public class CharacterClass
{
    public bool Enabled = true;
    public string Code;
    public string[] Traits;
    public JsonItemStack[] Gear;
}

 

Looked into this, and this is for the 1.21 codebase, the Enabled boolean is not present in the 1.20.12 version, so this will not work.

 

	// Token: 0x02000378 RID: 888
	public class CharacterClass
	{
		// Token: 0x04000F59 RID: 3929
		public string Code;

		// Token: 0x04000F5A RID: 3930
		public string[] Traits;

		// Token: 0x04000F5B RID: 3931
		public JsonItemStack[] Gear;
	}

 

Edited by xXx_Ape_xXx
  • Like 1
Posted

@PanzerOfTheLake

Did you find a solution to your needs?

If not, I've got an unreleased mod that lets you disable any of the vanilla classes via a config file, or trough in-game settings.

Let me know if that would be of interest, and I can try to finish it asap.

  • Like 1
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.