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

[1.7.10] Register Items with 'for' loop


jackmano
 Share

Recommended Posts

I need to register a group of item with a for loop. I just need it for registering of some items that are multicolored like spawn eggs, but there's a bunch in an array. I need a way to register the entire array of items.

Item array

 

public static Item[] seedrods = {

//new ItemSeedRod(hex, "name", isItPlural)

new ItemSeedRod(0xFFF32D, "Blaze Rod", false),

new ItemSeedRod(0x2B3DA, "Diamond", false),

new ItemSeedRod(0x496BC9, "Lapis Lazuli", true),

new ItemSeedRod(0x40DE58, "Emerald", false),

new ItemSeedRod(0xFA0714, "Redstone", true),

new ItemSeedRod(0xEEEEEE, "Blaze Rod", false),

};

 

Link to comment
Share on other sites

If you hold off the array assignment until inside your preInit method, then you can have the seedRod constructor do its own registration for each instance. It's the style I use for my items and blocks, but it's a matter of taste (other people love initializers). YMMV.

 

The debugger is a powerful and necessary tool in any IDE, so learn how to use it. You'll be able to tell us more and get better help here if you investigate your runtime problems in the debugger before posting.

Link to comment
Share on other sites

For my mod Armed, I use a Map to cache a string key and an item type value - string being both the key and unlocalized name for the item. I add new elements to the map in a static block (the Map is a constant) and have methods that iterate through the Map, using a lambda iterator ( Java 8 ), registering the item, setting the unlocalized name with the Map's key, and finally initializing its render. (Registering called on Common, rendering called on Client). That is just how I like to do it - it's very fast when adding new instances / items by having it automatically setup. There are many other ways you can do this, this is a more efficient way.

 

EDIT:

Your looking to do something like this with your code, considering your using an array. You should not use exactly this code, I wrote this quick just to give you an example - reason is because it gets an item from the array based on a given integer index - you're better off grabbing your item instances from an actual static instance.


private static final Item[] ITEMINSTANCES = 
	{
			new Item().setUnlocalizedName("test"),
			new Item().setUnlocalizedName("test2")
	};

public static final Item getItem(int index)
{
	return ITEMINSTANCES[index];
}

public static final void registerItemInstances()
{
	for(Item item : ITEMINSTANCES)
	{
		GameRegistry.registerItem(item, item.getUnlocalizedName().substring(5));
	}
}

Development of Plugins [2012 - 2014] Development of Mods [2012 - Current]

Link to comment
Share on other sites

You can only use a loop if there is something "regular" (i.e. predictable or possible to calculate) about the sequence, or if all the information is already stored in a collection/array. But if you just had the items in the array but not the egg color then a loop won't help because it wouldn't be able to figure out the egg color.

 

In other words, you can't save much typing with a loop for spawn eggs because for every item you'll still need to type somewhere the unlocalized name and the egg color and associate that with each actual item. Whether you type that in the preinit handler, or within the item constructor won't avoid the fact you have to type it.

 

Now if the colors could be calculated -- like you could randomize them from a fixed seed so they always turned out the same -- then a loop makes sense.

Check out my tutorials here: http://jabelarminecraft.blogspot.com/

Link to comment
Share on other sites

...

You add the GameRegistry.register(Block|Item) call to the item/block's constructor.

If you don't know what a constructor is or how to invoke a method, you need to learn Java.

Indeed... Inside the ItemSeedRod constructor, after setting unlocalized name. Where the register function needs an item, pass in "this", the constructor's way of referring to it's own new instance.

