简体   繁体   English

如何设置 Minecraft Mixins?

[英]How can I setup Minecraft Mixins?

I am trying to make kind of a Minecraft Client, just enough features to say it is, using Mixins, but I can't seem to setup the workspace.我正在尝试使用 Mixins 制作一种 Minecraft 客户端,功能刚好足以说明它是,但我似乎无法设置工作区。 I have looked everywhere yet I can't find a clear answer.我到处找,但我找不到明确的答案。 I have 1 year experience in Java making SpigotMC plugins and I messed around in MCP when I was bored and made things but you can't publish it so it didnt go anywhere.我在 Java 制作 SpigotMC 插件方面有 1 年的经验,当我感到无聊并制作东西时,我在 MCP 中捣乱,但您无法发布它,所以它没有去任何地方。 Can someone please help me because I have been looking everywhere on the internet and I couldn't find an answer.有人可以帮助我,因为我一直在互联网上到处寻找,但找不到答案。

I have tried following the readme.md on the Sponge Mixins GitHub but it wasn't as clear of an answer but it didn't work and also I don't think that is the right place to find how to set it up.我曾尝试在 Sponge Mixins GitHub 上关注 readme.md,但答案并不明确,但它不起作用,而且我认为这不是找到如何设置它的正确位置。

It really depends on what version of Minecraft you are looking for, you will have to use Gradle anyway.这实际上取决于您要寻找的 Minecraft 版本,无论如何您都必须使用 Gradle。 It's kind of very complicated.这有点非常复杂。 For 1.14.4 I would use fabric(its a mod loader like a forge, it doesn't use MCP mappings tho, due to copyright, hopefully soon it will use Mojang 1.15 mappings), https://fabricmc.net/wiki/tutorial:setup .对于 1.14.4,我会使用 fabric(它是一个像伪造的 mod 加载器,它不使用 MCP 映射,由于版权,希望很快它会使用 Mojang 1.15 映射), https://fabricmc.net/wiki/教程:设置 This is VERY easy to set up, just download the example mod from their Github, and run the gradlew command.这很容易设置,只需从他们的 Github 下载示例 mod,然后运行gradlew命令。 For 1.12.2-1.14.4 like a client version, I would suggest looking at baritones Github, https://github.com/cabaletta/baritone , you will have to know a bit about Gradle to remove their custom stuff, etc. For a "plain" 1.12.2 forge setup I would suggest looking at https://github.com/zeroeightysix/KAMI , Mixins aren't available for forge 1.13.2+ as of right now so you cant use forge for those versions.对于 1.12.2-1.14.4 之类的客户端版本,我建议查看男中音 Github, https://github.com/cabaletta/baritone ,您必须了解一些 Gradle 才能删除他们的自定义内容等。对于“普通” 1.12.2 forge 设置,我建议查看https://github.com/zeroeightysix/KAMI ,截至目前,Mixin 不可用于 forge 1.13.2+,因此您不能将 forge 用于这些版本. I know this is a bit late but maybe for someone in the future, or even you.我知道这有点晚了,但也许对于未来的某个人,甚至是你。 Personally I only use fabric(out of the 3 examples I sent), I set them up differently my self, but you definitely will now be able to setup mixins.就我个人而言,我只使用结构(在我发送的 3 个示例中),我自己对它们进行了不同的设置,但是您现在绝对可以设置 mixins。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM