Jump to content

Recommended Posts

Posted

Working on my first mod and ran into an issue and have yet to find a solution after working all night on it.

 

I get a ticking entity crash when I try to place the iron chest cart and an exception in world tick crash when I try to break it.  Otherwise it seems to work fine.  The cart is there and usable if I log back in after the first crash, and the items are on the ground as expected after the second one.

 

My other entity seems to work just fine without any issues (Ender chest cart)

 

If the crash reports are needed, let me know and  I will add them.

 

Source code can be found at: https://github.com/ScottDTA/ExtraCarts-1.6.4

 

Thanks for any help.

Posted

Crash report for when placing the cart

 

 

---- Minecraft Crash Report ----

// My bad.

 

Time: 7/13/14 11:13 AM

Description: Ticking entity

 

java.lang.ArrayIndexOutOfBoundsException: 36

at net.minecraft.entity.item.EntityMinecartContainer.func_70301_a(EntityMinecartContainer.java:74)

at net.minecraft.inventory.Container.func_94526_b(SourceFile:541)

at net.minecraft.entity.item.EntityMinecartContainer.func_94101_h(EntityMinecartContainer.java:302)

at net.minecraft.entity.item.EntityMinecart.func_94091_a(EntityMinecart.java:666)

at net.minecraft.entity.item.EntityMinecart.func_70071_h_(EntityMinecart.java:387)

at net.minecraft.world.World.func_72866_a(World.java:2350)

at net.minecraft.world.WorldServer.func_72866_a(WorldServer.java:719)

at net.minecraft.world.World.func_72870_g(World.java:2311)

at net.minecraft.world.World.func_72939_s(World.java:2157)

at net.minecraft.world.WorldServer.func_72939_s(WorldServer.java:550)

at net.minecraft.server.MinecraftServer.func_71190_q(MinecraftServer.java:668)

at net.minecraft.server.MinecraftServer.func_71217_p(MinecraftServer.java:587)

at net.minecraft.server.integrated.IntegratedServer.func_71217_p(IntegratedServer.java:129)

at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:484)

at net.minecraft.server.ThreadMinecraftServer.run(SourceFile:583)

 

 

A detailed walkthrough of the error, its code path and all known details is as follows:

---------------------------------------------------------------------------------------

 

-- Head --

Stacktrace:

at net.minecraft.entity.item.EntityMinecartContainer.func_70301_a(EntityMinecartContainer.java:74)

at net.minecraft.inventory.Container.func_94526_b(SourceFile:541)

at net.minecraft.entity.item.EntityMinecartContainer.func_94101_h(EntityMinecartContainer.java:302)

at net.minecraft.entity.item.EntityMinecart.func_94091_a(EntityMinecart.java:666)

at net.minecraft.entity.item.EntityMinecart.func_70071_h_(EntityMinecart.java:387)

at net.minecraft.world.World.func_72866_a(World.java:2350)

at net.minecraft.world.WorldServer.func_72866_a(WorldServer.java:719)

at net.minecraft.world.World.func_72870_g(World.java:2311)

 

-- Entity being ticked --

Details:

Entity Type: extracarts.EntityIronChestCart (dta.extracarts.entities.EntityIronChestCart)

Entity ID: 33493

Entity Name: entity.extracarts.EntityIronChestCart.name

Entity's Exact location: 346.50, 4.35, 89.50

Entity's Block location: World: (346,4,89), Chunk: (at 10,0,9 in 21,5; contains blocks 336,0,80 to 351,255,95), Region: (0,0; contains chunks 0,0 to 31,31, blocks 0,0,0 to 511,255,511)

Entity's Momentum: 0.00, -0.04, 0.00

Stacktrace:

at net.minecraft.world.World.func_72939_s(World.java:2157)

at net.minecraft.world.WorldServer.func_72939_s(WorldServer.java:550)

 

-- Affected level --

Details:

Level name: New World

All players: 1 total; [EntityPlayerMP['Scott_DTA'/39, l='New World', x=345.98, y=4.00, z=87.15]]

Chunk stats: ServerChunkCache: 625 Drop: 0

Level seed: 3548789212488979737

Level generator: ID 01 - flat, ver 0. Features enabled: true

Level generator options:

