Jump to content
Search In
  • More options...
Find results that contain...
Find results in...

1.15 Setting container contents


AMRAAM
 Share

Recommended Posts

Hello!

I've been playing around with the idea of creating a "plugin like" chest based menu system, implemented on the server side ONLY, so no code runs on the client. I have gotten so far as to create a generic container and have the player open it, but several issues remain that I can't solve on my own, #1 Is setting the contents of said generic container, so the player sees items and can interact with the menu, and then #2 is actually interacting with the container, how do I detect when a player picks up an item from the container (and cancel that, so they can't take items from it) and then do some other action, like opening another more different container or running some logic or things of that nature.

This is what is running currently in my mod:
 

        INamedContainerProvider provider = new INamedContainerProvider() {
            @Override
            public ITextComponent getDisplayName() {
                return new TextComponent() {
                    @Override
                    public String getUnformattedComponentText() {
                        return "name";
                    }

                    @Override
                    public ITextComponent shallowCopy() {
                        return null;
                    }
                };
            }

            @Nullable
            @Override
            public Container createMenu(int p_createMenu_1_, PlayerInventory p_createMenu_2_, PlayerEntity p_createMenu_3_) {
                Container c = new Container(ContainerType.GENERIC_9X2, 1) {
                    @Override
                    public boolean canInteractWith(PlayerEntity playerIn) {
                        return true;
                    }
                };

				// Both of these line straight up crash the game when they are ran
                //c.getSlot(0).inventory.setInventorySlotContents(0, new ItemStack(Blocks.DIRT));
                //c.getInventory().set(0, new ItemStack(Blocks.DIRT)); 

                return c;
            }
        };

        event.getPlayer().openContainer(provider);


Thanks for the help!

Link to comment
Share on other sites

You need to first create an inventory. The easiest way to do this is just new ItemStackHandler(size). You are using GENERIC_9x2, so you need 9x2=18 slots.

