Ecliptic Seasons

Ecliptic Seasons

17.4k Downloads

Adjust mod code behavior for modpack use

Closed this issue · 5 comments

commented

我想知道以下情况是否被允许
在整合包的下载中,模组依旧通过正规渠道(即Curseforge)进行下载,但是整合包内会附上一个文件夹,里面包含我自己编写的用于替换模组部分代码的文件和一个讲述如何替换的文本。

您在先前跟我提到过的使用mixin这个方式进行替换,确实是个高效的方法,也能很好的保护你们的模组。但是我是个这方面90%的小白,我在尝试学习了两小时后鲜有进展 :(

所以如果你们依然不允许这样的行为,那么我会继续学习使用mixin。还有,感谢bug修复 :)

commented

https://www.mcmod.cn/class/13571.html

更推荐使用绷带模组进行修补。

以及你还是没说你觉得有啥问题。我们的数据包如果设计出来,一般都是可以覆盖代码逻辑的。

mixin是标准流程了,你要是搞整合包的话,最好了解一下。不然很多事情做不了。

Using the Hotai mod.

Also, you still haven't said what you think the issue is.

Mixin has become a standard workflow — if you're working on modpacks, you'd better get familiar with it. Otherwise, there are many things you just won’t be able to do.

commented

https://www.mcmod.cn/class/13571.html

更推荐使用绷带模组进行修补。

以及你还是没说你觉得有啥问题。我们的数据包如果设计出来,一般都是可以覆盖代码逻辑的。

mixin是标准流程了,你要是搞整合包的话,最好了解一下。不然很多事情做不了。

Using the Bandage mod.

Also, you still haven't said what you think the issue is.

Mixin has become a standard workflow — if you're working on modpacks, you'd better get familiar with it. Otherwise, there are many things you just won’t be able to do.

是的,数据包确实能够覆盖,但是并不完全,可能由于1.20.1模组仍然处于测试阶段。
例如胡萝卜,原本是春秋。但是倘若改成单一的春or夏or秋or冬,都能够覆盖。
但是一旦涉及到两个或以上的适宜季节,则会覆盖失败。

commented

标签你要用replace,这是mc标签的缺陷。没法覆盖,多覆盖只会叠加。

You need to use replace for tags — this is a limitation of Minecraft's tag system.

或者你写个crop数据包,应该优先级是最高的。

or you can write a crop datapack — that should have the highest priority.

commented

https://minecraft.wiki/w/Tag

你可以看看wiki

commented

标签你要用replace,这是mc标签的缺陷。没法覆盖,多覆盖只会叠加。

You need to use replace for tags — this is a limitation of Minecraft's tag system.

或者你写个crop数据包,应该优先级是最高的。

or you can write a crop datapack — that should have the highest priority.

你是对的,这波我的问题,我没有在tags下面的每个json文件进行replace的布尔值编写。:(
真的十分感谢,数据包已经正常运作了!XD