跳到正文

Mixin Blacklist

Disable mixins in other mods through a config

收藏

介绍

中文介绍正在准备中,下面暂时显示原文。

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 to convert between mappings. In general, you shouldn’t need to use Target Class Names in most cases.

Example Config
{
  "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.

常见问题

Mixin Blacklist 支持哪些 Minecraft 版本?

Mixin Blacklist 支持 Minecraft Java 版 1.14–26.3,共 48 个版本,可用的加载器:Fabric / Quilt。下载时注意选择和你游戏版本一致的文件。

Mixin Blacklist 怎么安装?

先用 PCL2 或 HMCL 启动器安装对应版本的 Fabric / Quilt,再把下载的 .jar 文件放进游戏目录的 mods 文件夹,重新启动游戏即可。开启了版本隔离的,mods 文件夹在 versions/版本名 下面。运行环境:客户端 / 服务端。

评论

登录后评论和评分

ThePotatoArchivist 的其他作品

查看全部 →