Then you need to use ChestContainer (not just Container, otherwise there won't be any slots). Then you can use the ItemStackHandler to modify the inventory. However note that with this you do not have any persistence (i.e. every time you do this the inventory is empty). If you want it to persist, you need to store it somewhere, e.g. in a player attached capability.

Link to comment
Share on other sites

I see, why does it have to be a ChestContainer, the inventory still opens like this, I just cant put items in from my code, but wouldnt that be fixed if were to put an inventory behind it and use that? ChestContainer has a constructor that takes in a PlayerInventory an IInventory and the number of rows(?). Do I need some sort of wrapper around my IItemHandler to pass it into that IInventory param?

Link to comment
Share on other sites

If you look at ChestContainer you will see that it adds slots. You can of course do this manually if you want to, then you could use Container.


Unfortunately vanilla uses IInventory all over the place, so if you want to use ChestContainer you're going to have to use new Inventory instead of new ItemStackHandler. I would still advise you to then use InvWrapper to convert the IInventory to an IItemHandler for an easier API.

Link to comment
Share on other sites

Okay I'm lost now, I want to use IInventory because that is what ChestContainer uses, but how do I create one for it, if I understand correctly, right now you are saying I use IInventory of the chest and manage it with an IItemHandler, provided by InvWrapper right?
But how do I provide the chest container with an IInventory in the first place?
Can you give an example on how I create the ChestContainer from start to finish? Or I need to implement a custom IInventory?

Link to comment
Share on other sites

This is what I am trying currently, but this doesnt work, it fails to compile.

		IInventory inv = new Inventory(18);
                
                InvWrapper wrapper = new InvWrapper(inv);
                wrapper.insertItem(0, new ItemStack(Blocks.DIRT), false);

                ChestContainer c = new ChestContainer(ContainerType.GENERIC_9X2, event.getPlayer().inventory, inv, 2);
'ChestContainer(net.minecraft.inventory.container.ContainerType<?>, int, net.minecraft.entity.player.PlayerInventory, int)' has private access in 'net.minecraft.inventory.container.ChestContainer'

 

Link to comment
Share on other sites

So, I will populate the slots of the opened "chest" with items that I dont want to be in game items, rather option in a menu, so when a player tries to take one of them I can run some logic because they clicked an "option", instead of the taking the item I want to run a function to do something.

Example, the player opens a virtual chest they see their level by the size of the green wool stack, if they try to take the stack, instead of taking 13 green wool, they would get taken to another "chest" with more detailed information about their character.

Or a shop interface, where them clicking an item would buy it, put it into their inventory and remove some balance from their account.

So I need a mechanism to detect them trying to take an item, and to know what item it is, and one mechanism to prevent them from actually taking the item.

I hope it makes sense

Link to comment
Share on other sites

So essentially I create a new class, extend from Container maybe and start implementing things, and maybe go off the implementation of ChestContainer.
Will this approach not break the server side only criteria? Does the client not need to know about the custom container?

Link to comment
Share on other sites

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
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.

 Share



  • Recently Browsing

    • No registered users viewing this page.
  • Posts

    • Try the latest version of the dungeon crawl. If that doesn't fix it, contact the mod author. https://www.curseforge.com/minecraft/mc-mods/dungeon-crawl/files/all?filter-game-version=1738749986%3a73407
    • Mixin doesn't like java 19 use java 17
    • Everytime When I Try To Launch My Forge Minecraft Server It Crashes I Don't Really Know What To Do Here Is the Crash Log: ---- Minecraft Crash Report ---- WARNING: coremods are present:   TransformLoader (DynamicSurroundings-1.12.2-3.6.1.0.jar)   LoadingPlugin (Bloodmoon-MC1.12.2-1.5.3 (1).jar)   RandomPatches (randompatches-1.12.2-1.22.1.10.jar)   PhosphorFMLLoadingPlugin (phosphor-1.12.2-0.2.6+build50-universal.jar)   CreativePatchingLoader (CreativeCore_v1.10.70_mc1.12.2.jar) Contact their authors BEFORE contacting forge // This doesn't make any sense! Time: 9/25/22 10:40 PM Description: Exception in server tick loop java.lang.IllegalArgumentException: ChunkNibbleArrays should be 2048 bytes not: 0     at net.minecraft.world.chunk.NibbleArray.<init>(SourceFile:16)     at net.minecraft.world.chunk.storage.AnvilChunkLoader.func_75823_a(AnvilChunkLoader.java:450)     at net.minecraft.world.chunk.storage.AnvilChunkLoader.checkedReadChunkFromNBT__Async(AnvilChunkLoader.java:129)     at net.minecraft.world.chunk.storage.AnvilChunkLoader.loadChunk__Async(AnvilChunkLoader.java:93)     at net.minecraftforge.common.chunkio.ChunkIOProvider.run(ChunkIOProvider.java:70)     at net.minecraftforge.common.chunkio.ChunkIOExecutor.syncChunkLoad(ChunkIOExecutor.java:92)     at net.minecraft.world.gen.ChunkProviderServer.loadChunk(ChunkProviderServer.java:118)     at net.minecraft.world.gen.ChunkProviderServer.func_186028_c(ChunkProviderServer.java:89)     at net.minecraft.world.gen.ChunkProviderServer.func_186025_d(ChunkProviderServer.java:135)     at net.minecraft.server.MinecraftServer.func_71222_d(MinecraftServer.java:344)     at net.minecraft.server.MinecraftServer.func_71247_a(MinecraftServer.java:314)     at net.minecraft.server.dedicated.DedicatedServer.func_71197_b(DedicatedServer.java:270)     at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:486)     at java.lang.Thread.run(Unknown Source) A detailed walkthrough of the error, its code path and all known details is as follows: --------------------------------------------------------------------------------------- -- System Details -- Details:     Minecraft Version: 1.12.2     Operating System: Windows 10 (amd64) version 10.0     Java Version: 1.8.0_341, Oracle Corporation     Java VM Version: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Oracle Corporation     Memory: 4739810688 bytes (4520 MB) / 6174015488 bytes (5888 MB) up to 6174015488 bytes (5888 MB)     JVM Flags: 2 total; -Xmx6144M -Xms6144M     IntCache: cache: 0, tcache: 0, allocated: 0, tallocated: 0     FML: MCP 9.42 Powered by Forge 14.23.5.2860 33 mods loaded, 33 mods active     States: 'U' = Unloaded 'L' = Loaded 'C' = Constructed 'H' = Pre-initialized 'I' = Initialized 'J' = Post-initialized 'A' = Available 'D' = Disabled 'E' = Errored     | State  | ID                | Version          | Source                                      | Signature                                |     |:------ |:----------------- |:---------------- |:------------------------------------------- |:---------------------------------------- |     | LCHIJA | minecraft         | 1.12.2           | minecraft.jar                               | None                                     |     | LCHIJA | mcp               | 9.42             | minecraft.jar                               | None                                     |     | LCHIJA | FML               | 8.0.99.99        | forge-1.12.2-14.23.5.2860.jar               | e3c3d50c7c986df74c645c0ac54639741c90a557 |     | LCHIJA | forge             | 14.23.5.2860     | forge-1.12.2-14.23.5.2860.jar               | e3c3d50c7c986df74c645c0ac54639741c90a557 |     | LCHIJA | creativecoredummy | 1.0.0            | minecraft.jar                               | None                                     |     | LCHIJA | randompatches     | 1.12.2-1.22.1.10 | randompatches-1.12.2-1.22.1.10.jar          | None                                     |     | LCHIJA | aiimprovements    | 0.0.1.3          | AIImprovements-1.12-0.0.1b3.jar             | None                                     |     | LCHIJA | badmobs           | 1.1.40           | BadMobs-1.12.2-1.1.40 (1).jar               | d476d1b22b218a10d845928d1665d45fce301b27 |     | LCHIJA | bloodmoon         | 1.5.3            | Bloodmoon-MC1.12.2-1.5.3 (1).jar            | d72e0dd57935b3e9476212aea0c0df352dd76291 |     | LCHIJA | chunkpregenerator | 2.5.0            | Chunk+Pregenerator-V1.12-2.5.7.jar          | None                                     |     | LCHIJA | extendedrenderer  | v1.0             | coroutil-1.12.1-1.2.37 (2).jar              | None                                     |     | LCHIJA | coroutil          | 1.12.1-1.2.37    | coroutil-1.12.1-1.2.37 (2).jar              | None                                     |     | LCHIJA | configmod         | v1.0             | coroutil-1.12.1-1.2.37 (2).jar              | None                                     |     | LCHIJA | crafttweaker      | 4.1.20           | CraftTweaker2-1.12-4.1.20.680.jar           | None                                     |     | LCHIJA | crafttweakerjei   | 2.0.3            | CraftTweaker2-1.12-4.1.20.680.jar           | None                                     |     | LCHIJA | creativecore      | 1.10.0           | CreativeCore_v1.10.70_mc1.12.2.jar          | None                                     |     | LCHIJA | orelib            | 3.6.0.1          | OreLib-1.12.2-3.6.0.1 (1).jar               | 7a2128d395ad96ceb9d9030fbd41d035b435753a |     | LCHIJA | dsurround         | 3.6.1.0          | DynamicSurroundings-1.12.2-3.6.1.0.jar      | 7a2128d395ad96ceb9d9030fbd41d035b435753a |     | LCHIJA | dynview           | 1.3              | dynviewdist-1.12-1.3.jar                    | None                                     |     | LCHIJA | enhancedvisuals   | 1.3.0            | EnhancedVisuals_v1.4.4_mc1.12.2 (1).jar     | None                                     |     | LCHIJA | epicsiegemod      | 13.169           | EpicSiegeMod-13.169 (1).jar                 | None                                     |     | LCHIJA | gravestone        | 1.10.3           | gravestone-1.10.3.jar                       | None                                     |     | LCHIJA | ichunutil         | 7.2.2            | iChunUtil-1.12.2-7.2.2.jar                  | 4db5c2bd1b556f252a5b8b54b256d381b2a0a6b8 |     | LCHIJA | mts               | 22.1.0           | Immersive+Vehicles-1.12.2-22.1.0.jar        | None                                     |     | LCHIJA | incontrol         | 3.9.8            | incontrol-1.12-3.9.8.jar                    | None                                     |     | LCHIJA | mobends           | 1.2.1            | MoBends_1.12.2-1.2.1-19.12.21.jar           | None                                     |     | LCHIJA | mobsunscreen      | @version@        | mobsunscreen-1.12.2-3.1.5.jar               | None                                     |     | LCHIJA | performant        | 1.12.2-1.5       | performant-1.11.jar                         | None                                     |     | LCHIJA | roughmobs         | 2.0.0            | roughmobs2-1.12.2_2.0.15.jar                | None                                     |     | LCHIJA | gvc               | 1.2.5            | VoiceChatReloaded-1.12.2-1.3.0.jar          | None                                     |     | LCHIJA | worldedit         | 6.1.10           | worldedit-forge-mc1.12.2-6.1.10-dist.jar    | None                                     |     | LCHIJA | zombieawareness   | 1.12.1-1.11.16   | zombieawareness-1.12.1-1.11.16 (1).jar      | None                                     |     | LCHIJA | phosphor-lighting | 1.12.2-0.2.6     | phosphor-1.12.2-0.2.6+build50-universal.jar | f0387d288626cc2d937daa504e74af570c52a2f1 |     Loaded coremods (and transformers):  TransformLoader (DynamicSurroundings-1.12.2-3.6.1.0.jar)    LoadingPlugin (Bloodmoon-MC1.12.2-1.5.3 (1).jar)   lumien.bloodmoon.asm.ClassTransformer RandomPatches (randompatches-1.12.2-1.22.1.10.jar)   com.therandomlabs.randompatches.core.RPTransformer PhosphorFMLLoadingPlugin (phosphor-1.12.2-0.2.6+build50-universal.jar)    CreativePatchingLoader (CreativeCore_v1.10.70_mc1.12.2.jar)        Profiler Position: N/A (disabled)     Player Count: 0 / 20; []     Is Modded: Definitely; Server brand changed to 'fml,forge'     Type: Dedicated Server (map_server.txt)   Please Help Me With This Crash Report Thankkyou    
    • ---- Minecraft Crash Report ---- // Why did you do that? Time: 9/25/22, 12:14 PM Description: mouseClicked event handler java.lang.NoSuchFieldError: ENTITIES     at xiroc.dungeoncrawl.dungeon.monster.WeightedRandomEntity.assign(WeightedRandomEntity.java:51) ~[DungeonCrawl-1.19-2.3.10.jar%23143!/:2.3.10] {re:classloading}     at xiroc.dungeoncrawl.dungeon.monster.WeightedRandomEntity.<init>(WeightedRandomEntity.java:43) ~[DungeonCrawl-1.19-2.3.10.jar%23143!/:2.3.10] {re:classloading}     at xiroc.dungeoncrawl.dungeon.monster.WeightedRandomEntity$Builder.build(WeightedRandomEntity.java:103) ~[DungeonCrawl-1.19-2.3.10.jar%23143!/:2.3.10] {re:classloading}     at xiroc.dungeoncrawl.dungeon.monster.WeightedRandomEntity.fromJson(WeightedRandomEntity.java:76) ~[DungeonCrawl-1.19-2.3.10.jar%23143!/:2.3.10] {re:classloading}     at xiroc.dungeoncrawl.dungeon.monster.RandomMonster.loadEntityFile(RandomMonster.java:138) ~[DungeonCrawl-1.19-2.3.10.jar%23143!/:2.3.10] {re:classloading}     at xiroc.dungeoncrawl.dungeon.monster.RandomMonster.loadJson(RandomMonster.java:118) ~[DungeonCrawl-1.19-2.3.10.jar%23143!/:2.3.10] {re:classloading}     at xiroc.dungeoncrawl.util.ResourceReloadHandler.reload(ResourceReloadHandler.java:60) ~[DungeonCrawl-1.19-2.3.10.jar%23143!/:2.3.10] {re:classloading}     at xiroc.dungeoncrawl.util.ResourceReloadHandler.lambda$reload$0(ResourceReloadHandler.java:80) ~[DungeonCrawl-1.19-2.3.10.jar%23143!/:2.3.10] {re:classloading}     at java.util.concurrent.CompletableFuture$UniRun.tryFire(CompletableFuture.java:787) ~[?:?] {}     at java.util.concurrent.CompletableFuture$Completion.run(CompletableFuture.java:482) ~[?:?] {}     at net.minecraft.server.packs.resources.SimpleReloadInstance.m_143940_(SimpleReloadInstance.java:69) ~[client-1.19-20220607.102129-srg.jar%23149!/:?] {re:classloading}     at net.minecraft.util.thread.BlockableEventLoop.m_6367_(BlockableEventLoop.java:157) ~[client-1.19-20220607.102129-srg.jar%23149!/:?] {re:classloading,pl:accesstransformer:B}     at net.minecraft.util.thread.ReentrantBlockableEventLoop.m_6367_(ReentrantBlockableEventLoop.java:23) ~[client-1.19-20220607.102129-srg.jar%23149!/:?] {re:classloading}     at net.minecraft.util.thread.BlockableEventLoop.m_7245_(BlockableEventLoop.java:131) ~[client-1.19-20220607.102129-srg.jar%23149!/:?] {re:classloading,pl:accesstransformer:B}     at net.minecraft.util.thread.BlockableEventLoop.m_18701_(BlockableEventLoop.java:140) ~[client-1.19-20220607.102129-srg.jar%23149!/:?] {re:classloading,pl:accesstransformer:B}     at net.minecraft.client.gui.screens.worldselection.CreateWorldScreen.m_232896_(CreateWorldScreen.java:124) ~[client-1.19-20220607.102129-srg.jar%23149!/:?] {re:classloading,pl:accesstransformer:B,pl:runtimedistcleaner:A}     at net.minecraft.client.gui.screens.worldselection.WorldSelectionList.m_233213_(WorldSelectionList.java:136) ~[client-1.19-20220607.102129-srg.jar%23149!/:?] {re:classloading,pl:runtimedistcleaner:A}     at net.minecraft.client.gui.screens.worldselection.WorldSelectionList.m_233206_(WorldSelectionList.java:98) ~[client-1.19-20220607.102129-srg.jar%23149!/:?] {re:classloading,pl:runtimedistcleaner:A}     at net.minecraft.client.gui.screens.worldselection.WorldSelectionList.<init>(WorldSelectionList.java:92) ~[client-1.19-20220607.102129-srg.jar%23149!/:?] {re:classloading,pl:runtimedistcleaner:A}     at net.minecraft.client.gui.screens.worldselection.SelectWorldScreen.m_7856_(SelectWorldScreen.java:66) ~[client-1.19-20220607.102129-srg.jar%23149!/:?] {re:classloading}     at net.minecraft.client.gui.screens.Screen.m_232761_(Screen.java:423) ~[client-1.19-20220607.102129-srg.jar%23149!/:?] {re:classloading,pl:accesstransformer:B,pl:runtimedistcleaner:A}     at net.minecraft.client.gui.screens.Screen.m_6575_(Screen.java:413) ~[client-1.19-20220607.102129-srg.jar%23149!/:?] {re:classloading,pl:accesstransformer:B,pl:runtimedistcleaner:A}     at net.minecraft.client.Minecraft.m_91152_(Minecraft.java:943) ~[client-1.19-20220607.102129-srg.jar%23149!/:?] {re:classloading,pl:accesstransformer:B,pl:runtimedistcleaner:A}     at net.minecraft.client.gui.screens.TitleScreen.m_96775_(TitleScreen.java:157) ~[client-1.19-20220607.102129-srg.jar%23149!/:?] {re:classloading,pl:runtimedistcleaner:A}     at net.minecraft.client.gui.components.Button.m_5691_(Button.java:40) ~[client-1.19-20220607.102129-srg.jar%23149!/:?] {re:classloading}     at net.minecraft.client.gui.components.AbstractButton.m_5716_(AbstractButton.java:16) ~[client-1.19-20220607.102129-srg.jar%23149!/:?] {re:classloading}     at net.minecraft.client.gui.components.AbstractWidget.m_6375_(AbstractWidget.java:110) ~[client-1.19-20220607.102129-srg.jar%23149!/:?] {re:classloading,pl:runtimedistcleaner:A}     at net.minecraft.client.gui.components.events.ContainerEventHandler.m_6375_(ContainerEventHandler.java:27) ~[client-1.19-20220607.102129-srg.jar%23149!/:?] {re:classloading}     at net.minecraft.client.gui.screens.TitleScreen.m_6375_(TitleScreen.java:355) ~[client-1.19-20220607.102129-srg.jar%23149!/:?] {re:classloading,pl:runtimedistcleaner:A}     at net.minecraft.client.MouseHandler.m_168084_(MouseHandler.java:88) ~[client-1.19-20220607.102129-srg.jar%23149!/:?] {re:classloading,pl:runtimedistcleaner:A}     at net.minecraft.client.gui.screens.Screen.m_96579_(Screen.java:524) ~[client-1.19-20220607.102129-srg.jar%23149!/:?] {re:classloading,pl:accesstransformer:B,pl:runtimedistcleaner:A}     at net.minecraft.client.MouseHandler.m_91530_(MouseHandler.java:85) ~[client-1.19-20220607.102129-srg.jar%23149!/:?] {re:classloading,pl:runtimedistcleaner:A}     at net.minecraft.client.MouseHandler.m_168091_(MouseHandler.java:185) ~[client-1.19-20220607.102129-srg.jar%23149!/:?] {re:classloading,pl:runtimedistcleaner:A}     at net.minecraft.util.thread.BlockableEventLoop.execute(BlockableEventLoop.java:103) ~[client-1.19-20220607.102129-srg.jar%23149!/:?] {re:classloading,pl:accesstransformer:B}     at net.minecraft.client.MouseHandler.m_91565_(MouseHandler.java:184) ~[client-1.19-20220607.102129-srg.jar%23149!/:?] {re:classloading,pl:runtimedistcleaner:A}     at org.lwjgl.glfw.GLFWMouseButtonCallbackI.callback(GLFWMouseButtonCallbackI.java:43) ~[lwjgl-glfw-3.3.1.jar%23136!/:build 7] {}     at org.lwjgl.system.JNI.invokeV(Native Method) ~[lwjgl-3.3.1.jar%23128!/:build 7] {}     at org.lwjgl.glfw.GLFW.glfwWaitEventsTimeout(GLFW.java:3474) ~[lwjgl-glfw-3.3.1.jar%23136!/:build 7] {}     at com.mojang.blaze3d.systems.RenderSystem.m_69830_(RenderSystem.java:222) ~[client-1.19-20220607.102129-srg.jar%23149!/:?] {re:classloading}     at net.minecraft.client.Minecraft.m_91383_(Minecraft.java:1115) ~[client-1.19-20220607.102129-srg.jar%23149!/:?] {re:classloading,pl:accesstransformer:B,pl:runtimedistcleaner:A}     at net.minecraft.client.Minecraft.m_91374_(Minecraft.java:669) ~[client-1.19-20220607.102129-srg.jar%23149!/:?] {re:classloading,pl:accesstransformer:B,pl:runtimedistcleaner:A}     at net.minecraft.client.main.Main.main(Main.java:206) ~[client-1.19-20220607.102129-srg.jar%23149!/:?] {re:classloading,pl:runtimedistcleaner:A}     at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:?] {}     at jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77) ~[?:?] {}     at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:?] {}     at java.lang.reflect.Method.invoke(Method.java:568) ~[?:?] {}     at net.minecraftforge.fml.loading.targets.CommonClientLaunchHandler.lambda$launchService$0(CommonClientLaunchHandler.java:27) ~[fmlloader-1.19-41.1.0.jar%2393!/:?] {}     at cpw.mods.modlauncher.LaunchServiceHandlerDecorator.launch(LaunchServiceHandlerDecorator.java:30) [modlauncher-10.0.8.jar%2381!/:?] {}     at cpw.mods.modlauncher.LaunchServiceHandler.launch(LaunchServiceHandler.java:53) [modlauncher-10.0.8.jar%2381!/:?] {}     at cpw.mods.modlauncher.LaunchServiceHandler.launch(LaunchServiceHandler.java:71) [modlauncher-10.0.8.jar%2381!/:?] {}     at cpw.mods.modlauncher.Launcher.run(Launcher.java:106) [modlauncher-10.0.8.jar%2381!/:?] {}     at cpw.mods.modlauncher.Launcher.main(Launcher.java:77) [modlauncher-10.0.8.jar%2381!/:?] {}     at cpw.mods.modlauncher.BootstrapLaunchConsumer.accept(BootstrapLaunchConsumer.java:26) [modlauncher-10.0.8.jar%2381!/:?] {}     at cpw.mods.modlauncher.BootstrapLaunchConsumer.accept(BootstrapLaunchConsumer.java:23) [modlauncher-10.0.8.jar%2381!/:?] {}     at cpw.mods.bootstraplauncher.BootstrapLauncher.main(BootstrapLauncher.java:141) [bootstraplauncher-1.1.2.jar:?] {} A detailed walkthrough of the error, its code path and all known details is as follows: --------------------------------------------------------------------------------------- -- Head -- Thread: Render thread Stacktrace:     at xiroc.dungeoncrawl.dungeon.monster.WeightedRandomEntity.assign(WeightedRandomEntity.java:51) ~[DungeonCrawl-1.19-2.3.10.jar%23143!/:2.3.10] {re:classloading}     at xiroc.dungeoncrawl.dungeon.monster.WeightedRandomEntity.<init>(WeightedRandomEntity.java:43) ~[DungeonCrawl-1.19-2.3.10.jar%23143!/:2.3.10] {re:classloading}     at xiroc.dungeoncrawl.dungeon.monster.WeightedRandomEntity$Builder.build(WeightedRandomEntity.java:103) ~[DungeonCrawl-1.19-2.3.10.jar%23143!/:2.3.10] {re:classloading}     at xiroc.dungeoncrawl.dungeon.monster.WeightedRandomEntity.fromJson(WeightedRandomEntity.java:76) ~[DungeonCrawl-1.19-2.3.10.jar%23143!/:2.3.10] {re:classloading}     at xiroc.dungeoncrawl.dungeon.monster.RandomMonster.loadEntityFile(RandomMonster.java:138) ~[DungeonCrawl-1.19-2.3.10.jar%23143!/:2.3.10] {re:classloading}     at xiroc.dungeoncrawl.dungeon.monster.RandomMonster.loadJson(RandomMonster.java:118) ~[DungeonCrawl-1.19-2.3.10.jar%23143!/:2.3.10] {re:classloading}     at xiroc.dungeoncrawl.util.ResourceReloadHandler.reload(ResourceReloadHandler.java:60) ~[DungeonCrawl-1.19-2.3.10.jar%23143!/:2.3.10] {re:classloading}     at xiroc.dungeoncrawl.util.ResourceReloadHandler.lambda$reload$0(ResourceReloadHandler.java:80) ~[DungeonCrawl-1.19-2.3.10.jar%23143!/:2.3.10] {re:classloading}     at java.util.concurrent.CompletableFuture$UniRun.tryFire(CompletableFuture.java:787) ~[?:?] {}     at java.util.concurrent.CompletableFuture$Completion.run(CompletableFuture.java:482) ~[?:?] {}     at net.minecraft.server.packs.resources.SimpleReloadInstance.m_143940_(SimpleReloadInstance.java:69) ~[client-1.19-20220607.102129-srg.jar%23149!/:?] {re:classloading}     at net.minecraft.util.thread.BlockableEventLoop.m_6367_(BlockableEventLoop.java:157) ~[client-1.19-20220607.102129-srg.jar%23149!/:?] {re:classloading,pl:accesstransformer:B}     at net.minecraft.util.thread.ReentrantBlockableEventLoop.m_6367_(ReentrantBlockableEventLoop.java:23) ~[client-1.19-20220607.102129-srg.jar%23149!/:?] {re:classloading}     at net.minecraft.util.thread.BlockableEventLoop.m_7245_(BlockableEventLoop.java:131) ~[client-1.19-20220607.102129-srg.jar%23149!/:?] {re:classloading,pl:accesstransformer:B}     at net.minecraft.util.thread.BlockableEventLoop.m_18701_(BlockableEventLoop.java:140) ~[client-1.19-20220607.102129-srg.jar%23149!/:?] {re:classloading,pl:accesstransformer:B}     at net.minecraft.client.gui.screens.worldselection.CreateWorldScreen.m_232896_(CreateWorldScreen.java:124) ~[client-1.19-20220607.102129-srg.jar%23149!/:?] {re:classloading,pl:accesstransformer:B,pl:runtimedistcleaner:A}     at net.minecraft.client.gui.screens.worldselection.WorldSelectionList.m_233213_(WorldSelectionList.java:136) ~[client-1.19-20220607.102129-srg.jar%23149!/:?] {re:classloading,pl:runtimedistcleaner:A}     at net.minecraft.client.gui.screens.worldselection.WorldSelectionList.m_233206_(WorldSelectionList.java:98) ~[client-1.19-20220607.102129-srg.jar%23149!/:?] {re:classloading,pl:runtimedistcleaner:A}     at net.minecraft.client.gui.screens.worldselection.WorldSelectionList.<init>(WorldSelectionList.java:92) ~[client-1.19-20220607.102129-srg.jar%23149!/:?] {re:classloading,pl:runtimedistcleaner:A}     at net.minecraft.client.gui.screens.worldselection.SelectWorldScreen.m_7856_(SelectWorldScreen.java:66) ~[client-1.19-20220607.102129-srg.jar%23149!/:?] {re:classloading}     at net.minecraft.client.gui.screens.Screen.m_232761_(Screen.java:423) ~[client-1.19-20220607.102129-srg.jar%23149!/:?] {re:classloading,pl:accesstransformer:B,pl:runtimedistcleaner:A}     at net.minecraft.client.gui.screens.Screen.m_6575_(Screen.java:413) ~[client-1.19-20220607.102129-srg.jar%23149!/:?] {re:classloading,pl:accesstransformer:B,pl:runtimedistcleaner:A}     at net.minecraft.client.Minecraft.m_91152_(Minecraft.java:943) ~[client-1.19-20220607.102129-srg.jar%23149!/:?] {re:classloading,pl:accesstransformer:B,pl:runtimedistcleaner:A}     at net.minecraft.client.gui.screens.TitleScreen.m_96775_(TitleScreen.java:157) ~[client-1.19-20220607.102129-srg.jar%23149!/:?] {re:classloading,pl:runtimedistcleaner:A}     at net.minecraft.client.gui.components.Button.m_5691_(Button.java:40) ~[client-1.19-20220607.102129-srg.jar%23149!/:?] {re:classloading}     at net.minecraft.client.gui.components.AbstractButton.m_5716_(AbstractButton.java:16) ~[client-1.19-20220607.102129-srg.jar%23149!/:?] {re:classloading}     at net.minecraft.client.gui.components.AbstractWidget.m_6375_(AbstractWidget.java:110) ~[client-1.19-20220607.102129-srg.jar%23149!/:?] {re:classloading,pl:runtimedistcleaner:A}     at net.minecraft.client.gui.components.events.ContainerEventHandler.m_6375_(ContainerEventHandler.java:27) ~[client-1.19-20220607.102129-srg.jar%23149!/:?] {re:classloading}     at net.minecraft.client.gui.screens.TitleScreen.m_6375_(TitleScreen.java:355) ~[client-1.19-20220607.102129-srg.jar%23149!/:?] {re:classloading,pl:runtimedistcleaner:A}     at net.minecraft.client.MouseHandler.m_168084_(MouseHandler.java:88) ~[client-1.19-20220607.102129-srg.jar%23149!/:?] {re:classloading,pl:runtimedistcleaner:A}     at net.minecraft.client.gui.screens.Screen.m_96579_(Screen.java:524) ~[client-1.19-20220607.102129-srg.jar%23149!/:?] {re:classloading,pl:accesstransformer:B,pl:runtimedistcleaner:A}     at net.minecraft.client.MouseHandler.m_91530_(MouseHandler.java:85) ~[client-1.19-20220607.102129-srg.jar%23149!/:?] {re:classloading,pl:runtimedistcleaner:A}     at net.minecraft.client.MouseHandler.m_168091_(MouseHandler.java:185) ~[client-1.19-20220607.102129-srg.jar%23149!/:?] {re:classloading,pl:runtimedistcleaner:A}     at net.minecraft.util.thread.BlockableEventLoop.execute(BlockableEventLoop.java:103) ~[client-1.19-20220607.102129-srg.jar%23149!/:?] {re:classloading,pl:accesstransformer:B}     at net.minecraft.client.MouseHandler.m_91565_(MouseHandler.java:184) ~[client-1.19-20220607.102129-srg.jar%23149!/:?] {re:classloading,pl:runtimedistcleaner:A}     at org.lwjgl.glfw.GLFWMouseButtonCallbackI.callback(GLFWMouseButtonCallbackI.java:43) ~[lwjgl-glfw-3.3.1.jar%23136!/:build 7] {}     at org.lwjgl.system.JNI.invokeV(Native Method) ~[lwjgl-3.3.1.jar%23128!/:build 7] {}     at org.lwjgl.glfw.GLFW.glfwWaitEventsTimeout(GLFW.java:3474) ~[lwjgl-glfw-3.3.1.jar%23136!/:build 7] {} -- Affected screen -- Details:     Screen name: net.minecraft.client.gui.screens.TitleScreen Stacktrace:     at net.minecraft.client.gui.screens.Screen.m_96579_(Screen.java:524) ~[client-1.19-20220607.102129-srg.jar%23149!/:?] {re:classloading,pl:accesstransformer:B,pl:runtimedistcleaner:A}     at net.minecraft.client.MouseHandler.m_91530_(MouseHandler.java:85) ~[client-1.19-20220607.102129-srg.jar%23149!/:?] {re:classloading,pl:runtimedistcleaner:A}     at net.minecraft.client.MouseHandler.m_168091_(MouseHandler.java:185) ~[client-1.19-20220607.102129-srg.jar%23149!/:?] {re:classloading,pl:runtimedistcleaner:A}     at net.minecraft.util.thread.BlockableEventLoop.execute(BlockableEventLoop.java:103) ~[client-1.19-20220607.102129-srg.jar%23149!/:?] {re:classloading,pl:accesstransformer:B}     at net.minecraft.client.MouseHandler.m_91565_(MouseHandler.java:184) ~[client-1.19-20220607.102129-srg.jar%23149!/:?] {re:classloading,pl:runtimedistcleaner:A}     at org.lwjgl.glfw.GLFWMouseButtonCallbackI.callback(GLFWMouseButtonCallbackI.java:43) ~[lwjgl-glfw-3.3.1.jar%23136!/:build 7] {}     at org.lwjgl.system.JNI.invokeV(Native Method) ~[lwjgl-3.3.1.jar%23128!/:build 7] {}     at org.lwjgl.glfw.GLFW.glfwWaitEventsTimeout(GLFW.java:3474) ~[lwjgl-glfw-3.3.1.jar%23136!/:build 7] {}     at com.mojang.blaze3d.systems.RenderSystem.m_69830_(RenderSystem.java:222) ~[client-1.19-20220607.102129-srg.jar%23149!/:?] {re:classloading}     at net.minecraft.client.Minecraft.m_91383_(Minecraft.java:1115) ~[client-1.19-20220607.102129-srg.jar%23149!/:?] {re:classloading,pl:accesstransformer:B,pl:runtimedistcleaner:A}     at net.minecraft.client.Minecraft.m_91374_(Minecraft.java:669) ~[client-1.19-20220607.102129-srg.jar%23149!/:?] {re:classloading,pl:accesstransformer:B,pl:runtimedistcleaner:A}     at net.minecraft.client.main.Main.main(Main.java:206) ~[client-1.19-20220607.102129-srg.jar%23149!/:?] {re:classloading,pl:runtimedistcleaner:A}     at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:?] {}     at jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77) ~[?:?] {}     at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:?] {}     at java.lang.reflect.Method.invoke(Method.java:568) ~[?:?] {}     at net.minecraftforge.fml.loading.targets.CommonClientLaunchHandler.lambda$launchService$0(CommonClientLaunchHandler.java:27) ~[fmlloader-1.19-41.1.0.jar%2393!/:?] {}     at cpw.mods.modlauncher.LaunchServiceHandlerDecorator.launch(LaunchServiceHandlerDecorator.java:30) [modlauncher-10.0.8.jar%2381!/:?] {}     at cpw.mods.modlauncher.LaunchServiceHandler.launch(LaunchServiceHandler.java:53) [modlauncher-10.0.8.jar%2381!/:?] {}     at cpw.mods.modlauncher.LaunchServiceHandler.launch(LaunchServiceHandler.java:71) [modlauncher-10.0.8.jar%2381!/:?] {}     at cpw.mods.modlauncher.Launcher.run(Launcher.java:106) [modlauncher-10.0.8.jar%2381!/:?] {}     at cpw.mods.modlauncher.Launcher.main(Launcher.java:77) [modlauncher-10.0.8.jar%2381!/:?] {}     at cpw.mods.modlauncher.BootstrapLaunchConsumer.accept(BootstrapLaunchConsumer.java:26) [modlauncher-10.0.8.jar%2381!/:?] {}     at cpw.mods.modlauncher.BootstrapLaunchConsumer.accept(BootstrapLaunchConsumer.java:23) [modlauncher-10.0.8.jar%2381!/:?] {}     at cpw.mods.bootstraplauncher.BootstrapLauncher.main(BootstrapLauncher.java:141) [bootstraplauncher-1.1.2.jar:?] {} -- Last reload -- Details:     Reload number: 1     Reload reason: initial     Finished: Yes     Packs: Default, Mod Resources Stacktrace:     at net.minecraft.client.ResourceLoadStateTracker.m_168562_(ResourceLoadStateTracker.java:49) ~[client-1.19-20220607.102129-srg.jar%23149!/:?] {re:classloading}     at net.minecraft.client.Minecraft.m_91354_(Minecraft.java:2244) ~[client-1.19-20220607.102129-srg.jar%23149!/:?] {re:classloading,pl:accesstransformer:B,pl:runtimedistcleaner:A}     at net.minecraft.client.Minecraft.m_91374_(Minecraft.java:686) ~[client-1.19-20220607.102129-srg.jar%23149!/:?] {re:classloading,pl:accesstransformer:B,pl:runtimedistcleaner:A}     at net.minecraft.client.main.Main.main(Main.java:206) ~[client-1.19-20220607.102129-srg.jar%23149!/:?] {re:classloading,pl:runtimedistcleaner:A}     at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:?] {}     at jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77) ~[?:?] {}     at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:?] {}     at java.lang.reflect.Method.invoke(Method.java:568) ~[?:?] {}     at net.minecraftforge.fml.loading.targets.CommonClientLaunchHandler.lambda$launchService$0(CommonClientLaunchHandler.java:27) ~[fmlloader-1.19-41.1.0.jar%2393!/:?] {}     at cpw.mods.modlauncher.LaunchServiceHandlerDecorator.launch(LaunchServiceHandlerDecorator.java:30) [modlauncher-10.0.8.jar%2381!/:?] {}     at cpw.mods.modlauncher.LaunchServiceHandler.launch(LaunchServiceHandler.java:53) [modlauncher-10.0.8.jar%2381!/:?] {}     at cpw.mods.modlauncher.LaunchServiceHandler.launch(LaunchServiceHandler.java:71) [modlauncher-10.0.8.jar%2381!/:?] {}     at cpw.mods.modlauncher.Launcher.run(Launcher.java:106) [modlauncher-10.0.8.jar%2381!/:?] {}     at cpw.mods.modlauncher.Launcher.main(Launcher.java:77) [modlauncher-10.0.8.jar%2381!/:?] {}     at cpw.mods.modlauncher.BootstrapLaunchConsumer.accept(BootstrapLaunchConsumer.java:26) [modlauncher-10.0.8.jar%2381!/:?] {}     at cpw.mods.modlauncher.BootstrapLaunchConsumer.accept(BootstrapLaunchConsumer.java:23) [modlauncher-10.0.8.jar%2381!/:?] {}     at cpw.mods.bootstraplauncher.BootstrapLauncher.main(BootstrapLauncher.java:141) [bootstraplauncher-1.1.2.jar:?] {} -- System Details -- Details:     Minecraft Version: 1.19     Minecraft Version ID: 1.19     Operating System: Windows 10 (amd64) version 10.0     Java Version: 17.0.3, Microsoft     Java VM Version: OpenJDK 64-Bit Server VM (mixed mode), Microsoft     Memory: 388041088 bytes (370 MiB) / 838860800 bytes (800 MiB) up to 2147483648 bytes (2048 MiB)     CPUs: 12     Processor Vendor: GenuineIntel     Processor Name: Intel(R) Core(TM) i5-10400F CPU @ 2.90GHz     Identifier: Intel64 Family 6 Model 165 Stepping 5     Microarchitecture: unknown     Frequency (GHz): 2.90     Number of physical packages: 1     Number of physical CPUs: 6     Number of logical CPUs: 12     Graphics card #0 name: NVIDIA GeForce GTX 1660 Ti     Graphics card #0 vendor: NVIDIA (0x10de)     Graphics card #0 VRAM (MB): 4095.00     Graphics card #0 deviceId: 0x2182     Graphics card #0 versionInfo: DriverVersion=30.0.14.7196     Memory slot #0 capacity (MB): 8192.00     Memory slot #0 clockSpeed (GHz): 2.13     Memory slot #0 type: DDR4     Memory slot #1 capacity (MB): 16384.00     Memory slot #1 clockSpeed (GHz): 2.13     Memory slot #1 type: DDR4     Memory slot #2 capacity (MB): 16384.00     Memory slot #2 clockSpeed (GHz): 2.13     Memory slot #2 type: DDR4     Virtual memory max (MB): 46092.41     Virtual memory used (MB): 17252.70     Swap memory total (MB): 5200.06     Swap memory used (MB): 0.00     JVM Flags: 9 total; -XX:HeapDumpPath=MojangTricksIntelDriversForPerformance_javaw.exe_minecraft.exe.heapdump -Xss1M -Xmx2G -XX:+UnlockExperimentalVMOptions -XX:+UseG1GC -XX:G1NewSizePercent=20 -XX:G1ReservePercent=20 -XX:MaxGCPauseMillis=50 -XX:G1HeapRegionSize=32M     Launched Version: 1.19-forge-41.1.0     Backend library: LWJGL version 3.3.1 build 7     Backend API: NVIDIA GeForce GTX 1660 Ti/PCIe/SSE2 GL version 3.2.0 NVIDIA 471.96, NVIDIA Corporation     Window size: 854x480     GL Caps: Using framebuffer using OpenGL 3.2     GL debug messages:      Using VBOs: Yes     Is Modded: Definitely; Client brand changed to 'forge'     Type: Client (map_client.txt)     Graphics mode: fancy     Resource Packs:      Current Language: English (US)     CPU: 12x Intel(R) Core(TM) i5-10400F CPU @ 2.90GHz     ModLauncher: 10.0.8+10.0.8+main.0ef7e830     ModLauncher launch target: forgeclient     ModLauncher naming: srg     ModLauncher services:          mixin-0.8.5.jar mixin PLUGINSERVICE          eventbus-6.0.0.jar eventbus PLUGINSERVICE          fmlloader-1.19-41.1.0.jar slf4jfixer PLUGINSERVICE          fmlloader-1.19-41.1.0.jar object_holder_definalize PLUGINSERVICE          fmlloader-1.19-41.1.0.jar runtime_enum_extender PLUGINSERVICE          fmlloader-1.19-41.1.0.jar capability_token_subclass PLUGINSERVICE          accesstransformers-8.0.4.jar accesstransformer PLUGINSERVICE          fmlloader-1.19-41.1.0.jar runtimedistcleaner PLUGINSERVICE          modlauncher-10.0.8.jar mixin TRANSFORMATIONSERVICE          modlauncher-10.0.8.jar fml TRANSFORMATIONSERVICE      FML Language Providers:          minecraft@1.0         lowcodefml@null         javafml@null     Mod List:          client-1.19-20220607.102129-srg.jar               |Minecraft                     |minecraft                     |1.19                |DONE      |Manifest: a1:d4:5e:04:4f:d3:d6:e0:7b:37:97:cf:77:b0:de:ad:4a:47:ce:8c:96:49:5f:0a:cf:8c:ae:b2:6d:4b:8a:3f         lostcities-1.19-6.0.5.jar                         |LostCities                    |lostcities                    |1.19-6.0.5          |DONE      |Manifest: NOSIGNATURE         DungeonCrawl-1.19-2.3.10.jar                      |Dungeon Crawl                 |dungeoncrawl                  |2.3.10              |DONE      |Manifest: NOSIGNATURE         forge-1.19-41.1.0-universal.jar                   |Forge                         |forge                         |41.1.0              |DONE      |Manifest: 84:ce:76:e8:45:35:e4:0e:63:86:df:47:59:80:0f:67:6c:c1:5f:6e:5f:4d:b3:54:47:1a:9f:7f:ed:5e:f2:90         upgradedcore-1.19-4.0.0.3-beta.jar                |Upgraded Core                 |upgradedcore                  |1.19-4.0.0.3-beta   |DONE      |Manifest: NOSIGNATURE         upgradednetherite-1.19-5.0.0.4-beta.jar           |Upgraded Netherite            |upgradednetherite             |1.19-5.0.0.4-beta   |DONE      |Manifest: NOSIGNATURE         OreExcavation-1.11.165.jar                        |OreExcavation                 |oreexcavation                 |1.11.165            |DONE      |Manifest: NOSIGNATURE     Crash Report UUID: 790c27ed-eaab-468b-b8a5-eedfd25de927     FML: 41.1     Forge: net.minecraftforge:41.1.0
  • Topics

×
×
  • Create New...

Important Information

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