Level spawn location: World: (338,4,83), Chunk: (at 2,0,3 in 21,5; contains blocks 336,0,80 to 351,255,95), Region: (0,0; contains chunks 0,0 to 31,31, blocks 0,0,0 to 511,255,511)

Level time: 2259 game time, 2259 day time

Level dimension: 0

Level storage version: 0x04ABD - Anvil

Level weather: Rain time: 97494 (now: false), thunder time: 18112 (now: false)

Level game mode: Game mode: creative (ID 1). Hardcore: false. Cheats: true

Stacktrace:

at net.minecraft.server.MinecraftServer.func_71190_q(MinecraftServer.java:668)

at net.minecraft.server.MinecraftServer.func_71217_p(MinecraftServer.java:587)

at net.minecraft.server.integrated.IntegratedServer.func_71217_p(IntegratedServer.java:129)

at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:484)

at net.minecraft.server.ThreadMinecraftServer.run(SourceFile:583)

 

-- System Details --

Details:

Minecraft Version: 1.6.4

Operating System: Windows 7 (amd64) version 6.1

Java Version: 1.7.0_60, Oracle Corporation

Java VM Version: Java HotSpot 64-Bit Server VM (mixed mode), Oracle Corporation

Memory: 2508973440 bytes (2392 MB) / 3120562176 bytes (2976 MB) up to 3120562176 bytes (2976 MB)

JVM Flags: 5 total; -XX:HeapDumpPath=MojangTricksIntelDriversForPerformance_javaw.exe_minecraft.exe.heapdump -Xms3072m -Xmx3072m -XX:PermSize=512m -XX:NewRatio=3

AABB Pool Size: 826 (46256 bytes; 0 MB) allocated, 750 (42000 bytes; 0 MB) used

Suspicious classes: FML and Forge are installed

IntCache: cache: 0, tcache: 0, allocated: 0, tallocated: 0

FML: MCP v8.11 FML v6.4.49.965 Minecraft Forge 9.11.1.965 5 mods loaded, 5 mods active

mcp{8.09} [Minecraft Coder Pack] (minecraft.jar) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available

FML{6.4.49.965} [Forge Mod Loader] (minecraftforge-9.11.1.965.jar) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available

Forge{9.11.1.965} [Minecraft Forge] (minecraftforge-9.11.1.965.jar) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available

IronChest{5.4.1.702} [iron Chest] (ironchest-universal-1.6.4-5.4.1.702.zip) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available

extracarts{a0.0.1} [Extra Carts] (extracarts-1.6.4-a0.0.1.jar) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available

Profiler Position: N/A (disabled)

Vec3 Pool Size: 117 (6552 bytes; 0 MB) allocated, 87 (4872 bytes; 0 MB) used

Player Count: 1 / 8; [EntityPlayerMP['Scott_DTA'/39, l='New World', x=345.98, y=4.00, z=87.15]]

Type: Integrated Server (map_client.txt)

Is Modded: Definitely; Client brand changed to 'fml,forge'

 

 

 

Crash report when breaking the cart

 

 

---- Minecraft Crash Report ----

// Quite honestly, I wouldn't worry myself about that.

 

Time: 7/13/14 11:30 AM

Description: Exception in world tick

 

java.lang.ArrayIndexOutOfBoundsException: 36

at net.minecraft.entity.item.EntityMinecartContainer.func_70301_a(EntityMinecartContainer.java:74)

at net.minecraft.entity.item.EntityMinecartContainer.func_70106_y(EntityMinecartContainer.java:202)

at net.minecraft.world.World.func_72900_e(World.java:1616)

at net.minecraft.client.multiplayer.WorldClient.func_72900_e(WorldClient.java:200)

at net.minecraft.client.multiplayer.WorldClient.func_73028_b(WorldClient.java:269)

at net.minecraft.client.multiplayer.NetClientHandler.func_72491_a(NetClientHandler.java:673)

at net.minecraft.network.packet.Packet29DestroyEntity.func_73279_a(SourceFile:39)

at net.minecraft.network.MemoryConnection.func_74428_b(MemoryConnection.java:89)

at net.minecraft.client.multiplayer.NetClientHandler.func_72551_d(NetClientHandler.java:281)

at net.minecraft.client.multiplayer.WorldClient.func_72835_b(WorldClient.java:99)

at net.minecraft.client.Minecraft.func_71407_l(Minecraft.java:1930)

