Jump to content

[Solved] "Ticking memory connection"-error at onItemRightClick


Recommended Posts

Posted

So I was trying to make an item that compresses a specific item into another item. But something went wrong, and everytime I try to use the item by right-clicking the world unloads end the game crashes.

 

Here is the code for the item:

 public ItemStack onItemRightClick(ItemStack itemStack, World world, EntityPlayer player){

	InventoryPlayer inv = player.inventory;
	ItemStack playerInv[] = inv.mainInventory;
	ItemStack currentItem = player.getCurrentEquippedItem();

	if(this.getDamage(player.getCurrentEquippedItem()) == 0){
		for(int i = 0; i < 36; ++i){
			if(playerInv[i].itemID == Afternuke.mBottleCap.itemID){    //The Console says that the error is this line
				int stackSize = playerInv[i].stackSize;
				if(stackSize == 64){
					int itemDamage = playerInv[i].getItemDamage();
					if(itemDamage == 0){
						inv.addItemStackToInventory(new ItemStack(5003, 1, 1));
					} else if(itemDamage == 1){
						inv.addItemStackToInventory(new ItemStack(5003, 1, 2));
					} else if(itemDamage == 2){
						inv.addItemStackToInventory(new ItemStack(5003, 1, 2));
					}
					playerInv[i].stackSize = 0;
				}		
			}
		}
		return itemStack;
	}
	else if(this.getDamage(player.getCurrentEquippedItem()) == 1){
		inv.addItemStackToInventory(new ItemStack(5002, 64, 0));
		currentItem.stackSize = 0;
	}
	else if(this.getDamage(player.getCurrentEquippedItem()) == 2){
		inv.addItemStackToInventory(new ItemStack(5002, 64, 1));
		currentItem.stackSize = 0;
	}
	else if (this.getDamage(player.getCurrentEquippedItem()) == 3){
		inv.addItemStackToInventory(new ItemStack(5002, 64, 2));
		currentItem.stackSize = 0;
	}
	else {
		System.out.println("[Afternuke Mod] Didn't know what to do! Something went wrong, you probably held an Item with an invalid Damagevalue.");
	}
    	return itemStack;
}

 

And this is what keeps happening all the time:

