问题标签 [minecraft-forge]

For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.

0 投票
1 回答
208 浏览

java - 我的世界错误代码

游戏输出到此结束,谁能告诉我该怎么做?谢谢!我正在使用 Minecraft 1.7.10 FML、Forge、IMSM、Treecapitator、Aether II、背包、BiblioCraft、Brewcraft、Clienthax's Chococraft、Extra Doors、Fossil Archeology、FoxLib、Galacticraft Planets、Calacticraft Core、Gilded Games Utility、iChunUtil、Instant Blocks、 Mantle、Minecraft 复活、更多附魔、AencEx、更多熔炉、小龙虾先生的家具模组、MusicCraft、RadixCore、简单飞行、StairCraft、Tails、暮光森林、Xaero 的小地图、bspkrsCore、Red Gear Core 和纹理包 Love & Tolerance

原因:java.lang.OutOfMemoryError: PermGen space Java HotSpot(TM) 64-Bit Server VM warning: E​​xception java.lang.OutOfMemoryError 发生调度信号 Unknown Signal to handler-VM 可能需要强制终止

0 投票
3 回答
261 浏览

java - minecraft forge 似乎没有调用 postInit

我正在为 minecraft mod Thaumcraft 编写一个插件,特别是一个根据文件内容向块添加方面的插件。这适用于 Minecraft 1.7.10

代码运行 preInit 方法,一切正常。但是,游戏在 postInit 方法上崩溃。我无法弄清楚它为什么会崩溃

这是崩溃报告中的堆栈跟踪:

该文件中包含以下行:

minecraft:sponge=WATER,WATER,WATER,VOID,VOID,CROP

这应该添加 3 个 WATER 方面、2 个 VOID 方面和 1 个 CROP 方面。

这是我的代码:

所以你不必计算所有这些行,崩溃似乎是由这部分代码引起的:

0 投票
0 回答
543 浏览

java - Minecraft Forge event.entity vs event.player

我是 Minecraft 改装的新手,我注意到有时,当改变玩家的动作时,他们使用

其他时候他们使用如下:

这两种方法有什么区别?

0 投票
2 回答
4058 浏览

java - Minecraft Modding Forge .isRemote() 和 worldObj

我对 minecraft modding 很陌生,在大多数情况下我了解很多,但由于某种原因,我无法理解是什么worldObj.isRemote()意思。

isRemote()如果世界是客户端或服务器端,则返回。但是,这是什么意思?我只是不明白。

0 投票
1 回答
1067 浏览

scala - scala minecraft forgemod 'gradle runClient' 给出运行时异常

我正在尝试在基于 scala 的 mod 中使用 akka。

使用“gradle runClient”进行测试时会出错,最好我可以告诉它在运行时缺少 akka 库。不过,我看不到如何添加 akka 库。

如果它有助于我的项目在这里:https ://github.com/tesract/NilCraft

任何建议将不胜感激。

谢谢。

构建等级

gradle runClient

0 投票
1 回答
1086 浏览

java - 锻造覆盖主菜单

我不得不使用 Minecraft Forge 更改 Minecraft 的主菜单。我设法更改了基本代码以将保存文件复制到 Saves 文件夹,然后加载该保存。但是当我编译它时它不起作用。我猜这是因为它是我编辑过的基类并且它没有包含在编译中。我也明白我不应该编辑基类,但它不会干扰任何东西,所以应该没问题。无论如何编译已编辑的基类,或者可能是另一种编辑主菜单的方式。我读过关于中断 GUI 的负载并用我自己的替换它,但我还没有找到任何好的方法来做到这一点。

下面是代码,稍微精简一下:net.minecraft.client.gui.GuiMainMenu.java

0 投票
1 回答
153 浏览

eclipse - 输入@SidedProxy 时出现错误。发生了什么?

我正在使用 Eclipse Mars 制作 Minecraft Mod,但在输入以下内容时出现错误:

@SidedProxy(clientSide = Reference.CLIENT_PROXY_CLASS, serverSide = Reference.SERVER_PROXY_CLASS)

我做错了什么?它说“注释类型 SidedProxy 的属性 clientSide/serverSide 未定义”。

没有它我无法运行 Minecraft 来测试我的 mod,所以我需要修复这个错误。

0 投票
1 回答
2873 浏览

position - Minecraft removed world.setblock in 1.8

I had this in 1.7.10, with no errors Until in 1.8 they removed the world.setblock

Now, how do i set a block in 1.8 in the direction the player is facing and if a block is in the way replace it with packed ice. Also how do i play a sound each time the left click is clicked

0 投票
2 回答
1055 浏览

java - 初始化错误 - 预期为“:”在行

我正在做一个项目。我收到一个错误:

预期的“:”在第 7 行第 11 列

我正在寻找错误,但我找不到。

日志:

主要的:

uraniumingot.json:

铀锭类:

0 投票
1 回答
115 浏览

java - Blocks Not Updating After Explosion

This is a modded item for Minecraft, where it should create a Rocket Launcher that blows up parts of the world using a rocket. The problem is, whenever I fire it, it creates the explosion fine, but it does not update the chunks. As in, the blocks turn invisible, but their hit detection is still there. I have tried using the update functions from all sorts of projectiles that are in the game, to no avail. Does anyone have any ideas on what I should do to fix it?

EntityRocket

Rocket

Weaponry

ItemManager

RocketLauncher