at net.minecraft.client.Minecraft.func_71411_J(Minecraft.java:910)

at net.minecraft.client.Minecraft.func_99999_d(Minecraft.java:838)

at net.minecraft.client.main.Main.main(SourceFile:101)

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)

at java.lang.reflect.Method.invoke(Unknown Source)

at net.minecraft.launchwrapper.Launch.launch(Launch.java:131)

at net.minecraft.launchwrapper.Launch.main(Launch.java:27)

 

 

A detailed walkthrough of the error, its code path and all known details is as follows:

---------------------------------------------------------------------------------------

 

-- Head --

Stacktrace:

at net.minecraft.entity.item.EntityMinecartContainer.func_70301_a(EntityMinecartContainer.java:74)

at net.minecraft.entity.item.EntityMinecartContainer.func_70106_y(EntityMinecartContainer.java:202)

at net.minecraft.world.World.func_72900_e(World.java:1616)

at net.minecraft.client.multiplayer.WorldClient.func_72900_e(WorldClient.java:200)

at net.minecraft.client.multiplayer.WorldClient.func_73028_b(WorldClient.java:269)

at net.minecraft.client.multiplayer.NetClientHandler.func_72491_a(NetClientHandler.java:673)

at net.minecraft.network.packet.Packet29DestroyEntity.func_73279_a(SourceFile:39)

at net.minecraft.network.MemoryConnection.func_74428_b(MemoryConnection.java:89)

at net.minecraft.client.multiplayer.NetClientHandler.func_72551_d(NetClientHandler.java:281)

 

-- Affected level --

Details:

Level name: MpServer

All players: 1 total; [EntityClientPlayerMP['Scott_DTA'/42, l='MpServer', x=345.98, y=5.62, z=87.15]]

Chunk stats: MultiplayerChunkCache: 441

Level seed: 0

Level generator: ID 01 - flat, ver 0. Features enabled: false

Level generator options:

Level spawn location: World: (338,4,83), Chunk: (at 2,0,3 in 21,5; contains blocks 336,0,80 to 351,255,95), Region: (0,0; contains chunks 0,0 to 31,31, blocks 0,0,0 to 511,255,511)

Level time: 2436 game time, 2436 day time

Level dimension: 0

Level storage version: 0x00000 - Unknown?

Level weather: Rain time: 0 (now: false), thunder time: 0 (now: false)

Level game mode: Game mode: survival (ID 0). Hardcore: false. Cheats: false

