本帖最后由 PercyDan 于 2021-2-17 20:05 编辑 
https://pastebin.com/T3wM3Wbn
编译报错
复制代码
目标class也找得到

https://pastebin.com/T3wM3Wbn
编译报错
- D:\Dev\McMod\RandomTitle-Forge\src\main\java\me\PercyDan\RandomTitle\Mixins\MixinMinecraft.java:27: No obfuscation mapping for @Inject target getWindowTitle
 
-         @Inject(method = "getWindowTitle", at = @At("HEAD"), cancellable = true)
 
- ^
目标class也找得到

盲猜没在 build.gradle 里引用 MixinGradle
你没有设置反混淆表
火车撞鸟 发表于 2021-2-17 16:59
盲猜没在 build.gradle 里引用 MixinGradle
引用了
-     dependencies {
 
-         classpath group: 'net.minecraftforge.gradle', name: 'ForgeGradle', version: '3.+', changing: true
 
-         classpath 'org.spongepowered:mixingradle:0.6-SNAPSHOT'
 
- }
洞穴夜莺 发表于 2021-2-17 17:01
你没有设置反混淆表
怎么设置?之前Fabric直接build就行了Forge不会
 本帖最后由 火车撞鸟 于 2021-2-17 19:01 编辑 
请引用 MixinGradle-0.7 版本
并且在 build.gradle 里写
复制代码
以及在你的 mixin json 配置文件里写加一句
复制代码
请引用 MixinGradle-0.7 版本
并且在 build.gradle 里写
 
- mixin {
 
-   add sourceSets.main, "mixins.example.refmap.json"
 
- }
 
以及在你的 mixin json 配置文件里写加一句
 
- "refmap": "mixins.example.refmap.json"
 
 本帖最后由 PercyDan 于 2021-2-17 19:11 编辑 
PercyDan 发表于 2021-2-17 19:06
Build file 'D:\Dev\McMod\RandomTitle-Forge\build.gradle' line: 160
A problem occurred evaluating ...
你估计也没在 build.gradle 里写
 
- apply plugin: 'org.spongepowered.mixin'
 
火车撞鸟 发表于 2021-2-17 19:08
你估计也没在 build.gradle 里写
- Downloading: https://resources.download.minecraft.net/d7/d7637457a9290d5e10d965f3bea4a4e19937f87b Asset: minecraft/sounds/entity/player/hurt/drown4.ogg
 
- Downloading: https://resources.download.minecraft.net/50/5041867a91a67cec2fa1ab572c351d2796a6f050 Asset: minecraft/sounds/entity/rabbit/attack1.ogg
 
- minecraft/sounds/entity/rabbit/attack1.ogg Failed.
 
- java.net.SocketException: Connection reset
浏览器能下载,gradle下不了
