xiao_hua_sheng
本帖最后由 xiao_hua_sheng 于 2022-7-23 12:33 编辑

当我在MCreator调试完元素保存时,虽然没有直接弹窗或者右下变红,但进入游戏发现一把自定义剑的伤害与我在MCreator里设定的不一样,要高一点,我就觉得不对劲,之后发现有时在保存元素时,控制台会出现绿色字体的错误提示,下面是复制过来的错误报告,具体如图Executing     Gradle task: build
Build     info: MCreator 2022.1.20510, forge-1.18.2, 64-bit, 3830 MB, Windows 10,     JVM 17.0.1, JAVA_HOME: E:\MCreator\jdk, started on: 2022-07-22-19:32:58
     
>     Configure project :
The     code of this workspace uses official obfuscation mappings provided by     Mojang. These mappings fall under their associated license you should be     fully aware of.
(c)     2020 Microsoft Corporation. These mappings are provided "as-is" and you     bear the risk of using them. You may copy and use the mappings for     development purposes,
but     you may not redistribute the mappings complete and unmodified. Microsoft     makes no warranties, express or implied, with respect to the mappings     provided here.
Use     and modification of this document or the source code (in any form) of     Minecraft: Java Edition is governed by the Minecraft End User License     Agreement available
at     https://account.mojang.com/documents/minecraft_eula.
     
>     Task :compileJava
E:\Arkurum\src\main\java\net\mcreator\arkurum\block\GlatachestBlock.java:33:     错误: 程序包net.mcreator.arkurum.world.inventory不存在
import     net.mcreator.arkurum.world.inventory.GuiglatachestMenu;
                                               ^
E:\Arkurum\src\main\java\net\mcreator\arkurum\block\GlatachestBlock.java:84:     错误: 找不到符号
                   return new GuiglatachestMenu(id, inventory, new     FriendlyByteBuf(Unpooled.buffer()).writeBlockPos(pos));
                              ^
      符号: 类 GuiglatachestMenu
注:     某些输入文件使用或覆盖了已过时的 API。
注:     有关详细信息, 请使用 -Xlint:deprecation 重新编译。
注:     某些输入文件使用了未经检查或不安全的操作。
注:     有关详细信息, 请使用 -Xlint:unchecked 重新编译。
2     个错误
>     Task :compileJava FAILED
FAILURE:     Build failed with an exception.
*     What went wrong:
Execution     failed for task ':compileJava'.
>     Compilation failed; see the compiler error output for details.
*     Try:
>     Run with --stacktrace option to get the stack trace.
>     Run with --info or --debug option to get more log output.
>     Run with --scan to get full insights.
*     Get more help at https://help.gradle.org
BUILD     FAILED in 11s
1     actionable task: 1 executed
     
BUILD     FAILED
Task     completed in 12 seconds


第一页 上一页 下一页 最后一页