Forced entities: 37 total; [EntitySlime['Slime'/1, l='MpServer', x=271.13, y=4.00, z=138.53], EntityVillager['Villager'/2, l='MpServer', x=302.06, y=4.00, z=83.50], EntityVillager['Villager'/3, l='MpServer', x=301.50, y=4.00, z=77.88], EntitySheep['Sheep'/4, l='MpServer', x=301.50, y=4.00, z=127.50], EntitySheep['Sheep'/5, l='MpServer', x=294.21, y=4.00, z=125.38], EntitySheep['Sheep'/6, l='MpServer', x=296.19, y=4.00, z=132.81], EntitySheep['Sheep'/7, l='MpServer', x=296.91, y=4.00, z=134.84], EntitySlime['Slime'/8, l='MpServer', x=314.01, y=4.33, z=7.66], EntityVillager['Villager'/9, l='MpServer', x=312.75, y=4.00, z=67.50], EntityVillager['Villager'/10, l='MpServer', x=304.71, y=4.00, z=76.50], EntityVillager['Villager'/11, l='MpServer', x=314.69, y=5.00, z=75.28], EntityVillager['Villager'/12, l='MpServer', x=309.69, y=6.00, z=79.94], EntityVillager['Villager'/13, l='MpServer', x=318.84, y=5.00, z=74.34], EntityVillager['Villager'/14, l='MpServer', x=309.69, y=4.00, z=74.69], EntityVillager['Villager'/15, l='MpServer', x=305.47, y=4.00, z=94.72], EntityVillager['Villager'/17, l='MpServer', x=311.31, y=4.00, z=82.09], EntityVillager['Villager'/16, l='MpServer', x=309.38, y=4.00, z=93.22], EntityVillager['Villager'/19, l='MpServer', x=308.75, y=6.00, z=81.50], EntityVillager['Villager'/18, l='MpServer', x=309.69, y=6.00, z=81.50], EntityVillager['Villager'/21, l='MpServer', x=319.84, y=4.00, z=98.50], EntityVillager['Villager'/20, l='MpServer', x=307.63, y=4.00, z=96.84], EntityVillager['Villager'/29, l='MpServer', x=320.53, y=5.00, z=65.69], EntityVillager['Villager'/28, l='MpServer', x=324.13, y=4.00, z=70.13], EntityVillager['Villager'/31, l='MpServer', x=324.59, y=4.00, z=96.78], EntityVillager['Villager'/30, l='MpServer', x=323.31, y=4.00, z=92.63], EntityVillager['Villager'/35, l='MpServer', x=343.47, y=5.00, z=102.91], EntityEnderChestCart['entity.extracarts.EntityEnderChestCart.name'/32, l='MpServer', x=348.50, y=4.50, z=89.50], EntityVillager['Villager'/33, l='MpServer', x=328.50, y=4.00, z=78.88], EntityChicken['Chicken'/38, l='MpServer', x=417.41, y=4.00, z=33.56], EntityChicken['Chicken'/39, l='MpServer', x=410.50, y=4.00, z=38.50], EntitySlime['Slime'/36, l='MpServer', x=374.39, y=4.39, z=153.83], EntitySlime['Slime'/37, l='MpServer', x=381.03, y=4.00, z=147.75], EntityChicken['Chicken'/40, l='MpServer', x=415.44, y=4.00, z=38.53], EntityChicken['Chicken'/41, l='MpServer', x=404.50, y=4.00, z=40.50], EntityClientPlayerMP['Scott_DTA'/42, l='MpServer', x=345.98, y=5.62, z=87.15], EntityItem['item.tile.ironchest:IRON'/3719, l='MpServer', x=346.59, y=4.66, z=89.57], EntityItem['item.item.minecart'/3718, l='MpServer', x=346.51, y=4.66, z=89.47]]

Retry entities: 0 total; []

Server brand: fml,forge

Server type: Integrated singleplayer server

Stacktrace:

at net.minecraft.client.multiplayer.WorldClient.func_72914_a(WorldClient.java:440)

at net.minecraft.client.Minecraft.func_71407_l(Minecraft.java:1943)

at net.minecraft.client.Minecraft.func_71411_J(Minecraft.java:910)

at net.minecraft.client.Minecraft.func_99999_d(Minecraft.java:838)

at net.minecraft.client.main.Main.main(SourceFile:101)

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)

at java.lang.reflect.Method.invoke(Unknown Source)

at net.minecraft.launchwrapper.Launch.launch(Launch.java:131)

at net.minecraft.launchwrapper.Launch.main(Launch.java:27)

 

-- Affected level --

Details:

Level name: MpServer

All players: 1 total; [EntityClientPlayerMP['Scott_DTA'/42, l='MpServer', x=345.98, y=5.62, z=87.15]]

Chunk stats: MultiplayerChunkCache: 441

Level seed: 0

Level generator: ID 01 - flat, ver 0. Features enabled: false

Level generator options:

Level spawn location: World: (338,4,83), Chunk: (at 2,0,3 in 21,5; contains blocks 336,0,80 to 351,255,95), Region: (0,0; contains chunks 0,0 to 31,31, blocks 0,0,0 to 511,255,511)

Level time: 2436 game time, 2436 day time

Level dimension: 0

Level storage version: 0x00000 - Unknown?

Level weather: Rain time: 0 (now: false), thunder time: 0 (now: false)

Level game mode: Game mode: survival (ID 0). Hardcore: false. Cheats: false