2013-09-28 23:38:07 [iNFO] [sTDERR] net.minecraft.util.ReportedException: Ticking memory connection
2013-09-28 23:38:07 [iNFO] [sTDERR] 	at net.minecraft.network.NetworkListenThread.networkTick(NetworkListenThread.java:63)
2013-09-28 23:38:07 [iNFO] [sTDERR] 	at net.minecraft.server.integrated.IntegratedServerListenThread.networkTick(IntegratedServerListenThread.java:109)
2013-09-28 23:38:07 [iNFO] [sTDERR] 	at net.minecraft.server.MinecraftServer.updateTimeLightAndEntities(MinecraftServer.java:689)
2013-09-28 23:38:07 [iNFO] [sTDERR] 	at net.minecraft.server.MinecraftServer.tick(MinecraftServer.java:585)
2013-09-28 23:38:07 [iNFO] [sTDERR] 	at net.minecraft.server.integrated.IntegratedServer.tick(IntegratedServer.java:129)
2013-09-28 23:38:07 [iNFO] [sTDERR] 	at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:482)
2013-09-28 23:38:07 [iNFO] [sTDERR] 	at net.minecraft.server.ThreadMinecraftServer.run(ThreadMinecraftServer.java:16)
2013-09-28 23:38:07 [iNFO] [sTDERR] Caused by: java.lang.NullPointerException
2013-09-28 23:38:07 [iNFO] [sTDERR] 	at de.theGalidor.afternuke.ANItemMBags.onItemRightClick(ANItemMBags.java:24)
2013-09-28 23:38:07 [iNFO] [sTDERR] 	at net.minecraft.item.ItemStack.useItemRightClick(ItemStack.java:176)
2013-09-28 23:38:07 [iNFO] [sTDERR] 	at net.minecraft.item.ItemInWorldManager.tryUseItem(ItemInWorldManager.java:353)
2013-09-28 23:38:07 [iNFO] [sTDERR] 	at net.minecraft.network.NetServerHandler.handlePlace(NetServerHandler.java:540)
2013-09-28 23:38:07 [iNFO] [sTDERR] 	at net.minecraft.network.packet.Packet15Place.processPacket(Packet15Place.java:79)
2013-09-28 23:38:07 [iNFO] [sTDERR] 	at net.minecraft.network.MemoryConnection.processReadPackets(MemoryConnection.java:89)
2013-09-28 23:38:07 [iNFO] [sTDERR] 	at net.minecraft.network.NetServerHandler.networkTick(NetServerHandler.java:141)
2013-09-28 23:38:07 [iNFO] [sTDERR] 	at net.minecraft.network.NetworkListenThread.networkTick(NetworkListenThread.java:54)
2013-09-28 23:38:07 [iNFO] [sTDERR] 	... 6 more
2013-09-28 23:38:07 [sEVERE] [Minecraft-Server] Encountered an unexpected exception ReportedException
net.minecraft.util.ReportedException: Ticking memory connection
at net.minecraft.network.NetworkListenThread.networkTick(NetworkListenThread.java:63)
at net.minecraft.server.integrated.IntegratedServerListenThread.networkTick(IntegratedServerListenThread.java:109)
at net.minecraft.server.MinecraftServer.updateTimeLightAndEntities(MinecraftServer.java:689)
at net.minecraft.server.MinecraftServer.tick(MinecraftServer.java:585)
at net.minecraft.server.integrated.IntegratedServer.tick(IntegratedServer.java:129)
at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:482)
at net.minecraft.server.ThreadMinecraftServer.run(ThreadMinecraftServer.java:16)
Caused by: java.lang.NullPointerException
at de.theGalidor.afternuke.ANItemMBags.onItemRightClick(ANItemMBags.java:24)
at net.minecraft.item.ItemStack.useItemRightClick(ItemStack.java:176)
at net.minecraft.item.ItemInWorldManager.tryUseItem(ItemInWorldManager.java:353)
at net.minecraft.network.NetServerHandler.handlePlace(NetServerHandler.java:540)
at net.minecraft.network.packet.Packet15Place.processPacket(Packet15Place.java:79)
at net.minecraft.network.MemoryConnection.processReadPackets(MemoryConnection.java:89)
at net.minecraft.network.NetServerHandler.networkTick(NetServerHandler.java:141)
at net.minecraft.network.NetworkListenThread.networkTick(NetworkListenThread.java:54)
... 6 more
2013-09-28 23:38:07 [sEVERE] [Minecraft-Server] This crash report has been saved to: C:\Users\User\Desktop\MCP mit Forge 1.6.2\forge\mcp\jars\.\crash-reports\crash-2013-09-28_23.38.07-server.txt
2013-09-28 23:38:07 [iNFO] [Minecraft-Server] Stopping server
2013-09-28 23:38:07 [iNFO] [Minecraft-Server] Saving players
2013-09-28 23:38:07 [iNFO] [Minecraft-Server] Player344 left the game
2013-09-28 23:38:07 [iNFO] [Minecraft-Server] Saving worlds
2013-09-28 23:38:07 [iNFO] [Minecraft-Server] Saving chunks for level 'Test World'/Overworld
2013-09-28 23:38:07 [iNFO] [Minecraft-Server] Saving chunks for level 'Test World'/Nether
2013-09-28 23:38:07 [iNFO] [Minecraft-Server] Saving chunks for level 'Test World'/The End
2013-09-28 23:38:08 [iNFO] [ForgeModLoader] Unloading dimension 0
2013-09-28 23:38:08 [iNFO] [ForgeModLoader] Unloading dimension -1
2013-09-28 23:38:08 [iNFO] [ForgeModLoader] Unloading dimension 1
2013-09-28 23:38:08 [iNFO] [sTDERR] java.lang.NullPointerException
2013-09-28 23:38:08 [iNFO] [sTDERR] 	at de.theGalidor.afternuke.ANItemMBags.onItemRightClick(ANItemMBags.java:24)
2013-09-28 23:38:08 [iNFO] [ForgeModLoader] The state engine was in incorrect state SERVER_STOPPING and forced into state SERVER_STOPPED. Errors may have been discarded.
2013-09-28 23:38:08 [iNFO] [sTDERR] 	at net.minecraft.item.ItemStack.useItemRightClick(ItemStack.java:176)
2013-09-28 23:38:08 [iNFO] [sTDERR] 	at net.minecraft.client.multiplayer.PlayerControllerMP.sendUseItem(PlayerControllerMP.java:428)
2013-09-28 23:38:08 [iNFO] [sTDERR] 	at net.minecraft.client.Minecraft.clickMouse(Minecraft.java:1415)
2013-09-28 23:38:08 [iNFO] [sTDERR] 	at net.minecraft.client.Minecraft.runTick(Minecraft.java:1866)
2013-09-28 23:38:08 [iNFO] [sTDERR] 	at net.minecraft.client.Minecraft.runGameLoop(Minecraft.java:908)
2013-09-28 23:38:08 [iNFO] [sTDERR] 	at net.minecraft.client.Minecraft.run(Minecraft.java:836)
2013-09-28 23:38:08 [iNFO] [sTDERR] 	at net.minecraft.client.main.Main.main(Main.java:93)
2013-09-28 23:38:08 [iNFO] [sTDERR] 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
2013-09-28 23:38:08 [iNFO] [sTDERR] 	at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
2013-09-28 23:38:08 [iNFO] [sTDERR] 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
2013-09-28 23:38:08 [iNFO] [sTDERR] 	at java.lang.reflect.Method.invoke(Unknown Source)
2013-09-28 23:38:08 [iNFO] [sTDERR] 	at net.minecraft.launchwrapper.Launch.launch(Launch.java:57)
2013-09-28 23:38:08 [iNFO] [sTDERR] 	at net.minecraft.launchwrapper.Launch.main(Launch.java:18)
2013-09-28 23:38:08 [iNFO] [sTDOUT] ---- Minecraft Crash Report ----
2013-09-28 23:38:08 [iNFO] [sTDOUT] // Who set us up the TNT?
2013-09-28 23:38:08 [iNFO] [sTDOUT] 
2013-09-28 23:38:08 [iNFO] [sTDOUT] Time: 28.09.13 23:38
2013-09-28 23:38:08 [iNFO] [sTDOUT] Description: Unexpected error
2013-09-28 23:38:08 [iNFO] [sTDOUT] 
2013-09-28 23:38:08 [iNFO] [sTDOUT] java.lang.NullPointerException
2013-09-28 23:38:08 [iNFO] [sTDOUT] 	at de.theGalidor.afternuke.ANItemMBags.onItemRightClick(ANItemMBags.java:24)
2013-09-28 23:38:08 [iNFO] [sTDOUT] 	at net.minecraft.item.ItemStack.useItemRightClick(ItemStack.java:176)
2013-09-28 23:38:08 [iNFO] [sTDOUT] 	at net.minecraft.client.multiplayer.PlayerControllerMP.sendUseItem(PlayerControllerMP.java:428)
2013-09-28 23:38:08 [iNFO] [sTDOUT] 	at net.minecraft.client.Minecraft.clickMouse(Minecraft.java:1415)
2013-09-28 23:38:08 [iNFO] [sTDOUT] 	at net.minecraft.client.Minecraft.runTick(Minecraft.java:1866)
2013-09-28 23:38:08 [iNFO] [sTDOUT] 	at net.minecraft.client.Minecraft.runGameLoop(Minecraft.java:908)
2013-09-28 23:38:08 [iNFO] [sTDOUT] 	at net.minecraft.client.Minecraft.run(Minecraft.java:836)
2013-09-28 23:38:08 [iNFO] [sTDOUT] 	at net.minecraft.client.main.Main.main(Main.java:93)
2013-09-28 23:38:08 [iNFO] [sTDOUT] 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
2013-09-28 23:38:08 [iNFO] [sTDOUT] 	at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
2013-09-28 23:38:08 [iNFO] [sTDOUT] 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
2013-09-28 23:38:08 [iNFO] [sTDOUT] 	at java.lang.reflect.Method.invoke(Unknown Source)
2013-09-28 23:38:08 [iNFO] [sTDOUT] 	at net.minecraft.launchwrapper.Launch.launch(Launch.java:57)
2013-09-28 23:38:08 [iNFO] [sTDOUT] 	at net.minecraft.launchwrapper.Launch.main(Launch.java:18)
2013-09-28 23:38:08 [iNFO] [sTDOUT] 
2013-09-28 23:38:08 [iNFO] [sTDOUT] 
2013-09-28 23:38:08 [iNFO] [sTDOUT] A detailed walkthrough of the error, its code path and all known details is as follows:
2013-09-28 23:38:08 [iNFO] [sTDOUT] ---------------------------------------------------------------------------------------
2013-09-28 23:38:08 [iNFO] [sTDOUT] 
2013-09-28 23:38:08 [iNFO] [sTDOUT] -- Head --
2013-09-28 23:38:08 [iNFO] [sTDOUT] Stacktrace:
2013-09-28 23:38:08 [iNFO] [sTDOUT] 	at de.theGalidor.afternuke.ANItemMBags.onItemRightClick(ANItemMBags.java:24)
2013-09-28 23:38:08 [iNFO] [sTDOUT] 	at net.minecraft.item.ItemStack.useItemRightClick(ItemStack.java:176)
2013-09-28 23:38:08 [iNFO] [sTDOUT] 	at net.minecraft.client.multiplayer.PlayerControllerMP.sendUseItem(PlayerControllerMP.java:428)
2013-09-28 23:38:08 [iNFO] [sTDOUT] 	at net.minecraft.client.Minecraft.clickMouse(Minecraft.java:1415)
2013-09-28 23:38:08 [iNFO] [sTDOUT] 
2013-09-28 23:38:08 [iNFO] [sTDOUT] -- Affected level --
2013-09-28 23:38:08 [iNFO] [sTDOUT] Details:
2013-09-28 23:38:08 [iNFO] [sTDOUT] 	Level name: MpServer
2013-09-28 23:38:08 [iNFO] [sTDOUT] 	All players: 1 total; [EntityClientPlayerMP['Player344'/197, l='MpServer', x=-52,24, y=69,62, z=380,62]]
2013-09-28 23:38:08 [iNFO] [sTDOUT] 	Chunk stats: MultiplayerChunkCache: 170
2013-09-28 23:38:08 [iNFO] [sTDOUT] 	Level seed: 0
2013-09-28 23:38:08 [iNFO] [sTDOUT] 	Level generator: ID 00 - default, ver 1. Features enabled: false
2013-09-28 23:38:08 [iNFO] [sTDOUT] 	Level generator options: 
2013-09-28 23:38:08 [iNFO] [sTDOUT] 	Level spawn location: World: (-143,64,382), Chunk: (at 1,4,14 in -9,23; contains blocks -144,0,368 to -129,255,383), Region: (-1,0; contains chunks -32,0 to -1,31, blocks -512,0,0 to -1,255,511)
2013-09-28 23:38:08 [iNFO] [sTDOUT] 	Level time: 119341 game time, 6959 day time
2013-09-28 23:38:08 [iNFO] [sTDOUT] 	Level dimension: 0
2013-09-28 23:38:08 [iNFO] [sTDOUT] 	Level storage version: 0x00000 - Unknown?
2013-09-28 23:38:08 [iNFO] [sTDOUT] 	Level weather: Rain time: 0 (now: false), thunder time: 0 (now: false)
2013-09-28 23:38:08 [iNFO] [sTDOUT] 	Level game mode: Game mode: survival (ID 0). Hardcore: false. Cheats: false
2013-09-28 23:38:08 [iNFO] [sTDOUT] 	Forced entities: 81 total; [EntitySpider['Spider'/139, l='MpServer', x=3,00, y=26,00, z=343,44], EntityZombie['Zombie'/138, l='MpServer', x=3,50, y=25,00, z=330,50], EntitySkeleton['Skeleton'/141, l='MpServer', x=1,50, y=37,00, z=346,50], EntityZombie['Zombie'/140, l='MpServer', x=3,25, y=26,00, z=340,75], EntityBat['Bat'/143, l='MpServer', x=9,51, y=30,52, z=355,25], EntityCreeper['Creeper'/135, l='MpServer', x=6,06, y=37,00, z=313,31], EntityCreeper['Creeper'/134, l='MpServer', x=10,00, y=23,00, z=306,47], EntityCreeper['Creeper'/152, l='MpServer', x=12,03, y=13,00, z=420,47], EntitySkeleton['Skeleton'/153, l='MpServer', x=13,41, y=25,00, z=419,91], EntityCreeper['Creeper'/156, l='MpServer', x=22,50, y=17,00, z=308,48], EntitySpider['Spider'/157, l='MpServer', x=24,59, y=16,00, z=305,47], EntityCreeper['Creeper'/145, l='MpServer', x=0,44, y=15,00, z=373,47], EntityBat['Bat'/146, l='MpServer', x=2,25, y=18,10, z=378,28], EntityCreeper['Creeper'/147, l='MpServer', x=2,32, y=16,00, z=377,83], EntityEnderman['Enderman'/148, l='MpServer', x=1,95, y=16,00, z=376,93], EntityCreeper['Creeper'/149, l='MpServer', x=13,91, y=30,00, z=385,53], EntityCreeper['Creeper'/150, l='MpServer', x=8,50, y=13,00, z=412,50], EntityCreeper['Creeper'/151, l='MpServer', x=9,94, y=13,00, z=412,38], EntitySlime['Slime'/34, l='MpServer', x=-117,69, y=12,00, z=415,69], EntityCreeper['Creeper'/33, l='MpServer', x=-120,41, y=19,00, z=330,00], EntityZombie['Zombie'/39, l='MpServer', x=-108,06, y=36,00, z=337,53], EntitySlime['Slime'/42, l='MpServer', x=-105,22, y=13,00, z=417,78], EntityCow['Cow'/162, l='MpServer', x=24,74, y=67,00, z=409,35], EntityCreeper['Creeper'/43, l='MpServer', x=-103,06, y=47,00, z=432,06], EntitySkeleton['Skeleton'/161, l='MpServer', x=17,56, y=49,00, z=406,88], EntityCreeper['Creeper'/40, l='MpServer', x=-100,31, y=27,00, z=392,27], EntitySkeleton['Skeleton'/160, l='MpServer', x=19,50, y=49,00, z=403,50], EntitySpider['Spider'/41, l='MpServer', x=-101,30, y=27,00, z=391,08], EntityCow['Cow'/164, l='MpServer', x=20,44, y=63,00, z=425,06], EntityCreeper['Creeper'/51, l='MpServer', x=-81,53, y=14,00, z=443,38], EntitySquid['Squid'/50, l='MpServer', x=-86,70, y=59,06, z=421,47], EntitySquid['Squid'/49, l='MpServer', x=-86,50, y=57,38, z=423,68], EntityBat['Bat'/48, l='MpServer', x=-88,75, y=13,10, z=403,53], EntityCow['Cow'/54, l='MpServer', x=-90,75, y=63,00, z=460,78], EntitySkeleton['Skeleton'/52, l='MpServer', x=-95,53, y=14,00, z=460,72], EntityCreeper['Creeper'/63, l='MpServer', x=-77,28, y=31,00, z=329,50], EntitySquid['Squid'/68, l='MpServer', x=-71,14, y=52,32, z=337,93], EntitySquid['Squid'/69, l='MpServer', x=-73,01, y=52,55, z=339,79], EntitySkeleton['Skeleton'/70, l='MpServer', x=-67,66, y=33,00, z=399,97], EntityZombie['Zombie'/71, l='MpServer', x=-52,50, y=38,00, z=303,50], EntityEnderman['Enderman'/64, l='MpServer', x=-72,22, y=19,00, z=325,22], EntitySpider['Spider'/65, l='MpServer', x=-67,13, y=31,00, z=326,30], EntitySquid['Squid'/66, l='MpServer', x=-76,98, y=53,35, z=335,22], EntitySquid['Squid'/67, l='MpServer', x=-78,75, y=54,00, z=343,53], EntityZombie['Zombie'/76, l='MpServer', x=-63,50, y=31,00, z=323,50], EntitySquid['Squid'/77, l='MpServer', x=-48,83, y=46,00, z=344,48], EntitySquid['Squid'/78, l='MpServer', x=-50,31, y=46,19, z=341,22], EntitySquid['Squid'/79, l='MpServer', x=-48,66, y=48,49, z=336,59], EntityZombie['Zombie'/72, l='MpServer', x=-50,91, y=38,00, z=307,38], EntityZombie['Zombie'/73, l='MpServer', x=-51,25, y=38,00, z=306,16], EntityZombie['Zombie'/74, l='MpServer', x=-51,44, y=38,00, z=304,97], EntityZombie['Zombie'/75, l='MpServer', x=-53,31, y=24,30, z=335,69], EntityBat['Bat'/87, l='MpServer', x=-38,45, y=11,00, z=320,47], EntityBat['Bat'/81, l='MpServer', x=-51,25, y=48,10, z=401,34], EntityEnderman['Enderman'/80, l='MpServer', x=-55,50, y=47,00, z=401,06], EntityBat['Bat'/82, l='MpServer', x=-51,25, y=48,10, z=401,25], EntityZombie['Zombie'/93, l='MpServer', x=-35,16, y=12,00, z=367,53], EntityCreeper['Creeper'/92, l='MpServer', x=-34,84, y=19,00, z=344,91], EntityClientPlayerMP['Player344'/197, l='MpServer', x=-52,24, y=69,62, z=380,62], EntityZombie['Zombie'/95, l='MpServer', x=-36,75, y=13,00, z=369,22], EntityZombie['Zombie'/94, l='MpServer', x=-34,50, y=12,00, z=359,50], EntitySkeleton['Skeleton'/89, l='MpServer', x=-46,38, y=19,00, z=332,78], EntitySpider['Spider'/88, l='MpServer', x=-44,81, y=19,00, z=333,19], EntityBat['Bat'/91, l='MpServer', x=-37,76, y=31,71, z=334,20], EntityCreeper['Creeper'/90, l='MpServer', x=-45,47, y=34,00, z=331,25], EntityBat['Bat'/98, l='MpServer', x=-42,47, y=35,10, z=457,25], EntityBat['Bat'/96, l='MpServer', x=-35,44, y=51,10, z=389,50], EntitySquid['Squid'/108, l='MpServer', x=-18,96, y=58,00, z=433,41], EntityZombie['Zombie'/106, l='MpServer', x=-19,50, y=37,00, z=367,50], EntitySquid['Squid'/107, l='MpServer', x=-23,59, y=58,00, z=431,47], EntitySquid['Squid'/104, l='MpServer', x=-30,21, y=46,41, z=345,00], EntitySquid['Squid'/105, l='MpServer', x=-30,35, y=44,00, z=342,60], EntityBat['Bat'/119, l='MpServer', x=-0,41, y=23,10, z=378,25], EntitySquid['Squid'/118, l='MpServer', x=-10,22, y=49,38, z=362,56], EntityZombie['Zombie'/117, l='MpServer', x=-15,50, y=37,00, z=365,50], EntityZombie['Zombie'/116, l='MpServer', x=-10,50, y=29,00, z=322,50], EntityZombie['Zombie'/114, l='MpServer', x=-7,50, y=36,00, z=318,50], EntityCreeper['Creeper'/113, l='MpServer', x=-9,97, y=15,00, z=304,56], EntityEnderman['Enderman'/122, l='MpServer', x=-12,44, y=36,00, z=439,94], EntitySquid['Squid'/121, l='MpServer', x=-0,44, y=47,00, z=373,62], EntityBat['Bat'/120, l='MpServer', x=-14,53, y=26,00, z=368,74]]
2013-09-28 23:38:08 [iNFO] [sTDOUT] 	Retry entities: 0 total; []
2013-09-28 23:38:08 [iNFO] [sTDOUT] 	Server brand: fml,forge
2013-09-28 23:38:08 [iNFO] [sTDOUT] 	Server type: Integrated singleplayer server
2013-09-28 23:38:08 [iNFO] [sTDOUT] Stacktrace:
2013-09-28 23:38:08 [iNFO] [sTDOUT] 	at net.minecraft.client.multiplayer.WorldClient.addWorldInfoToCrashReport(WorldClient.java:440)
2013-09-28 23:38:08 [iNFO] [sTDOUT] 	at net.minecraft.client.Minecraft.addGraphicsAndWorldToCrashReport(Minecraft.java:2310)
2013-09-28 23:38:08 [iNFO] [sTDOUT] 	at net.minecraft.client.Minecraft.run(Minecraft.java:861)
2013-09-28 23:38:08 [iNFO] [sTDOUT] 	at net.minecraft.client.main.Main.main(Main.java:93)
2013-09-28 23:38:08 [iNFO] [sTDOUT] 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
2013-09-28 23:38:08 [iNFO] [sTDOUT] 	at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
2013-09-28 23:38:08 [iNFO] [sTDOUT] 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
2013-09-28 23:38:08 [iNFO] [sTDOUT] 	at java.lang.reflect.Method.invoke(Unknown Source)
2013-09-28 23:38:08 [iNFO] [sTDOUT] 	at net.minecraft.launchwrapper.Launch.launch(Launch.java:57)
2013-09-28 23:38:08 [iNFO] [sTDOUT] 	at net.minecraft.launchwrapper.Launch.main(Launch.java:18)
2013-09-28 23:38:08 [iNFO] [sTDOUT] 
2013-09-28 23:38:08 [iNFO] [sTDOUT] -- System Details --
2013-09-28 23:38:08 [iNFO] [sTDOUT] Details:
2013-09-28 23:38:08 [iNFO] [sTDOUT] 	Minecraft Version: 1.6.2
2013-09-28 23:38:08 [iNFO] [sTDOUT] 	Operating System: Windows 7 (amd64) version 6.1
2013-09-28 23:38:08 [iNFO] [sTDOUT] 	Java Version: 1.7.0_25, Oracle Corporation
2013-09-28 23:38:08 [iNFO] [sTDOUT] 	Java VM Version: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Oracle Corporation
2013-09-28 23:38:08 [iNFO] [sTDOUT] 	Memory: 680878768 bytes (649 MB) / 1037959168 bytes (989 MB) up to 1037959168 bytes (989 MB)
2013-09-28 23:38:08 [iNFO] [sTDOUT] 	JVM Flags: 3 total; -Xincgc -Xmx1024M -Xms1024M
2013-09-28 23:38:08 [iNFO] [sTDOUT] 	AABB Pool Size: 19238 (1077328 bytes; 1 MB) allocated, 2 (112 bytes; 0 MB) used
2013-09-28 23:38:08 [iNFO] [sTDOUT] 	Suspicious classes: FML and Forge are installed
2013-09-28 23:38:08 [iNFO] [sTDOUT] 	IntCache: cache: 0, tcache: 0, allocated: 1, tallocated: 63
2013-09-28 23:38:08 [iNFO] [sTDOUT] 	FML: MCP v8.04 FML v6.2.62.871 Minecraft Forge 9.10.1.871 4 mods loaded, 4 mods active
2013-09-28 23:38:08 [iNFO] [sTDOUT] 	mcp{8.04} [Minecraft Coder Pack] (minecraft.jar) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available
2013-09-28 23:38:08 [iNFO] [sTDOUT] 	FML{6.2.62.871} [Forge Mod Loader] (bin) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available
2013-09-28 23:38:08 [iNFO] [sTDOUT] 	Forge{9.10.1.871} [Minecraft Forge] (bin) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available
2013-09-28 23:38:08 [iNFO] [sTDOUT] 	afternuke{0.0.1} [After Nuke] (bin) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available
2013-09-28 23:38:08 [iNFO] [sTDOUT] 	Launched Version: 1.6
2013-09-28 23:38:08 [iNFO] [sTDOUT] 	LWJGL: 2.9.0
2013-09-28 23:38:08 [iNFO] [sTDOUT] 	OpenGL: AMD Radeon HD 7800 Series GL version 4.2.12217 Compatibility Profile Context 12.104.0.0, ATI Technologies Inc.
2013-09-28 23:38:08 [iNFO] [sTDOUT] 	Is Modded: Definitely; Client brand changed to 'fml,forge'
2013-09-28 23:38:08 [iNFO] [sTDOUT] 	Type: Client (map_client.txt)
2013-09-28 23:38:08 [iNFO] [sTDOUT] 	Resource Pack: Default
2013-09-28 23:38:08 [iNFO] [sTDOUT] 	Current Language: English (US)
2013-09-28 23:38:08 [iNFO] [sTDOUT] 	Profiler Position: N/A (disabled)
2013-09-28 23:38:08 [iNFO] [sTDOUT] 	Vec3 Pool Size: 14065 (787640 bytes; 0 MB) allocated, 18 (1008 bytes; 0 MB) used
2013-09-28 23:38:08 [iNFO] [sTDOUT] #@!@# Game crashed! Crash report saved to: #@!@# C:\Users\User\Desktop\MCP mit Forge 1.6.2\forge\mcp\jars\.\crash-reports\crash-2013-09-28_23.38.08-client.txt
AL lib: (EE) alc_cleanup: 1 device not closed

