PanzerOfTheLake Posted July 24, 2025 Report Posted July 24, 2025 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.
PanzerOfTheLake Posted July 24, 2025 Author Report Posted July 24, 2025 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; }
PanzerOfTheLake Posted July 24, 2025 Author Report Posted July 24, 2025 I tried the following, but this does not work. and does not give any errors or warnings. [ { "op": "add", "path": "/0/enabled", "value": "false", "file": "game:config/characterclasses.json" } ]
xXx_Ape_xXx Posted July 24, 2025 Report Posted July 24, 2025 (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 July 24, 2025 by xXx_Ape_xXx
xXx_Ape_xXx Posted July 24, 2025 Report Posted July 24, 2025 (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 July 24, 2025 by xXx_Ape_xXx 1
xXx_Ape_xXx Posted July 28, 2025 Report Posted July 28, 2025 @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. 1
PanzerOfTheLake Posted July 29, 2025 Author Report Posted July 29, 2025 @xXx_Ape_xXx I'm definitely interested.
xXx_Ape_xXx Posted July 29, 2025 Report Posted July 29, 2025 @PanzerOfTheLake Here you go: Disable Classes Msg me if you have any trouble or need help getting it working. 1
Recommended Posts