Forced entities: 37 total; [EntitySlime['Slime'/1, l='MpServer', x=271.13, y=4.00, z=138.53], EntityVillager['Villager'/2, l='MpServer', x=302.06, y=4.00, z=83.50], EntityVillager['Villager'/3, l='MpServer', x=301.50, y=4.00, z=77.88], EntitySheep['Sheep'/4, l='MpServer', x=301.50, y=4.00, z=127.50], EntitySheep['Sheep'/5, l='MpServer', x=294.21, y=4.00, z=125.38], EntitySheep['Sheep'/6, l='MpServer', x=296.19, y=4.00, z=132.81], EntitySheep['Sheep'/7, l='MpServer', x=296.91, y=4.00, z=134.84], EntitySlime['Slime'/8, l='MpServer', x=314.01, y=4.33, z=7.66], EntityVillager['Villager'/9, l='MpServer', x=312.75, y=4.00, z=67.50], EntityVillager['Villager'/10, l='MpServer', x=304.71, y=4.00, z=76.50], EntityVillager['Villager'/11, l='MpServer', x=314.69, y=5.00, z=75.28], EntityVillager['Villager'/12, l='MpServer', x=309.69, y=6.00, z=79.94], EntityVillager['Villager'/13, l='MpServer', x=318.84, y=5.00, z=74.34], EntityVillager['Villager'/14, l='MpServer', x=309.69, y=4.00, z=74.69], EntityVillager['Villager'/15, l='MpServer', x=305.47, y=4.00, z=94.72], EntityVillager['Villager'/17, l='MpServer', x=311.31, y=4.00, z=82.09], EntityVillager['Villager'/16, l='MpServer', x=309.38, y=4.00, z=93.22], EntityVillager['Villager'/19, l='MpServer', x=308.75, y=6.00, z=81.50], EntityVillager['Villager'/18, l='MpServer', x=309.69, y=6.00, z=81.50], EntityVillager['Villager'/21, l='MpServer', x=319.84, y=4.00, z=98.50], EntityVillager['Villager'/20, l='MpServer', x=307.63, y=4.00, z=96.84], EntityVillager['Villager'/29, l='MpServer', x=320.53, y=5.00, z=65.69], EntityVillager['Villager'/28, l='MpServer', x=324.13, y=4.00, z=70.13], EntityVillager['Villager'/31, l='MpServer', x=324.59, y=4.00, z=96.78], EntityVillager['Villager'/30, l='MpServer', x=323.31, y=4.00, z=92.63], EntityVillager['Villager'/35, l='MpServer', x=343.47, y=5.00, z=102.91], EntityEnderChestCart['entity.extracarts.EntityEnderChestCart.name'/32, l='MpServer', x=348.50, y=4.50, z=89.50], EntityVillager['Villager'/33, l='MpServer', x=328.50, y=4.00, z=78.88], EntityChicken['Chicken'/38, l='MpServer', x=417.41, y=4.00, z=33.56], EntityChicken['Chicken'/39, l='MpServer', x=410.50, y=4.00, z=38.50], EntitySlime['Slime'/36, l='MpServer', x=374.39, y=4.39, z=153.83], EntitySlime['Slime'/37, l='MpServer', x=381.03, y=4.00, z=147.75], EntityChicken['Chicken'/40, l='MpServer', x=415.44, y=4.00, z=38.53], EntityChicken['Chicken'/41, l='MpServer', x=404.50, y=4.00, z=40.50], EntityClientPlayerMP['Scott_DTA'/42, l='MpServer', x=345.98, y=5.62, z=87.15], EntityItem['item.tile.ironchest:IRON'/3719, l='MpServer', x=346.59, y=4.66, z=89.57], EntityItem['item.item.minecart'/3718, l='MpServer', x=346.51, y=4.66, z=89.47]]

Retry entities: 0 total; []

Server brand: fml,forge

Server type: Integrated singleplayer server

 

-- System Details --

Details:

Minecraft Version: 1.6.4

Operating System: Windows 7 (amd64) version 6.1

Java Version: 1.7.0_60, Oracle Corporation

Java VM Version: Java HotSpot 64-Bit Server VM (mixed mode), Oracle Corporation

Memory: 2568361176 bytes (2449 MB) / 3120562176 bytes (2976 MB) up to 3120562176 bytes (2976 MB)

JVM Flags: 5 total; -XX:HeapDumpPath=MojangTricksIntelDriversForPerformance_javaw.exe_minecraft.exe.heapdump -Xms3072m -Xmx3072m -XX:PermSize=512m -XX:NewRatio=3

AABB Pool Size: 14740 (825440 bytes; 0 MB) allocated, 509 (28504 bytes; 0 MB) used

Suspicious classes: FML and Forge are installed

IntCache: cache: 0, tcache: 0, allocated: 0, tallocated: 0

