← Назад к ресурсам

Mixin Blacklist

Disable mixins in other mods through a config

Modrinth cursed utility

Описание

Mixin Blacklist allows disablling other mods' mixins through a config file. This is intended to be used in modpacks when a mod's mixin is causing issues and must be disabled but the mod license prohibits distributing a modified jar or you just want to avoid embedding a jar in the mrpack. **If Mixin Blacklist is used, certain mod behaviors may not work. Please do not report such issues to the original mod authors, the modpack author is responsible for this**. ## Configuration On first run a config file will be created at `config/mixinblacklist.json` - `"common"`: Mixins to disable on both client and server - `"mixinClassNames"`: A list of fully qualified mixin class names to disable, e.g. `archives.tater.dyedvoid.mixin.ItemEntityMixin` - `"targetClassNames"`: A list of fully qualified mixin target class names to disable all mixins for, e.g. `net.minecraft.item.GlassBottleItem`. - `"client"`: Mixins to disable on the client only - `"mixinClassNames"`: A list of fully qualified mixin class names to disable, e.g. `archives.tater.dyedvoid.mixin.ItemRendererMixin` - `"targetClassNames"`: A list of fully qualified mixin target class names to disable all mixins for, e.g. `net.minecraft.item.ItemRenderer`. Target class names must match the current mappings used. Outside of a dev environment, (Neo)Forge uses Mojmap and Fabric uses Intermediary. You can use [Linkie](https://linkie.shedaniel.dev/) to convert between mappings. In general, you shouldn't need to use Target Class Names in most cases. Example Config ```json { "client": { "mixinClassNames": [ "archives.tater.dyedvoid.client.mixin.ItemRendererMixin" ], "targetClassNames": [] }, "common": { "mixinClassNames": [ "archives.tater.eatbottle.mixin.ItemsMixin", "archives.tater.dyedvoid.mixin.ItemEntityMixin" ], "targetClassNames": [ "net.minecraft.item.GlassBottleItem" ] } } ``` ## Support The mod *should* work on any version as long as you are using Java 17+ as well as on Sinytra connector, even if not currently marked as supported. Please open issues if it does not work in some environments.