minecraft-forge

Ubuntu Minecraft Server java.lang.ClassCastException: class jdk.internal.loader.ClassLoaders$AppClassLoader

陌路散爱 提交于 2020-11-29 19:57:44
问题 Im trying to run my modded mc server. It works on wondows but when I try to run it on ubuntu it gives me this error: saif@Saif-Ubuntu:~/Desktop/Minecraft Server$ java -Xmx2048M -Xms2048M -jar forge-1.12.2- 14.23.5.2854.jar A problem occurred running the Server launcher.java.lang.reflect.InvocationTargetException at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)

How can I get the coordinates of a block the player is looking at?

一个人想着一个人 提交于 2020-05-30 09:10:54
问题 I want to get the coordinates of the block the player is looking at. I tried to do it with: double x = player.getLookVec().getX(); double y = player.getLookVec().getY(); double z = player.getLookVec().getZ(); But somehow these numbers are always between 0, 0, 0, and 1, 1, 1, so I didn't get the coordinates of the block. So how can I get the exact coordinates of a block? More code: @Mod.EventBusSubscriber (modid = FirstMod.MOD_ID, bus = Bus.FORGE) public class RightClickBlock { @SubscribeEvent

How can I get the coordinates of a block the player is looking at?

╄→гoц情女王★ 提交于 2020-05-30 09:10:10
问题 I want to get the coordinates of the block the player is looking at. I tried to do it with: double x = player.getLookVec().getX(); double y = player.getLookVec().getY(); double z = player.getLookVec().getZ(); But somehow these numbers are always between 0, 0, 0, and 1, 1, 1, so I didn't get the coordinates of the block. So how can I get the exact coordinates of a block? More code: @Mod.EventBusSubscriber (modid = FirstMod.MOD_ID, bus = Bus.FORGE) public class RightClickBlock { @SubscribeEvent

Issues trying to mod minecraft 1.12.2 with forge. Cannot wrap and test build

那年仲夏 提交于 2020-05-28 06:06:21
问题 I cannot get a test build to run at all from eclipse. I am running on windows 10 with java openjdk version "1.8.0_242" I've followed various tutorials step-by-step, but keep getting this error. I've also tried running a fresh build that I haven't edited at all and it seems to crash with the same issue. Latest crash log. [13:36:53] [main/INFO] [GradleStart]: Running with arguments: [--userProperties, {}, --assetsDir, C:/Users/nebbu/.gradle/caches/minecraft/assets, --assetIndex, 1.12, -

Block textures and block names not loading minecraft forge

牧云@^-^@ 提交于 2019-12-24 16:48:44
问题 I am making a mod for minecraft but I can't get the textures to load: Also the names dont show up correctly (tile.Yarrite Ore.Name instead of Yarrite Ore): here is the code I used to Create the block(YarriteOre.java): package com.NoNameYetMod.common; import net.minecraft.block.Block; import net.minecraft.block.material.Material; import net.minecraft.client.renderer.texture.IIconRegister; import net.minecraft.creativetab.CreativeTabs; public class YarriteOre extends Block{ public YarriteOre

Block textures and block names not loading minecraft forge

走远了吗. 提交于 2019-12-24 16:48:00
问题 I am making a mod for minecraft but I can't get the textures to load: Also the names dont show up correctly (tile.Yarrite Ore.Name instead of Yarrite Ore): here is the code I used to Create the block(YarriteOre.java): package com.NoNameYetMod.common; import net.minecraft.block.Block; import net.minecraft.block.material.Material; import net.minecraft.client.renderer.texture.IIconRegister; import net.minecraft.creativetab.CreativeTabs; public class YarriteOre extends Block{ public YarriteOre

Minecraft Forge EntityJoinWorldEvent returns Wrong Location! Error

淺唱寂寞╮ 提交于 2019-12-23 09:58:09
问题 Using Forge 1.8.9 in Eclipse (Mars.1 Release (4.5.1)) in local development environment. I'm trying to set a player's location every time they join or re-join a world. It always works the first time (e.g. run and join the world. See first screen shot). After moving around the world a little bit, then logging out of that world and going back in (same session w/out closing down MC), the world fails to appear and in the Console. The location is the same location as in the "all OK" login. Plus

Minecraft Forge 1.8 - Loading Block Textures

我的梦境 提交于 2019-12-20 18:04:31
问题 I have just started learning Java while modding Minecraft. I have watched a tutorial on adding the blocks into the game using the Minecraft Forge API, but I have a problem. There is no longer the ".setBlockTextureName ()" method, so I don't know what to do. I have a simple block added into my game, but it has no texture and I want to add a texture to it. How would I do this for Minecraft 1.8? P.S.: If this is a duplicate, I am sorry, I only saw questions about Minecraft mobs, not textures for