FML: MCP v8.11 FML v6.4.49.965 Minecraft Forge 9.11.1.965 5 mods loaded, 5 mods active

mcp{8.09} [Minecraft Coder Pack] (minecraft.jar) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available

FML{6.4.49.965} [Forge Mod Loader] (minecraftforge-9.11.1.965.jar) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available

Forge{9.11.1.965} [Minecraft Forge] (minecraftforge-9.11.1.965.jar) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available

IronChest{5.4.1.702} [iron Chest] (ironchest-universal-1.6.4-5.4.1.702.zip) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available

extracarts{a0.0.1} [Extra Carts] (extracarts-1.6.4-a0.0.1.jar) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available

Launched Version: 1.6.4-Forge9.11.1.965

LWJGL: 2.9.0

OpenGL: ATI Radeon HD 5700 Series  GL version 4.1.10750 Compatibility Profile Context, ATI Technologies Inc.

Is Modded: Definitely; Client brand changed to 'fml,forge'

Type: Client (map_client.txt)

Resource Pack: Default

Current Language: English (US)

Profiler Position: N/A (disabled)

Vec3 Pool Size: 195 (10920 bytes; 0 MB) allocated, 98 (5488 bytes; 0 MB) used

 

Posted

Was just looking at that.  Will see what I can figure out.  Thanks.

 

As to 1.6.4, there seems to be more tutorials currently for 1.6.4 then for 1.7.10.  I plan to finish out the support for Iron Chests then port it.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Announcements



  • Recently Browsing

    • No registered users viewing this page.
  • Posts

    • That seems to have fixed it, thank you!
    • I am having some issues starting an RLCraft server on a minimal install of Debian 12. I have Java installed and I'm able to start the vanilla Minecraft server jar no problem and people can join and play without any issues, as soon as I try to create a new directory with the Forge jar the initial install with the INSTALLER jar works when I use the java command with the --installServer flag, but as soon as I try to start the server using the forge jar that is NOT labelled with installer I get the following error: 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:77)         at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)         at java.base/java.lang.reflect.Method.invoke(Method.java:569)         at net.minecraftforge.fml.relauncher.ServerLaunchWrapper.run(ServerLaunchWrapper.java:70)         at net.minecraftforge.fml.relauncher.ServerLaunchWrapper.main(ServerLaunchWrapper.java:34) Caused by: java.lang.ClassCastException: class jdk.internal.loader.ClassLoaders$AppClassLoader cannot be cast to class java.net.URLClassLoader (jdk.internal.loader.ClassLoaders$AppClassLoader and java.net.URLClassLoader are in module java.base of loader 'bootstrap')         at net.minecraft.launchwrapper.Launch.<init>(Launch.java:34)         at net.minecraft.launchwrapper.Launch.main(Launch.java:28)         ... 6 more   I have tried using newer versions of Java directly from Oracle as well. Has anybody been successful in starting and running a RLCraft server from the terminal on a Linux machine? I cannot figure out why it doesn't want to work but the vanilla jar works without issue. Thank you in advance!
    • This is my latest attempt :  public class ManaScreen extends Screen { Mana mana = new Mana(); boolean removeManaBar = false; ResourceLocation manaBar = ResourceLocation.fromNamespaceAndPath(RSGArmoury.MOD_ID, "/textures/block/spawnable_arena_wall.png"); public ManaScreen() { super(Component.literal("Mana")); } @Override protected void init() { super.init(); Minecraft.getInstance().setScreen(this); } @Override public boolean isPauseScreen() { return false; } @Override public void render(GuiGraphics pGuiGraphics, int pMouseX, int pMouseY, float pPartialTick) { pGuiGraphics.blit(manaBar, 10, -10, 0, 0, mana.getMana(), 10, mana.getMana(), 10); if (removeManaBar) { this.onClose(); return; } super.render(pGuiGraphics, pMouseX, pMouseY, pPartialTick); } public void addManaBar() { removeManaBar = false; Minecraft.getInstance().setScreen(new ManaScreen()); } public boolean removeManaBar() { return removeManaBar = true; } }
    • I tried a few different things that all didnt work. Right now I have nothing but what I had that seemed most likely to work was just a guiOverlay.blit(x, y, z, vx, vy, getMana()). I dont remember the exact code but it was somthing along those lines. It was in a new class extending screen I believe.
  • Topics

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.