The debugger is a powerful and necessary tool in any IDE, so learn how to use it. You'll be able to tell us more and get better help here if you investigate your runtime problems in the debugger before posting.

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

    • ---- Minecraft Crash Report ---- // Surprise! Haha. Well, this is awkward. Time: 19/05/2022, 22:35 Description: Mod loading error has occurred java.lang.Exception: Mod Loading has failed at net.minecraftforge.logging.CrashReportExtender.dumpModLoadingCrashReport(CrashReportExtender.java:55) ~[forge-1.18.2-40.1.19-universal.jar%23180!/:?] {re:classloading} at net.minecraftforge.client.loading.ClientModLoader.completeModLoading(ClientModLoader.java:169) ~[forge-1.18.2-40.1.19-universal.jar%23180!/:?] {re:classloading,pl:runtimedistcleaner:A} at net.minecraft.client.Minecraft.lambda$new$1(Minecraft.java:555) ~[client-1.18.2-20220404.173914-srg.jar%23176!/:?] {re:mixin,pl:accesstransformer:B,pl:runtimedistcleaner:A,re:classloading,pl:accesstransformer:B,pl:mixin:APP:balm.mixins.json:MinecraftMixin,pl:mixin:APP:betterthirdperson.mixins.json:MinecraftMixin,pl:mixin:APP:blueprint.mixins.json:client.MinecraftMixin,pl:mixin:APP:lod.mixins.json:fabric.mixin.networking.accessor.MinecraftClientAccessor,pl:mixin:APP:flywheel.mixins.json:PausedPartialTickAccessor,pl:mixin:APP:apoli.mixins.json:MinecraftClientMixin,pl:mixin:APP:physicsmod.mixins.json:MixinMinecraft,pl:mixin:APP:physicsmod.mixins.json:cloth.MixinMinecraft,pl:mixin:APP:physicsmod.mixins.json:fabricapi.MixinMinecraft,pl:mixin:APP:travelerstitles.mixins.json:MinecraftClientTickMixin,pl:mixin:APP:create.mixins.json:WindowResizeMixin,pl:mixin:A,pl:runtimedistcleaner:A} at net.minecraft.Util.m_137521_(Util.java:397) ~[client-1.18.2-20220404.173914-srg.jar%23176!/:?] {re:mixin,re:classloading,pl:mixin:APP:lod.mixins.json:MixinUtilBackgroudThread,pl:mixin:APP:bettermineshafts.mixins.json:SuppressLogMixin,pl:mixin:A} at net.minecraft.client.Minecraft.lambda$new$2(Minecraft.java:549) ~[client-1.18.2-20220404.173914-srg.jar%23176!/:?] {re:mixin,pl:accesstransformer:B,pl:runtimedistcleaner:A,re:classloading,pl:accesstransformer:B,pl:mixin:APP:balm.mixins.json:MinecraftMixin,pl:mixin:APP:betterthirdperson.mixins.json:MinecraftMixin,pl:mixin:APP:blueprint.mixins.json:client.MinecraftMixin,pl:mixin:APP:lod.mixins.json:fabric.mixin.networking.accessor.MinecraftClientAccessor,pl:mixin:APP:flywheel.mixins.json:PausedPartialTickAccessor,pl:mixin:APP:apoli.mixins.json:MinecraftClientMixin,pl:mixin:APP:physicsmod.mixins.json:MixinMinecraft,pl:mixin:APP:physicsmod.mixins.json:cloth.MixinMinecraft,pl:mixin:APP:physicsmod.mixins.json:fabricapi.MixinMinecraft,pl:mixin:APP:travelerstitles.mixins.json:MinecraftClientTickMixin,pl:mixin:APP:create.mixins.json:WindowResizeMixin,pl:mixin:A,pl:runtimedistcleaner:A} at net.minecraft.client.gui.screens.LoadingOverlay.m_6305_(LoadingOverlay.java:135) ~[client-1.18.2-20220404.173914-srg.jar%23176!/:?] {re:classloading,pl:runtimedistcleaner:A} at net.minecraft.client.renderer.GameRenderer.m_109093_(GameRenderer.java:877) ~[client-1.18.2-20220404.173914-srg.jar%23176!/:?] {re:mixin,pl:accesstransformer:B,pl:runtimedistcleaner:A,re:classloading,pl:accesstransformer:B,pl:mixin:A,pl:runtimedistcleaner:A} at net.minecraft.client.Minecraft.m_91383_(Minecraft.java:1044) ~[client-1.18.2-20220404.173914-srg.jar%23176!/:?] {re:mixin,pl:accesstransformer:B,pl:runtimedistcleaner:A,re:classloading,pl:accesstransformer:B,pl:mixin:APP:balm.mixins.json:MinecraftMixin,pl:mixin:APP:betterthirdperson.mixins.json:MinecraftMixin,pl:mixin:APP:blueprint.mixins.json:client.MinecraftMixin,pl:mixin:APP:lod.mixins.json:fabric.mixin.networking.accessor.MinecraftClientAccessor,pl:mixin:APP:flywheel.mixins.json:PausedPartialTickAccessor,pl:mixin:APP:apoli.mixins.json:MinecraftClientMixin,pl:mixin:APP:physicsmod.mixins.json:MixinMinecraft,pl:mixin:APP:physicsmod.mixins.json:cloth.MixinMinecraft,pl:mixin:APP:physicsmod.mixins.json:fabricapi.MixinMinecraft,pl:mixin:APP:travelerstitles.mixins.json:MinecraftClientTickMixin,pl:mixin:APP:create.mixins.json:WindowResizeMixin,pl:mixin:A,pl:runtimedistcleaner:A} at net.minecraft.client.Minecraft.m_91374_(Minecraft.java:663) ~[client-1.18.2-20220404.173914-srg.jar%23176!/:?] {re:mixin,pl:accesstransformer:B,pl:runtimedistcleaner:A,re:classloading,pl:accesstransformer:B,pl:mixin:APP:balm.mixins.json:MinecraftMixin,pl:mixin:APP:betterthirdperson.mixins.json:MinecraftMixin,pl:mixin:APP:blueprint.mixins.json:client.MinecraftMixin,pl:mixin:APP:lod.mixins.json:fabric.mixin.networking.accessor.MinecraftClientAccessor,pl:mixin:APP:flywheel.mixins.json:PausedPartialTickAccessor,pl:mixin:APP:apoli.mixins.json:MinecraftClientMixin,pl:mixin:APP:physicsmod.mixins.json:MixinMinecraft,pl:mixin:APP:physicsmod.mixins.json:cloth.MixinMinecraft,pl:mixin:APP:physicsmod.mixins.json:fabricapi.MixinMinecraft,pl:mixin:APP:travelerstitles.mixins.json:MinecraftClientTickMixin,pl:mixin:APP:create.mixins.json:WindowResizeMixin,pl:mixin:A,pl:runtimedistcleaner:A} at net.minecraft.client.main.Main.main(Main.java:205) ~[client-1.18.2-20220404.173914-srg.jar%23176!/:?] {re:classloading,re:mixin,pl:runtimedistcleaner:A,pl:mixin:A,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) ~[?:?] {re:mixin} at net.minecraftforge.fml.loading.targets.CommonClientLaunchHandler.lambda$launchService$0(CommonClientLaunchHandler.java:31) ~[fmlloader-1.18.2-40.1.19.jar%2316!/:?] {} at cpw.mods.modlauncher.LaunchServiceHandlerDecorator.launch(LaunchServiceHandlerDecorator.java:37) [modlauncher-9.1.3.jar%235!/:?] {} at cpw.mods.modlauncher.LaunchServiceHandler.launch(LaunchServiceHandler.java:53) [modlauncher-9.1.3.jar%235!/:?] {} at cpw.mods.modlauncher.LaunchServiceHandler.launch(LaunchServiceHandler.java:71) [modlauncher-9.1.3.jar%235!/:?] {} at cpw.mods.modlauncher.Launcher.run(Launcher.java:106) [modlauncher-9.1.3.jar%235!/:?] {} at cpw.mods.modlauncher.Launcher.main(Launcher.java:77) [modlauncher-9.1.3.jar%235!/:?] {} at cpw.mods.modlauncher.BootstrapLaunchConsumer.accept(BootstrapLaunchConsumer.java:26) [modlauncher-9.1.3.jar%235!/:?] {} at cpw.mods.modlauncher.BootstrapLaunchConsumer.accept(BootstrapLaunchConsumer.java:23) [modlauncher-9.1.3.jar%235!/:?] {} at cpw.mods.bootstraplauncher.BootstrapLauncher.main(BootstrapLauncher.java:149) [bootstraplauncher-1.0.0.jar:?] {} A detailed walkthrough of the error, its code path and all known details is as follows: --------------------------------------------------------------------------------------- -- Head -- Thread: Render thread Stacktrace: at dqu.additionaladditions.config.Config.load(Config.java:64) ~[additionaladditions-4.0.0.jar%2353!/:4.0.0] {re:mixin,re:classloading} -- MOD gem_crab -- Details: Caused by 0: java.lang.ExceptionInInitializerError at java.lang.Class.forName0(Native Method) ~[?:?] {re:mixin} at java.lang.Class.forName(Class.java:467) ~[?:?] {re:mixin} at net.minecraftforge.fml.javafmlmod.AutomaticEventSubscriber.lambda$inject$6(AutomaticEventSubscriber.java:61) ~[javafmllanguage-1.18.2-40.1.19.jar%23178!/:?] {} at java.util.ArrayList.forEach(ArrayList.java:1511) ~[?:?] {re:computing_frames,re:mixin} at net.minecraftforge.fml.javafmlmod.AutomaticEventSubscriber.inject(AutomaticEventSubscriber.java:48) ~[javafmllanguage-1.18.2-40.1.19.jar%23178!/:?] {} at net.minecraftforge.fml.javafmlmod.FMLModContainer.constructMod(FMLModContainer.java:77) ~[javafmllanguage-1.18.2-40.1.19.jar%23178!/:?] {} at net.minecraftforge.fml.ModContainer.lambda$buildTransitionHandler$4(ModContainer.java:106) ~[fmlcore-1.18.2-40.1.19.jar%23177!/:?] {} at java.util.concurrent.CompletableFuture$AsyncRun.run(CompletableFuture.java:1804) ~[?:?] {} at java.util.concurrent.CompletableFuture$AsyncRun.exec(CompletableFuture.java:1796) ~[?:?] {} at java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:373) ~[?:?] {} at java.util.concurrent.ForkJoinPool$WorkQueue.topLevelExec(ForkJoinPool.java:1182) ~[?:?] {} at java.util.concurrent.ForkJoinPool.scan(ForkJoinPool.java:1655) ~[?:?] {re:computing_frames} at java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1622) ~[?:?] {re:computing_frames} at java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:165) ~[?:?] {} Mod File: GemCrabs+v.1.0.6.jar Failure message: Gem Crab (gem_crab) has failed to load correctly java.lang.ExceptionInInitializerError: null Mod Version: 1.0.0 Mod Issue URL: NOT PROVIDED Exception message: java.lang.NullPointerException: Cannot invoke "com.google.gson.JsonObject.get(String)" because "dqu.additionaladditions.config.Config.db" is null Stacktrace: at dqu.additionaladditions.config.Config.load(Config.java:64) ~[additionaladditions-4.0.0.jar%2353!/:4.0.0] {re:mixin,re:classloading} at dqu.additionaladditions.config.Config.get(Config.java:92) ~[additionaladditions-4.0.0.jar%2353!/:4.0.0] {re:mixin,re:classloading} at dqu.additionaladditions.config.Config.getBool(Config.java:83) ~[additionaladditions-4.0.0.jar%2353!/:4.0.0] {re:mixin,re:classloading} at net.minecraft.world.entity.Mob.<clinit>(Mob.java:73) ~[client-1.18.2-20220404.173914-srg.jar%23176!/:?] {re:mixin,pl:accesstransformer:B,re:classloading,pl:accesstransformer:B,pl:mixin:APP:AdditionalAdditions.mixins.json:MobMixin,pl:mixin:A} at java.lang.Class.forName0(Native Method) ~[?:?] {re:mixin} at java.lang.Class.forName(Class.java:467) ~[?:?] {re:mixin} at net.minecraftforge.fml.javafmlmod.AutomaticEventSubscriber.lambda$inject$6(AutomaticEventSubscriber.java:61) ~[javafmllanguage-1.18.2-40.1.19.jar%23178!/:?] {} at java.util.ArrayList.forEach(ArrayList.java:1511) ~[?:?] {re:computing_frames,re:mixin} at net.minecraftforge.fml.javafmlmod.AutomaticEventSubscriber.inject(AutomaticEventSubscriber.java:48) ~[javafmllanguage-1.18.2-40.1.19.jar%23178!/:?] {} at net.minecraftforge.fml.javafmlmod.FMLModContainer.constructMod(FMLModContainer.java:77) ~[javafmllanguage-1.18.2-40.1.19.jar%23178!/:?] {} at net.minecraftforge.fml.ModContainer.lambda$buildTransitionHandler$4(ModContainer.java:106) ~[fmlcore-1.18.2-40.1.19.jar%23177!/:?] {} at java.util.concurrent.CompletableFuture$AsyncRun.run(CompletableFuture.java:1804) ~[?:?] {} at java.util.concurrent.CompletableFuture$AsyncRun.exec(CompletableFuture.java:1796) ~[?:?] {} at java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:373) ~[?:?] {} at java.util.concurrent.ForkJoinPool$WorkQueue.topLevelExec(ForkJoinPool.java:1182) ~[?:?] {} at java.util.concurrent.ForkJoinPool.scan(ForkJoinPool.java:1655) ~[?:?] {re:computing_frames} at java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1622) ~[?:?] {re:computing_frames} at java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:165) ~[?:?] {} -- MOD mushlings -- Details: Mod File: Mushlings-1.18.2-1.0.0.jar Failure message: Mushlings Mod (mushlings) has failed to load correctly java.lang.NoClassDefFoundError: Could not initialize class net.minecraft.world.entity.PathfinderMob Mod Version: 1.0.0 Mod Issue URL: NOT PROVIDED Exception message: java.lang.NoClassDefFoundError: Could not initialize class net.minecraft.world.entity.PathfinderMob Stacktrace: at java.lang.Class.forName0(Native Method) ~[?:?] {re:mixin} at java.lang.Class.forName(Class.java:467) ~[?:?] {re:mixin} at net.minecraftforge.fml.javafmlmod.AutomaticEventSubscriber.lambda$inject$6(AutomaticEventSubscriber.java:61) ~[javafmllanguage-1.18.2-40.1.19.jar%23178!/:?] {} at java.util.ArrayList.forEach(ArrayList.java:1511) ~[?:?] {re:computing_frames,re:mixin} at net.minecraftforge.fml.javafmlmod.AutomaticEventSubscriber.inject(AutomaticEventSubscriber.java:48) ~[javafmllanguage-1.18.2-40.1.19.jar%23178!/:?] {} at net.minecraftforge.fml.javafmlmod.FMLModContainer.constructMod(FMLModContainer.java:77) ~[javafmllanguage-1.18.2-40.1.19.jar%23178!/:?] {} at net.minecraftforge.fml.ModContainer.lambda$buildTransitionHandler$4(ModContainer.java:106) ~[fmlcore-1.18.2-40.1.19.jar%23177!/:?] {} at java.util.concurrent.CompletableFuture$AsyncRun.run(CompletableFuture.java:1804) ~[?:?] {} at java.util.concurrent.CompletableFuture$AsyncRun.exec(CompletableFuture.java:1796) ~[?:?] {} at java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:373) ~[?:?] {} at java.util.concurrent.ForkJoinPool$WorkQueue.topLevelExec(ForkJoinPool.java:1182) ~[?:?] {} at java.util.concurrent.ForkJoinPool.scan(ForkJoinPool.java:1655) ~[?:?] {re:computing_frames} at java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1622) ~[?:?] {re:computing_frames} at java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:165) ~[?:?] {} -- MOD seeds -- Details: Mod File: seeds-1.18.2-1.0.7.jar Failure message: Seeds (seeds) has failed to load correctly java.lang.NoClassDefFoundError: Could not initialize class net.minecraft.world.entity.PathfinderMob Mod Version: 1.0.7 Mod Issue URL: NOT PROVIDED Exception message: java.lang.NoClassDefFoundError: Could not initialize class net.minecraft.world.entity.PathfinderMob Stacktrace: at java.lang.Class.forName0(Native Method) ~[?:?] {re:mixin} at java.lang.Class.forName(Class.java:467) ~[?:?] {re:mixin} at net.minecraftforge.fml.javafmlmod.AutomaticEventSubscriber.lambda$inject$6(AutomaticEventSubscriber.java:61) ~[javafmllanguage-1.18.2-40.1.19.jar%23178!/:?] {} at java.util.ArrayList.forEach(ArrayList.java:1511) ~[?:?] {re:computing_frames,re:mixin} at net.minecraftforge.fml.javafmlmod.AutomaticEventSubscriber.inject(AutomaticEventSubscriber.java:48) ~[javafmllanguage-1.18.2-40.1.19.jar%23178!/:?] {} at net.minecraftforge.fml.javafmlmod.FMLModContainer.constructMod(FMLModContainer.java:77) ~[javafmllanguage-1.18.2-40.1.19.jar%23178!/:?] {} at net.minecraftforge.fml.ModContainer.lambda$buildTransitionHandler$4(ModContainer.java:106) ~[fmlcore-1.18.2-40.1.19.jar%23177!/:?] {} at java.util.concurrent.CompletableFuture$AsyncRun.run(CompletableFuture.java:1804) ~[?:?] {} at java.util.concurrent.CompletableFuture$AsyncRun.exec(CompletableFuture.java:1796) ~[?:?] {} at java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:373) ~[?:?] {} at java.util.concurrent.ForkJoinPool$WorkQueue.topLevelExec(ForkJoinPool.java:1182) ~[?:?] {} at java.util.concurrent.ForkJoinPool.scan(ForkJoinPool.java:1655) ~[?:?] {re:computing_frames} at java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1622) ~[?:?] {re:computing_frames} at java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:165) ~[?:?] {} -- System Details -- Details: Minecraft Version: 1.18.2 Minecraft Version ID: 1.18.2 Operating System: Windows 10 (amd64) version 10.0 Java Version: 17.0.1, Microsoft Java VM Version: OpenJDK 64-Bit Server VM (mixed mode), Microsoft Memory: 343918640 bytes (327 MiB) / 805306368 bytes (768 MiB) up to 2147483648 bytes (2048 MiB) CPUs: 24 Processor Vendor: AuthenticAMD Processor Name: AMD Ryzen 9 5900X 12-Core Processor Identifier: AuthenticAMD Family 25 Model 33 Stepping 0 Microarchitecture: Zen 3 Frequency (GHz): 3.70 Number of physical packages: 1 Number of physical CPUs: 12 Number of logical CPUs: 24 Graphics card #0 name: NVIDIA GeForce RTX 3080 Ti Graphics card #0 vendor: NVIDIA (0x10de) Graphics card #0 VRAM (MB): 4095.00 Graphics card #0 deviceId: 0x2208 Graphics card #0 versionInfo: DriverVersion=30.0.15.1259 Memory slot #0 capacity (MB): 16384.00 Memory slot #0 clockSpeed (GHz): 3.60 Memory slot #0 type: DDR4 Memory slot #1 capacity (MB): 16384.00 Memory slot #1 clockSpeed (GHz): 3.60 Memory slot #1 type: DDR4 Virtual memory max (MB): 50097.01 Virtual memory used (MB): 27508.96 Swap memory total (MB): 17408.00 Swap memory used (MB): 750.38 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 ModLauncher: 9.1.3+9.1.3+main.9b69c82a ModLauncher launch target: forgeclient ModLauncher naming: srg ModLauncher services: mixin PLUGINSERVICE eventbus PLUGINSERVICE slf4jfixer PLUGINSERVICE object_holder_definalize PLUGINSERVICE runtime_enum_extender PLUGINSERVICE capability_token_subclass PLUGINSERVICE accesstransformer PLUGINSERVICE runtimedistcleaner PLUGINSERVICE mixin TRANSFORMATIONSERVICE fml TRANSFORMATIONSERVICE FML Language Providers: minecraft@1.0 javafml@null Mod List: TreeChop-1.18.1-0.15.7.jar |HT's TreeChop |treechop |0.15.7 |COMMON_SET|Manifest: NOSIGNATURE YungsBetterDungeons-1.18.2-Forge-2.1.0.jar |YUNG's Better Dungeons |betterdungeons |1.18.2-Forge-2.1.0 |COMMON_SET|Manifest: NOSIGNATURE supermartijn642configlib-1.0.9-mc1.18.jar |SuperMartijn642's Config Lib |supermartijn642configlib |1.0.9 |COMMON_SET|Manifest: NOSIGNATURE preciseblockplacing-1.08+1.18.jar |PreciseBlockPlacing |preciseblockplacing |1.08 |COMMON_SET|Manifest: NOSIGNATURE enchantment_lore_forge-1.1.jar |Enchantment Lore Forge |enchantment_lore_forge |1.1.0 |COMMON_SET|Manifest: NOSIGNATURE Origins-1.18.2-1.4.1.1-unified.jar |Additional Entity Attributes |additionalentityattributes |1.18.2-1.4.1.1 |COMMON_SET|Manifest: NOSIGNATURE simplemagnets-1.1.7-forge-mc1.18.jar |Simple Magnets |simplemagnets |1.1.7 |COMMON_SET|Manifest: NOSIGNATURE consecration-forge-1.18.2-5.0.0.2.jar |Consecration |consecration |1.18.2-5.0.0.2 |COMMON_SET|Manifest: NOSIGNATURE Uppers-0.4.1.jar |Uppers |uppers |0.4.1 |COMMON_SET|Manifest: NOSIGNATURE kingvillager-1.8.1.jar |The King of the Villagers |kingvillager |1.8.1 |COMMON_SET|Manifest: NOSIGNATURE MultiMine-1.18.2.jar |Multi Mine |multimine |1.18.2 |COMMON_SET|Manifest: NOSIGNATURE guiclock_1.18.2-3.1.jar |GUI Clock |guiclock |3.1 |COMMON_SET|Manifest: NOSIGNATURE InsaneLib-1.4.6-mc1.18.2.jar |InsaneLib |insanelib |1.4.6 |COMMON_SET|Manifest: NOSIGNATURE GemCrabs+v.1.0.6.jar |Gem Crab |gem_crab |1.0.0 |ERROR |Manifest: NOSIGNATURE ForgeEndertech-1.18.2-9.0.1.0-build.0767.jar |ForgeEndertech |forgeendertech |9.0.1.0 |COMMON_SET|Manifest: NOSIGNATURE XaerosWorldMap_1.21.2_Forge_1.18.2.jar |Xaero's World Map |xaeroworldmap |1.21.2 |COMMON_SET|Manifest: NOSIGNATURE Controlling-forge-1.18.2-9.0+19.jar |Controlling |controlling |9.0+19 |COMMON_SET|Manifest: NOSIGNATURE Placebo-1.18.2-6.4.0.jar |Placebo |placebo |6.4.0 |COMMON_SET|Manifest: NOSIGNATURE YungsApi-1.18.2-Forge-2.0.8.jar |YUNG's API |yungsapi |1.18.2-Forge-2.0.8 |COMMON_SET|Manifest: NOSIGNATURE feature_nbt_deadlock_be_gone_forge-2.0.0+1.18.2.ja|Feature NBT Deadlock Be Gone |feature_nbt_deadlock_be_gone |2.0.0+1.18.2 |COMMON_SET|Manifest: NOSIGNATURE playertabs-1.0.jar |Player Tabs |playertabs |1.0 |COMMON_SET|Manifest: NOSIGNATURE OreTree-1.18.2-0.2.5.1.jar |Ore Tree |ore_tree |0.2.5.1 |COMMON_SET|Manifest: NOSIGNATURE forgivingvoid-forge-1.18.1-6.0.1.jar |Forgiving Void |forgivingvoid |6.0.1 |COMMON_SET|Manifest: NOSIGNATURE ProgressiveBosses-3.5.10-mc1.18.2.jar |Progressive Bosses |progressivebosses |3.5.10 |COMMON_SET|Manifest: NOSIGNATURE balm-3.0.3+0.jar |Balm |balm |3.0.3+0 |COMMON_SET|Manifest: NOSIGNATURE SnowRealMagic-1.18.2-forge-4.0.0.jar |Snow! Real Magic! |snowrealmagic |4.0.0 |COMMON_SET|Manifest: NOSIGNATURE FpsReducer2-forge-1.18.2-2.0.jar |FPS Reducer |fpsreducer |1.18.2-2.0 |COMMON_SET|Manifest: NOSIGNATURE carryon-1.18.2-1.17.0.8.jar |Carry On |carryon |1.17.0.8 |COMMON_SET|Manifest: NOSIGNATURE BetterThanMending-1.7.1.jar |BetterThanMending |betterthanmending |1.7.1 |COMMON_SET|Manifest: NOSIGNATURE cameraoverhaul-1.0-1.18.2.jar |Camera Overhaul |cameraoverhaul |1.0.0 |COMMON_SET|Manifest: NOSIGNATURE cloth-config-6.2.62-forge.jar |Cloth Config v4 API |cloth_config |6.2.62 |COMMON_SET|Manifest: NOSIGNATURE AdvancementPlaques-1.18.2-1.4.3.jar |Advancement Plaques |advancementplaques |1.4.3 |COMMON_SET|Manifest: NOSIGNATURE TinySkeletons-v3.2.1-1.18.2-Forge.jar |Tiny Skeletons |tinyskeletons |3.2.1 |COMMON_SET|Manifest: 9a:09:85:98:65:c4:8c:11:c5:49:f6:d6:33:23:39:df:8d:b4:ff:92:84:b8:bd:a5:83:9f:ac:7f:2a:d1:4b:6a FarmersDelight-1.18.2-1.1.1.jar |Farmer's Delight |farmersdelight |1.18.2-1.1.1 |COMMON_SET|Manifest: NOSIGNATURE DistantHorizons-1.6.3a-1.18.2.jar |Distant Horizons |lod |1.6.3a |COMMON_SET|Manifest: NOSIGNATURE repurposed_structures_forge-5.1.8+1.18.2.jar |Repurposed Structures |repurposed_structures |5.1.8+1.18.2 |COMMON_SET|Manifest: NOSIGNATURE morevillagers-FORGE-1.18.2-3.2.0.jar |More Villagers |morevillagers |3.2.0 |COMMON_SET|Manifest: NOSIGNATURE HostileNeuralNetworks-1.18.2-3.1.1.jar |Hostile Neural Networks |hostilenetworks |3.1.1 |COMMON_SET|Manifest: NOSIGNATURE GreaterEye-Forge-1.18.2-1.3.10.jar |GreaterEye |greater_eye |1.3.10 |COMMON_SET|Manifest: NOSIGNATURE ToolSwap-1.18.2-3.1.0.jar |ToolSwap |toolswap |1.18.2-3.1.0 |COMMON_SET|Manifest: NOSIGNATURE plaingrinder-1.18.1-1.2.4.jar |plaingrinder |plaingrinder |1.18.1-1.2.4 |COMMON_SET|Manifest: 1f:47:ac:b1:61:82:96:b8:47:19:16:d2:61:81:11:60:3a:06:4b:61:31:56:7d:44:31:1e:0c:6f:22:5b:4c:ed ironfurnaces-1.18.2-3.3.0.jar |Iron Furnaces |ironfurnaces |3.3.0 |COMMON_SET|Manifest: NOSIGNATURE LetSleepingDogsLie-1.18-1.1.1.jar |Let Sleeping Dogs Lie |dogslie |1.1.1 |COMMON_SET|Manifest: NOSIGNATURE shelve-0.2.0.jar |Shelve |shelve |0.2.0 |COMMON_SET|Manifest: NOSIGNATURE aquatictorches-1.18-1.1.0.jar |Aquatic Torches |aquatictorches |1.1.0 |COMMON_SET|Manifest: NOSIGNATURE supermartijn642corelib-1.0.18-forge-mc1.18.jar |SuperMartijn642's Core Lib |supermartijn642corelib |1.0.18 |COMMON_SET|Manifest: NOSIGNATURE villagespawnpoint_1.18.2-1.9.jar |Village Spawn Point |villagespawnpoint |1.9 |COMMON_SET|Manifest: NOSIGNATURE recall-1.3.jar |Recall |recall |1.3 |COMMON_SET|Manifest: NOSIGNATURE curios-forge-1.18.2-5.0.7.0.jar |Curios API |curios |1.18.2-5.0.7.0 |COMMON_SET|Manifest: NOSIGNATURE Patchouli-1.18.2-67.jar |Patchouli |patchouli |1.18.2-67 |COMMON_SET|Manifest: NOSIGNATURE corail_woodcutter-1.18.2-2.3.3.jar |Corail Woodcutter |corail_woodcutter |2.3.3 |COMMON_SET|Manifest: NOSIGNATURE collective-1.18.2-4.25.jar |Collective |collective |4.25 |COMMON_SET|Manifest: NOSIGNATURE TreePlant-1.18.2-0.3.0.jar |HT's TreePlant |treeplant |0.3.0 |COMMON_SET|Manifest: NOSIGNATURE angelring-1.18-1.5.0.jar |Angel Ring |angelring |1.5.0 |COMMON_SET|Manifest: NOSIGNATURE BetterVillage-Forge-1.18.2-1.0.0.jar |Better Village |bettervillage |1 |COMMON_SET|Manifest: NOSIGNATURE BetterThirdPerson-Forge-1.18.2-1.7.3.jar |Better Third Person |betterthirdperson |1.7.3 |COMMON_SET|Manifest: NOSIGNATURE YungsBetterStrongholds-1.18.2-Forge-2.1.1.jar |YUNG's Better Strongholds |betterstrongholds |1.18.2-Forge-2.1.1 |COMMON_SET|Manifest: NOSIGNATURE EnigmaticLegacy-2.21.1.jar |Enigmatic Legacy |enigmaticlegacy |2.21.1 |COMMON_SET|Manifest: NOSIGNATURE eatinganimation-1.18.1-2.0.2.jar |Eating Animation |eatinganimation |2.0.0 |COMMON_SET|Manifest: NOSIGNATURE The+Gold+Rush+1.1.jar |The Gold Rush |the_gold_rush |1.0.0 |COMMON_SET|Manifest: NOSIGNATURE smartmend-v1.0.1-FORGE-1.17+.jar |Smart Mend |smartmend |1.0.1 |COMMON_SET|Manifest: NOSIGNATURE mountedpearl-1.18-1.0.0.jar |Mounted Pearl |mountedpearl |1.18-1.0.0 |COMMON_SET|Manifest: 1f:47:ac:b1:61:82:96:b8:47:19:16:d2:61:81:11:60:3a:06:4b:61:31:56:7d:44:31:1e:0c:6f:22:5b:4c:ed chunkloaders-1.1.12-mc1.18.jar |Chunk Loaders |chunkloaders |1.1.12 |COMMON_SET|Manifest: NOSIGNATURE JadeAddons-1.18.2-2.0.0.jar |Jade Addons |jadeaddons |2.0.0 |COMMON_SET|Manifest: NOSIGNATURE Mushlings-1.18.2-1.0.0.jar |Mushlings Mod |mushlings |1.0.0 |ERROR |Manifest: NOSIGNATURE YungsBetterMineshafts-1.18.2-Forge-2.1.1.jar |YUNG's Better Mineshafts |bettermineshafts |1.18.2-Forge-2.1.1 |COMMON_SET|Manifest: NOSIGNATURE JustEnoughGolems+-+2.2.1-HF+Magma+Release+1.18.2.j|JustEnoughGolems |justenoughgolems |2.2.1-HF Magma Relea|COMMON_SET|Manifest: NOSIGNATURE Kiwi-1.18.2-forge-6.1.0.jar |Kiwi |kiwi |6.1.0 |COMMON_SET|Manifest: NOSIGNATURE AdFinders-1.18.2-7.0.0.0-build.0342.jar |Advanced Finders |adfinders |7.0.0.0 |COMMON_SET|Manifest: NOSIGNATURE forgeautofish-4.0.2-1.18.2.jar |AutoFish for Forge |forgeautofish |4.0.2 |COMMON_SET|Manifest: NOSIGNATURE torchslabmod-1.18.1_v1.7.5.jar |Torch Slab Mod |torchslabmod |1.7.5 |COMMON_SET|Manifest: NOSIGNATURE mores-1.3.0.jar |More Ore Stones |mores |1.3.0 |COMMON_SET|Manifest: NOSIGNATURE jei-1.18.2-9.7.0.195.jar |Just Enough Items |jei |9.7.0.195 |COMMON_SET|Manifest: NOSIGNATURE UniversalBoneMeal-v3.0.5-1.18.2-Forge.jar |Universal Bone Meal |universalbonemeal |3.0.5 |COMMON_SET|Manifest: 9a:09:85:98:65:c4:8c:11:c5:49:f6:d6:33:23:39:df:8d:b4:ff:92:84:b8:bd:a5:83:9f:ac:7f:2a:d1:4b:6a LibraryFerret-Forge-1.18.2-1.0.3.jar |Library ferret |libraryferret |1.0.3 |COMMON_SET|Manifest: NOSIGNATURE caelus-forge-1.18.1-3.0.0.2.jar |Caelus API |caelus |1.18.1-3.0.0.2 |COMMON_SET|Manifest: NOSIGNATURE waystones-forge-1.18.2-10.0.0.jar |Waystones |waystones |10.0.0 |COMMON_SET|Manifest: NOSIGNATURE soul_cages-1.0.1.jar |Simply Soul Cages |soul_cages |1.0.1 |COMMON_SET|Manifest: NOSIGNATURE goldenhopper-1.2.6-1.18.2.jar |Golden Hopper |goldenhopper |1.2.6 |COMMON_SET|Manifest: NOSIGNATURE Clumps-forge-1.18.2-8.0.0+8.jar |Clumps |clumps |8.0.0+8 |COMMON_SET|Manifest: NOSIGNATURE comforts-forge-1.18.2-5.0.0.4.jar |Comforts |comforts |1.18.2-5.0.0.4 |COMMON_SET|Manifest: NOSIGNATURE TravelersBackpack-1.18.2-7.1.0.jar |Traveler's Backpack |travelersbackpack |7.1.0 |COMMON_SET|Manifest: NOSIGNATURE artifacts-1.18.2-4.1.0.jar |Artifacts |artifacts |1.18.2-4.1.0 |COMMON_SET|Manifest: NOSIGNATURE ItemBorders-1.18.1-1.1.5.jar |Item Borders |itemborders |1.1.5 |COMMON_SET|Manifest: NOSIGNATURE seeds-1.18.2-1.0.7.jar |Seeds |seeds |1.0.7 |ERROR |Manifest: NOSIGNATURE snowundertrees-1.18.2-1.2.1.jar |Snow Under Trees |snowundertrees |1.2.1 |COMMON_SET|Manifest: NOSIGNATURE lazydfu-1.0-1.18+.jar |LazyDFU |lazydfu |0.1.3 |COMMON_SET|Manifest: NOSIGNATURE Terralith_v2.2.1a.jar |Terralith |terralith |0.0NONE |COMMON_SET|Manifest: NOSIGNATURE blueprint-1.18.2-5.3.2.jar |Blueprint |blueprint |5.3.2 |COMMON_SET|Manifest: NOSIGNATURE boatload-1.18.1-3.0.0.jar |Boatload |boatload |3.0.0 |COMMON_SET|Manifest: NOSIGNATURE 3dskinlayers-forge-1.4.4-mc1.18.2.jar |3dSkinLayers |skinlayers3d |1.4.4 |COMMON_SET|Manifest: NOSIGNATURE forge-1.18.2-40.1.19-universal.jar |Forge |forge |40.1.19 |COMMON_SET|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 PassthroughSigns-1.18-2.5.0.jar |Passthrough Signs |passthroughsigns |1.18-2.5.0 |COMMON_SET|Manifest: NOSIGNATURE TravelersTitles-1.18.2-Forge-2.1.1.jar |Traveler's Titles |travelerstitles |1.18.2-Forge-2.1.1 |COMMON_SET|Manifest: NOSIGNATURE client-1.18.2-20220404.173914-srg.jar |Minecraft |minecraft |1.18.2 |COMMON_SET|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 swingthroughgrass-1.18.1-1.8.0.jar |SwingThroughGrass |swingthroughgrass |1.18.1-1.8.0 |COMMON_SET|Manifest: NOSIGNATURE physics-mod-2.7.2-mc-1.18.2-forge.jar |Physics Mod |physicsmod |2.7.2 |COMMON_SET|Manifest: NOSIGNATURE MagnumTorch-v3.1.3-1.18.2-Forge.jar |Magnum Torch |magnumtorch |3.1.3 |COMMON_SET|Manifest: 9a:09:85:98:65:c4:8c:11:c5:49:f6:d6:33:23:39:df:8d:b4:ff:92:84:b8:bd:a5:83:9f:ac:7f:2a:d1:4b:6a Jade-1.18.2-5.1.0.jar |Jade |jade |5.1.0 |COMMON_SET|Manifest: NOSIGNATURE additionaladditions-4.0.0.jar |Additional Additions |additionaladditions |4.0.0 |COMMON_SET|Manifest: NOSIGNATURE scarecrowsterritory-1.1.5-forge-mc1.18.jar |Scarecrows' Territory |scarecrowsterritory |1.1.5 |COMMON_SET|Manifest: NOSIGNATURE AdLods-1.18.2-6.0.0.0-build.0342.jar |Large Ore Deposits |adlods |6.0.0.0 |COMMON_SET|Manifest: NOSIGNATURE Special+Drops+1.0.0+-+1.18.2.jar |Special Drops |special_drops |1.0.0 |COMMON_SET|Manifest: NOSIGNATURE ObsidianBoat-1.5.0-build.13+mc1.18.2.jar |Obsidian Boat |obsidianboat |1.5.0-build.13+mc1.1|COMMON_SET|Manifest: NOSIGNATURE notenoughanimations-forge-1.6.0-mc1.18.2.jar |NotEnoughAnimations Mod |notenoughanimations |1.6.0 |COMMON_SET|Manifest: NOSIGNATURE Iceberg-1.18.2-1.0.40.jar |Iceberg |iceberg |1.0.40 |COMMON_SET|Manifest: NOSIGNATURE flywheel-forge-1.18-0.6.2.jar |Flywheel |flywheel |1.18-0.6.2 |COMMON_SET|Manifest: NOSIGNATURE create-mc1.18.2_v0.4.1.jar |Create |create |0.4.1 |COMMON_SET|Manifest: NOSIGNATURE Xaeros_Minimap_22.7.0_Forge_1.18.2.jar |Xaero's Minimap |xaerominimap |22.7.0 |COMMON_SET|Manifest: NOSIGNATURE ShulkerTooltip-1.10.jar |Shulker Tooltip |shulkertooltip |1.10 |COMMON_SET|Manifest: NOSIGNATURE AutoRegLib-1.7-53.jar |AutoRegLib |autoreglib |1.7-53 |COMMON_SET|Manifest: NOSIGNATURE Quark-3.2-355.jar |Quark |quark |3.2-355 |COMMON_SET|Manifest: NOSIGNATURE StorageDrawers-1.18.2-10.2.0.jar |Storage Drawers |storagedrawers |10.2.0 |COMMON_SET|Manifest: NOSIGNATURE DiagonalFences-v3.1.0-1.18.2.jar |Diagonal Fences |diagonalfences |3.1.0 |COMMON_SET|Manifest: 9a:09:85:98:65:c4:8c:11:c5:49:f6:d6:33:23:39:df:8d:b4:ff:92:84:b8:bd:a5:83:9f:ac:7f:2a:d1:4b:6a ToughAsNails-1.18.2-7.0.0.72.jar |Tough As Nails |toughasnails |1.18.2-7.0.0.72 |COMMON_SET|Manifest: NOSIGNATURE raised-forge-1.18.2-1.1.0.jar |Raised |raised |1.1.0 |COMMON_SET|Manifest: NOSIGNATURE appleskin-forge-mc1.18-2.4.0.jar |AppleSkin |appleskin |2.4.0+mc1.18 |COMMON_SET|Manifest: NOSIGNATURE PuzzlesLib-v3.3.3-1.18.2-Forge.jar |Puzzles Lib |puzzleslib |3.3.3 |COMMON_SET|Manifest: 9a:09:85:98:65:c4:8c:11:c5:49:f6:d6:33:23:39:df:8d:b4:ff:92:84:b8:bd:a5:83:9f:ac:7f:2a:d1:4b:6a ColdSweat-2.1.10-b03.jar |Cold Sweat |cold_sweat |2.1.10-b03 |COMMON_SET|Manifest: NOSIGNATURE BetterF3-1.2.4-Forge-1.18.2.jar |BetterF3 |betterf3 |1.2.4 |COMMON_SET|Manifest: NOSIGNATURE Quick+Harvest-1.18.2-1.6.1.jar |Quick Harvest |quickharvest |1.6.1 |COMMON_SET|Manifest: NOSIGNATURE crossbowverhaul-1.18.2-1.4.0-universal.jar |Crossbowverhaul |crossbowverhaul |1.4.0 |COMMON_SET|Manifest: NOSIGNATURE expandability-6.0.0.jar |ExpandAbility |expandability |6.0.0 |COMMON_SET|Manifest: NOSIGNATURE xptome-1.18.2-2.1.5.jar |XP Tome |xpbook |2.1.5 |COMMON_SET|Manifest: NOSIGNATURE Flywheel Backend: GL33 Instanced Arrays Crash Report UUID: d4c87d48-0a21-4527-a752-0bdd9e459bc7 FML: 40.1 Forge: net.minecraftforge:40.1.19 is there anything i can do or am i forced to remove each of those mods / consult the mod authors?
    • This is weird because sometimes it works whenever I just restart my computer and then open it but now I can’t get my mod pack to open at all. 
    • do you know if I can use the "setAggressive" method in the Mob class?. or will this not work? 
    • here is the crash report  https://gist.github.com/xquao/b2af51ebece8c3d07bc722262e6915c1 
  • Topics

×
×
  • Create New...

Important Information

By using this site, you agree to our Privacy Policy.