Posted

It's called a null check.

 

if(someObject != null) { //if the object isn't null
    if(someObject.property) { //then do things with it
        //do stuff
    }
}

Apparently I'm a complete and utter jerk and come to this forum just like to make fun of people, be confrontational, and make your personal life miserable.  If you think this is the case, JUST REPORT ME.  Otherwise you're just going to get reported when you reply to my posts and point it out, because odds are, I was trying to be nice.

 

Exception: If you do not understand Java, I WILL NOT HELP YOU and your thread will get locked.

 

DO NOT PM ME WITH PROBLEMS. No help will be given.

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

    • Rubidium and Embeddium are versions of the same mod, you can only have one. I believe Embeddium is the one that's actively maintained.
    • Hello, New to modding, but have a solid CS foundation. I've created multiple custom BlockEntities that all have the same issue, which is that the inventory only updates on right click (overriding the useItemOn method). I've seen multiple posts on here outlining a similar issue to mine, but I've already implemented the solution of: overriding the correct methods in the BlockEntity class and calling setChanged(). I've tried every different place for setChanged() to no success. I'm wondering if I'm missing something else or if there was some change to sending data to the client in 1.21.5? Or will I have to use a custom packet sender? Here is the code for one of my BlockEntity classes with a single inventory slot: public class MyCustomBlockEntity extends BlockEntity { public final ItemStackHandler inventory = new ItemStackHandler(1) { @Override protected int getStackLimit(int slot, @NotNull ItemStack stack) { return 1; } @Override protected void onContentsChanged(int slot) { setChanged(); if (!level.isClientSide()) { level.setBlockAndUpdate(getBlockPos(), getBlockState()); } } }; public MyCustomBlockEntity(BlockPos pPos, BlockState pBlockState) { super(ModBlockEntities.MY_CUSTOM_BE.get(), pPos, pBlockState); } public void clearContents() { inventory.setStackInSlot(0, ItemStack.EMPTY); } public void dropItem() { SimpleContainer inv = new SimpleContainer(inventory.getSlots()); inv.setItem(0, inventory.getStackInSlot(0)); Containers.dropContents(this.level, this.worldPosition, inv); } @Override public void setRemoved() { dropItem(); super.setRemoved(); } @Override protected void saveAdditional(CompoundTag pTag, HolderLookup.Provider pRegistries) { super.saveAdditional(pTag, pRegistries); pTag.put("inventory", inventory.serializeNBT(pRegistries)); } @Override protected void loadAdditional(CompoundTag pTag, HolderLookup.Provider pRegistries) { super.loadAdditional(pTag, pRegistries); inventory.deserializeNBT(pRegistries, pTag.getCompound("inventory").get()); } @Override public Packet<ClientGamePacketListener> getUpdatePacket() { return ClientboundBlockEntityDataPacket.create(this); } @Override public CompoundTag getUpdateTag(HolderLookup.Provider pRegistries) { return saveWithoutMetadata(pRegistries); } } Mostly encountering the issue when calling the clearContents() method anywhere outside of useItemOn() in the Block class. I've also tried overriding both the handleUpdateTag() and onDataPacket() methods, calling their super along with loadAdditional(), but neither changed the outcome. Thanks in advance for any replies.
    • Hi all! I’m working on a Jurassic Park-themed mod for Minecraft 1.20.1, aiming to include dinosaurs, fossils, DNA extraction, and cool machines. This is a free project, mainly passion-driven, and I’ll give full credit to everyone involved. this is the perfect opportunity for beginners of modeling and coding. This project will give you experience and a creative freedom If you love dinosaurs and Minecraft modding, hit me up! Thanks! Add Me ogfrost. <--- Discord
    • I'm just really confused. This bug only applies to modpacks made by me. i have tried using different launchers prism, modrinth etc. I have tried with multiple modpacks. All of this has not prevented this bug. Relevant part of log is here: [06Jun2025 16:18:49.882] [main/ERROR] [net.minecraftforge.fml.loading.moddiscovery.ModDiscoverer/SCAN]: Failed to build unique mod list after mod discovery. net.minecraftforge.fml.loading.EarlyLoadingException: Duplicate mods found     at net.minecraftforge.fml.loading.UniqueModListBuilder.buildUniqueList(UniqueModListBuilder.java:87) ~[loader-47.2.2.jar:47.2]     at net.minecraftforge.fml.loading.moddiscovery.ModDiscoverer.discoverMods(ModDiscoverer.java:106) ~[loader-47.2.2.jar:47.2]     at net.minecraftforge.fml.loading.FMLLoader.beginModScan(FMLLoader.java:164) ~[loader-47.2.2.jar:47.2]     at net.minecraftforge.fml.loading.FMLServiceProvider.beginScanning(FMLServiceProvider.java:86) ~[loader-47.2.2.jar:47.2]     at cpw.mods.modlauncher.TransformationServiceDecorator.runScan(TransformationServiceDecorator.java:112) ~[modlauncher-10.0.9.jar:?]     at cpw.mods.modlauncher.TransformationServicesHandler.lambda$runScanningTransformationServices$8(TransformationServicesHandler.java:100) ~[modlauncher-10.0.9.jar:?]     at java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:197) ~[?:?]     at java.util.HashMap$ValueSpliterator.forEachRemaining(HashMap.java:1779) ~[?:?]     at java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:509) ~[?:?]     at java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:499) ~[?:?]     at java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:575) ~[?:?]     at java.util.stream.AbstractPipeline.evaluateToArrayNode(AbstractPipeline.java:260) ~[?:?]     at java.util.stream.ReferencePipeline.toArray(ReferencePipeline.java:616) ~[?:?]     at java.util.stream.ReferencePipeline.toArray(ReferencePipeline.java:622) ~[?:?]     at java.util.stream.ReferencePipeline.toList(ReferencePipeline.java:627) ~[?:?]     at cpw.mods.modlauncher.TransformationServicesHandler.runScanningTransformationServices(TransformationServicesHandler.java:102) ~[modlauncher-10.0.9.jar:?]     at cpw.mods.modlauncher.TransformationServicesHandler.initializeTransformationServices(TransformationServicesHandler.java:55) ~[modlauncher-10.0.9.jar:?]     at cpw.mods.modlauncher.Launcher.run(Launcher.java:88) ~[modlauncher-10.0.9.jar:?]     at cpw.mods.modlauncher.Launcher.main(Launcher.java:78) ~[modlauncher-10.0.9.jar:?]     at cpw.mods.modlauncher.BootstrapLaunchConsumer.accept(BootstrapLaunchConsumer.java:26) ~[modlauncher-10.0.9.jar:?]     at cpw.mods.modlauncher.BootstrapLaunchConsumer.accept(BootstrapLaunchConsumer.java:23) ~[modlauncher-10.0.9.jar:?]     at cpw.mods.bootstraplauncher.BootstrapLauncher.main(BootstrapLauncher.java:141) ~[bootstraplauncher-1.1.2.jar:?]     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 io.github.zekerzhayard.forgewrapper.installer.Main.main(Main.java:67) ~[?:?]     at org.prismlauncher.launcher.impl.StandardLauncher.launch(StandardLauncher.java:105) ~[?:?]     at org.prismlauncher.EntryPoint.listen(EntryPoint.java:129) ~[?:?]     at org.prismlauncher.EntryPoint.main(EntryPoint.java:70) ~[?:?] [06Jun2025 16:18:49.894] [main/ERROR] [net.minecraftforge.fml.loading.moddiscovery.ModDiscoverer/SCAN]: Mod Discovery failed. Skipping dependency discovery.     Full log [06Jun2025 16:18:48.612] [main/INFO] [cpw.mods.modlauncher.Launcher/MODLAUNCHER]: ModLauncher running: args [--username, DeltaBlack_, --version, 1.20.1, --gameDir, C:/Users/sammi/AppData/Roaming/PrismLauncher/instances/SITE 111/minecraft, --assetsDir, C:/Users/sammi/AppData/Roaming/PrismLauncher/assets, --assetIndex, 5, --uuid, 0ff86c0727f444f1a926b954a58d8c44, --accessToken, ????????, --userType, msa, --versionType, release, --launchTarget, forgeclient, --fml.forgeVersion, 47.1.105, --fml.fmlVersion, 47.2.2, --fml.mcVersion, 1.20.1, --fml.mcpVersion, 20230612.114412, --width, 854, --height, 480] [06Jun2025 16:18:48.615] [main/INFO] [cpw.mods.modlauncher.Launcher/MODLAUNCHER]: ModLauncher 10.0.9+10.0.9+main.dcd20f30 starting: java version 17.0.8 by Microsoft; OS Windows 11 arch amd64 version 10.0 [06Jun2025 16:18:49.050] [main/INFO] [net.minecraftforge.fml.loading.ImmediateWindowHandler/]: Loading ImmediateWindowProvider fmlearlywindow [06Jun2025 16:18:49.173] [main/INFO] [EARLYDISPLAY/]: Trying GL version 4.6 [06Jun2025 16:18:49.311] [main/INFO] [EARLYDISPLAY/]: Requested GL version 4.6 got version 4.6 [06Jun2025 16:18:49.496] [main/INFO] [mixin/]: SpongePowered MIXIN Subsystem Version=0.8.5 Source=union:/C:/Users/sammi/AppData/Roaming/PrismLauncher/libraries/org/spongepowered/mixin/0.8.5/mixin-0.8.5.jar%23152!/ Service=ModLauncher Env=CLIENT [06Jun2025 16:18:49.502] [pool-2-thread-1/INFO] [EARLYDISPLAY/]: GL info: AMD Radeon Graphics GL version 4.6.0 Core Profile Context 24.10.21.03.240627, ATI Technologies Inc. [06Jun2025 16:18:49.713] [main/INFO] [net.minecraftforge.fml.loading.moddiscovery.ModDiscoverer/SCAN]: Found mod file "[1.20.1] SecurityCraft v1.10.0.1.jar" of type MOD with provider {mods folder locator at C:\Users\sammi\AppData\Roaming\PrismLauncher\instances\SITE 111\minecraft\mods} [06Jun2025 16:18:49.713] [main/INFO] [net.minecraftforge.fml.loading.moddiscovery.ModDiscoverer/SCAN]: Found mod file "ad_astra-forge-1.20.1-1.15.20.jar" of type MOD with provider {mods folder locator at C:\Users\sammi\AppData\Roaming\PrismLauncher\instances\SITE 111\minecraft\mods} [06Jun2025 16:18:49.713] [main/INFO] [net.minecraftforge.fml.loading.moddiscovery.ModDiscoverer/SCAN]: Found mod file "architectury-9.2.14-forge.jar" of type MOD with provider {mods folder locator at C:\Users\sammi\AppData\Roaming\PrismLauncher\instances\SITE 111\minecraft\mods} [06Jun2025 16:18:49.713] [main/INFO] [net.minecraftforge.fml.loading.moddiscovery.ModDiscoverer/SCAN]: Found mod file "bellsandwhistles-0.4.5-1.20.x-Create6.0+.jar" of type MOD with provider {mods folder locator at C:\Users\sammi\AppData\Roaming\PrismLauncher\instances\SITE 111\minecraft\mods} [06Jun2025 16:18:49.713] [main/INFO] [net.minecraftforge.fml.loading.moddiscovery.ModDiscoverer/SCAN]: Found mod file "botarium-forge-1.20.1-2.3.4.jar" of type MOD with provider {mods folder locator at C:\Users\sammi\AppData\Roaming\PrismLauncher\instances\SITE 111\minecraft\mods} [06Jun2025 16:18:49.713] [main/INFO] [net.minecraftforge.fml.loading.moddiscovery.ModDiscoverer/SCAN]: Found mod file "chloride-FORGE-mc1.20.1-v1.7.2.jar" of type MOD with provider {mods folder locator at C:\Users\sammi\AppData\Roaming\PrismLauncher\instances\SITE 111\minecraft\mods} [06Jun2025 16:18:49.713] [main/INFO] [net.minecraftforge.fml.loading.moddiscovery.ModDiscoverer/SCAN]: Found mod file "copycats-3.0.1+mc.1.20.1-forge.jar" of type MOD with provider {mods folder locator at C:\Users\sammi\AppData\Roaming\PrismLauncher\instances\SITE 111\minecraft\mods} [06Jun2025 16:18:49.713] [main/INFO] [net.minecraftforge.fml.loading.moddiscovery.ModDiscoverer/SCAN]: Found mod file "Create Encased-1.20.1-1.7.1-fix2.jar" of type MOD with provider {mods folder locator at C:\Users\sammi\AppData\Roaming\PrismLauncher\instances\SITE 111\minecraft\mods} [06Jun2025 16:18:49.713] [main/INFO] [net.minecraftforge.fml.loading.moddiscovery.ModDiscoverer/SCAN]: Found mod file "create-1.20.1-6.0.4.jar" of type MOD with provider {mods folder locator at C:\Users\sammi\AppData\Roaming\PrismLauncher\instances\SITE 111\minecraft\mods} [06Jun2025 16:18:49.713] [main/INFO] [net.minecraftforge.fml.loading.moddiscovery.ModDiscoverer/SCAN]: Found mod file "create_enchantment_industry-1.3.2-for-create-6.0.4.jar" of type MOD with provider {mods folder locator at C:\Users\sammi\AppData\Roaming\PrismLauncher\instances\SITE 111\minecraft\mods} [06Jun2025 16:18:49.713] [main/INFO] [net.minecraftforge.fml.loading.moddiscovery.ModDiscoverer/SCAN]: Found mod file "create_security-0.1.2-forge-1.20.1.jar" of type MOD with provider {mods folder locator at C:\Users\sammi\AppData\Roaming\PrismLauncher\instances\SITE 111\minecraft\mods} [06Jun2025 16:18:49.714] [main/INFO] [net.minecraftforge.fml.loading.moddiscovery.ModDiscoverer/SCAN]: Found mod file "createdeco-2.0.3-1.20.1-forge.jar" of type MOD with provider {mods folder locator at C:\Users\sammi\AppData\Roaming\PrismLauncher\instances\SITE 111\minecraft\mods} [06Jun2025 16:18:49.714] [main/INFO] [net.minecraftforge.fml.loading.moddiscovery.ModDiscoverer/SCAN]: Found mod file "createframed-1.20.1-1.6.5.jar" of type MOD with provider {mods folder locator at C:\Users\sammi\AppData\Roaming\PrismLauncher\instances\SITE 111\minecraft\mods} [06Jun2025 16:18:49.714] [main/INFO] [net.minecraftforge.fml.loading.moddiscovery.ModDiscoverer/SCAN]: Found mod file "creategoggles-1.20.1-6.0.0-[FORGE].jar" of type MOD with provider {mods folder locator at C:\Users\sammi\AppData\Roaming\PrismLauncher\instances\SITE 111\minecraft\mods} [06Jun2025 16:18:49.715] [main/INFO] [net.minecraftforge.fml.loading.moddiscovery.ModDiscoverer/SCAN]: Found mod file "Crystal-Clear-2.1-Beta-forge.jar" of type MOD with provider {mods folder locator at C:\Users\sammi\AppData\Roaming\PrismLauncher\instances\SITE 111\minecraft\mods} [06Jun2025 16:18:49.715] [main/INFO] [net.minecraftforge.fml.loading.moddiscovery.ModDiscoverer/SCAN]: Found mod file "design_decor-0.4.0b-1.20.1.jar" of type MOD with provider {mods folder locator at C:\Users\sammi\AppData\Roaming\PrismLauncher\instances\SITE 111\minecraft\mods} [06Jun2025 16:18:49.715] [main/INFO] [net.minecraftforge.fml.loading.moddiscovery.ModDiscoverer/SCAN]: Found mod file "embeddium-0.3.31+mc1.20.1.jar" of type MOD with provider {mods folder locator at C:\Users\sammi\AppData\Roaming\PrismLauncher\instances\SITE 111\minecraft\mods} [06Jun2025 16:18:49.715] [main/INFO] [net.minecraftforge.fml.loading.moddiscovery.ModDiscoverer/SCAN]: Found mod file "entityculling-forge-1.7.4-mc1.20.1.jar" of type MOD with provider {mods folder locator at C:\Users\sammi\AppData\Roaming\PrismLauncher\instances\SITE 111\minecraft\mods} [06Jun2025 16:18:49.715] [main/INFO] [net.minecraftforge.fml.loading.moddiscovery.ModDiscoverer/SCAN]: Found mod file "interiors-0.5.6+forge-mc1.20.1-local.jar" of type MOD with provider {mods folder locator at C:\Users\sammi\AppData\Roaming\PrismLauncher\instances\SITE 111\minecraft\mods} [06Jun2025 16:18:49.715] [main/INFO] [net.minecraftforge.fml.loading.moddiscovery.ModDiscoverer/SCAN]: Found mod file "Jade-1.20.1-Forge-11.13.1.jar" of type MOD with provider {mods folder locator at C:\Users\sammi\AppData\Roaming\PrismLauncher\instances\SITE 111\minecraft\mods} [06Jun2025 16:18:49.715] [main/INFO] [net.minecraftforge.fml.loading.moddiscovery.ModDiscoverer/SCAN]: Found mod file "jei-1.20.1-forge-15.20.0.112.jar" of type MOD with provider {mods folder locator at C:\Users\sammi\AppData\Roaming\PrismLauncher\instances\SITE 111\minecraft\mods} [06Jun2025 16:18:49.715] [main/INFO] [net.minecraftforge.fml.loading.moddiscovery.ModDiscoverer/SCAN]: Found mod file "ManyIdeasCore-1.20.1-1.4.2.jar" of type MOD with provider {mods folder locator at C:\Users\sammi\AppData\Roaming\PrismLauncher\instances\SITE 111\minecraft\mods} [06Jun2025 16:18:49.715] [main/INFO] [net.minecraftforge.fml.loading.moddiscovery.ModDiscoverer/SCAN]: Found mod file "ManyIdeasDoors-1.20.1-1.2.3.jar" of type MOD with provider {mods folder locator at C:\Users\sammi\AppData\Roaming\PrismLauncher\instances\SITE 111\minecraft\mods} [06Jun2025 16:18:49.715] [main/INFO] [net.minecraftforge.fml.loading.moddiscovery.ModDiscoverer/SCAN]: Found mod file "prma-1.20.1-0.4.4-cr6.0-SIMPLE-beta-all.jar" of type MOD with provider {mods folder locator at C:\Users\sammi\AppData\Roaming\PrismLauncher\instances\SITE 111\minecraft\mods} [06Jun2025 16:18:49.715] [main/INFO] [net.minecraftforge.fml.loading.moddiscovery.ModDiscoverer/SCAN]: Found mod file "RecipesLibrary-1.20.1-2.0.1.jar" of type MOD with provider {mods folder locator at C:\Users\sammi\AppData\Roaming\PrismLauncher\instances\SITE 111\minecraft\mods} [06Jun2025 16:18:49.716] [main/INFO] [net.minecraftforge.fml.loading.moddiscovery.ModDiscoverer/SCAN]: Found mod file "resourcefulconfig-forge-1.20.1-2.1.3.jar" of type MOD with provider {mods folder locator at C:\Users\sammi\AppData\Roaming\PrismLauncher\instances\SITE 111\minecraft\mods} [06Jun2025 16:18:49.716] [main/INFO] [net.minecraftforge.fml.loading.moddiscovery.ModDiscoverer/SCAN]: Found mod file "resourcefullib-forge-1.20.1-2.1.29.jar" of type MOD with provider {mods folder locator at C:\Users\sammi\AppData\Roaming\PrismLauncher\instances\SITE 111\minecraft\mods} [06Jun2025 16:18:49.716] [main/INFO] [net.minecraftforge.fml.loading.moddiscovery.ModDiscoverer/SCAN]: Found mod file "rubidium-extra-0.5.4.4+mc1.20.1-build.131.jar" of type MOD with provider {mods folder locator at C:\Users\sammi\AppData\Roaming\PrismLauncher\instances\SITE 111\minecraft\mods} [06Jun2025 16:18:49.716] [main/INFO] [net.minecraftforge.fml.loading.moddiscovery.ModDiscoverer/SCAN]: Found mod file "rubidium-mc1.20.1-0.7.1.jar" of type MOD with provider {mods folder locator at C:\Users\sammi\AppData\Roaming\PrismLauncher\instances\SITE 111\minecraft\mods} [06Jun2025 16:18:49.716] [main/INFO] [net.minecraftforge.fml.loading.moddiscovery.ModDiscoverer/SCAN]: Found mod file "skinlayers3d-forge-1.7.5-mc1.20.1.jar" of type MOD with provider {mods folder locator at C:\Users\sammi\AppData\Roaming\PrismLauncher\instances\SITE 111\minecraft\mods} [06Jun2025 16:18:49.716] [main/INFO] [net.minecraftforge.fml.loading.moddiscovery.ModDiscoverer/SCAN]: Found mod file "Steam_Rails-1.6.7+forge-mc1.20.1.jar" of type MOD with provider {mods folder locator at C:\Users\sammi\AppData\Roaming\PrismLauncher\instances\SITE 111\minecraft\mods} [06Jun2025 16:18:49.716] [main/INFO] [net.minecraftforge.fml.loading.moddiscovery.ModDiscoverer/SCAN]: Found mod file "tacz-1.20.1-1.1.5.jar" of type MOD with provider {mods folder locator at C:\Users\sammi\AppData\Roaming\PrismLauncher\instances\SITE 111\minecraft\mods} [06Jun2025 16:18:49.716] [main/INFO] [net.minecraftforge.fml.loading.moddiscovery.ModDiscoverer/SCAN]: Found mod file "Xaeros_Minimap_25.2.6_Forge_1.20.jar" of type MOD with provider {mods folder locator at C:\Users\sammi\AppData\Roaming\PrismLauncher\instances\SITE 111\minecraft\mods} [06Jun2025 16:18:49.716] [main/INFO] [net.minecraftforge.fml.loading.moddiscovery.ModDiscoverer/SCAN]: Found mod file "XaerosWorldMap_1.39.9_Forge_1.20.jar" of type MOD with provider {mods folder locator at C:\Users\sammi\AppData\Roaming\PrismLauncher\instances\SITE 111\minecraft\mods} [06Jun2025 16:18:49.853] [main/WARN] [net.minecraftforge.fml.loading.moddiscovery.ModFileParser/LOADING]: Mod file C:\Users\sammi\AppData\Roaming\PrismLauncher\libraries\net\neoforged\fancymodloader\core\47.2.2\core-47.2.2.jar is missing mods.toml file [06Jun2025 16:18:49.856] [main/WARN] [net.minecraftforge.fml.loading.moddiscovery.ModFileParser/LOADING]: Mod file C:\Users\sammi\AppData\Roaming\PrismLauncher\libraries\net\neoforged\fancymodloader\language-java\47.2.2\language-java-47.2.2.jar is missing mods.toml file [06Jun2025 16:18:49.858] [main/WARN] [net.minecraftforge.fml.loading.moddiscovery.ModFileParser/LOADING]: Mod file C:\Users\sammi\AppData\Roaming\PrismLauncher\libraries\net\neoforged\fancymodloader\language-lowcode\47.2.2\language-lowcode-47.2.2.jar is missing mods.toml file [06Jun2025 16:18:49.861] [main/WARN] [net.minecraftforge.fml.loading.moddiscovery.ModFileParser/LOADING]: Mod file C:\Users\sammi\AppData\Roaming\PrismLauncher\libraries\net\neoforged\fancymodloader\language-minecraft\47.2.2\language-minecraft-47.2.2.jar is missing mods.toml file [06Jun2025 16:18:49.866] [main/INFO] [net.minecraftforge.fml.loading.moddiscovery.ModDiscoverer/SCAN]: Found mod file "core-47.2.2.jar" of type LIBRARY with provider net.minecraftforge.fml.loading.moddiscovery.MinecraftLocator@3c2fa57a [06Jun2025 16:18:49.867] [main/INFO] [net.minecraftforge.fml.loading.moddiscovery.ModDiscoverer/SCAN]: Found mod file "language-java-47.2.2.jar" of type LANGPROVIDER with provider net.minecraftforge.fml.loading.moddiscovery.MinecraftLocator@3c2fa57a [06Jun2025 16:18:49.867] [main/INFO] [net.minecraftforge.fml.loading.moddiscovery.ModDiscoverer/SCAN]: Found mod file "language-lowcode-47.2.2.jar" of type LANGPROVIDER with provider net.minecraftforge.fml.loading.moddiscovery.MinecraftLocator@3c2fa57a [06Jun2025 16:18:49.867] [main/INFO] [net.minecraftforge.fml.loading.moddiscovery.ModDiscoverer/SCAN]: Found mod file "language-minecraft-47.2.2.jar" of type LANGPROVIDER with provider net.minecraftforge.fml.loading.moddiscovery.MinecraftLocator@3c2fa57a [06Jun2025 16:18:49.867] [main/INFO] [net.minecraftforge.fml.loading.moddiscovery.ModDiscoverer/SCAN]: Found mod file "client-1.20.1-20230612.114412-srg.jar" of type MOD with provider net.minecraftforge.fml.loading.moddiscovery.MinecraftLocator@3c2fa57a [06Jun2025 16:18:49.867] [main/INFO] [net.minecraftforge.fml.loading.moddiscovery.ModDiscoverer/SCAN]: Found mod file "forge-1.20.1-47.1.105-universal.jar" of type MOD with provider net.minecraftforge.fml.loading.moddiscovery.MinecraftLocator@3c2fa57a [06Jun2025 16:18:49.872] [main/INFO] [net.minecraftforge.fml.loading.moddiscovery.ModDiscoverer/SCAN]: Found mod file "events-47.2.2.jar" of type GAMELIBRARY with provider net.minecraftforge.fml.loading.moddiscovery.BuiltinGameLibraryLocator@38834000 [06Jun2025 16:18:49.881] [main/ERROR] [net.minecraftforge.fml.loading.UniqueModListBuilder/LOADING]: Found duplicate mods:     Mod ID: 'rubidium' from mod files: rubidium-mc1.20.1-0.7.1.jar, embeddium-0.3.31+mc1.20.1.jar [06Jun2025 16:18:49.882] [main/ERROR] [net.minecraftforge.fml.loading.moddiscovery.ModDiscoverer/SCAN]: Failed to build unique mod list after mod discovery. net.minecraftforge.fml.loading.EarlyLoadingException: Duplicate mods found     at net.minecraftforge.fml.loading.UniqueModListBuilder.buildUniqueList(UniqueModListBuilder.java:87) ~[loader-47.2.2.jar:47.2]     at net.minecraftforge.fml.loading.moddiscovery.ModDiscoverer.discoverMods(ModDiscoverer.java:106) ~[loader-47.2.2.jar:47.2]     at net.minecraftforge.fml.loading.FMLLoader.beginModScan(FMLLoader.java:164) ~[loader-47.2.2.jar:47.2]     at net.minecraftforge.fml.loading.FMLServiceProvider.beginScanning(FMLServiceProvider.java:86) ~[loader-47.2.2.jar:47.2]     at cpw.mods.modlauncher.TransformationServiceDecorator.runScan(TransformationServiceDecorator.java:112) ~[modlauncher-10.0.9.jar:?]     at cpw.mods.modlauncher.TransformationServicesHandler.lambda$runScanningTransformationServices$8(TransformationServicesHandler.java:100) ~[modlauncher-10.0.9.jar:?]     at java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:197) ~[?:?]     at java.util.HashMap$ValueSpliterator.forEachRemaining(HashMap.java:1779) ~[?:?]     at java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:509) ~[?:?]     at java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:499) ~[?:?]     at java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:575) ~[?:?]     at java.util.stream.AbstractPipeline.evaluateToArrayNode(AbstractPipeline.java:260) ~[?:?]     at java.util.stream.ReferencePipeline.toArray(ReferencePipeline.java:616) ~[?:?]     at java.util.stream.ReferencePipeline.toArray(ReferencePipeline.java:622) ~[?:?]     at java.util.stream.ReferencePipeline.toList(ReferencePipeline.java:627) ~[?:?]     at cpw.mods.modlauncher.TransformationServicesHandler.runScanningTransformationServices(TransformationServicesHandler.java:102) ~[modlauncher-10.0.9.jar:?]     at cpw.mods.modlauncher.TransformationServicesHandler.initializeTransformationServices(TransformationServicesHandler.java:55) ~[modlauncher-10.0.9.jar:?]     at cpw.mods.modlauncher.Launcher.run(Launcher.java:88) ~[modlauncher-10.0.9.jar:?]     at cpw.mods.modlauncher.Launcher.main(Launcher.java:78) ~[modlauncher-10.0.9.jar:?]     at cpw.mods.modlauncher.BootstrapLaunchConsumer.accept(BootstrapLaunchConsumer.java:26) ~[modlauncher-10.0.9.jar:?]     at cpw.mods.modlauncher.BootstrapLaunchConsumer.accept(BootstrapLaunchConsumer.java:23) ~[modlauncher-10.0.9.jar:?]     at cpw.mods.bootstraplauncher.BootstrapLauncher.main(BootstrapLauncher.java:141) ~[bootstraplauncher-1.1.2.jar:?]     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 io.github.zekerzhayard.forgewrapper.installer.Main.main(Main.java:67) ~[?:?]     at org.prismlauncher.launcher.impl.StandardLauncher.launch(StandardLauncher.java:105) ~[?:?]     at org.prismlauncher.EntryPoint.listen(EntryPoint.java:129) ~[?:?]     at org.prismlauncher.EntryPoint.main(EntryPoint.java:70) ~[?:?] [06Jun2025 16:18:49.894] [main/ERROR] [net.minecraftforge.fml.loading.moddiscovery.ModDiscoverer/SCAN]: Mod Discovery failed. Skipping dependency discovery.    
    • I've just started modding, and I'm trying to make custom swords. When I try to import SwordItem, I get the error:  What confuses me is that other item classes work fine: package io.github.xxx.denseswords.item; import io.github.xxx.denseswords.DenseSwords; import net.minecraft.world.item.Item; // works fine import net.minecraft.world.item.ShovelItem; // works fine import net.minecraft.world.item.SwordItem; // Error: The import cannot be resolved import net.minecraftforge.registries.DeferredRegister; import net.minecraftforge.registries.RegistryObject; Forge MDK v55.0.15 - Minecraft 1.21.5 Java v24.0.1 Windows 11 IDE: Visual Studio Code
  • Topics

  • Who's Online (See full list)

    • There are no registered users currently online
×
×
  • Create New...

Important Information

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