-
Recently Browsing
- No registered users viewing this page.
-
Posts
-
Hi, I'm trying to add a chance for the LootTableIdCondition. I've tried to manipulate the AddItemModifier class, but it still doesn't work: public class AddItemModifier extends LootModifier { public static final Supplier<Codec<AddItemModifier>> CODEC = Suppliers.memoize(() -> RecordCodecBuilder.create(inst -> codecStart(inst).and(ForgeRegistries.ITEMS.getCodec() .fieldOf("item").forGetter(m -> m.item)) .and(Codec.FLOAT.fieldOf("chance").forGetter(m -> m.chance)) .apply(inst, AddItemModifier::new))); private final Item item; public AddItemModifier(LootItemCondition[] conditionsIn, Item item) { super(conditionsIn); this.item = item; } @Override protected @NotNull ObjectArrayList<ItemStack> doApply(ObjectArrayList<ItemStack> generatedLoot, LootContext context) { if(context.getRandom().nextFloat() < chance) { generatedLoot.add(new ItemStack(this.item)); } for(LootItemCondition condition : this.conditions) { if(!condition.test(context)) { return generatedLoot; } } generatedLoot.add(new ItemStack(this.item)); return generatedLoot; } @Override public Codec<? extends IGlobalLootModifier> codec() { return CODEC.get(); } } the only problem is the two "chance" are not defined, but when I add a private final Float chance, the AddItemModifier::new is in red underline, and there's an error. Is there a way to solve this, or is there another better way to add a chance to chest loot modifiers?
-
When i join every modapack 1.12.x and i press fullscreen it crash and it continue until reinstall
-
By Firebird_Films · Posted
java.lang.RuntimeException: Invalid id 4096 - maximum id range exceeded. I did fix this by adding NotEnoughIDs Now I'm running into another issue java.lang.RuntimeException: java.lang.NoSuchFieldException: processor ---- Minecraft Crash Report ---- WARNING: coremods are present: IELoadingPlugin (ImmersiveEngineering-core-0.12-98.jar) FTBUltimineASM (ftb-ultimine-1202.3.5.jar) ForgelinPlugin (Forgelin-1.8.4.jar) MovingWorldCore (movingworld-1.12-6.353-full.jar) MekanismCoremod (Mekanism-1.12.2-9.8.3.390.jar) OpenModsCorePlugin (OpenModsLib-1.12.2-0.12.2.jar) AppleCore (AppleCore-mc1.12.2-3.4.0.jar) Ar_CorePlugin (additionalresources-1.9.4-0.2.0.28+47cd0bd_signed.jar) CTMCorePlugin (CTM-MC1.12.2-1.0.2.31.jar) EnderCorePlugin (EnderCore-1.12.2-0.5.78-core.jar) TransformerLoader (OpenComputers-MC1.12.2-1.8.5+179e1c3.jar) Inventory Tweaks Coremod (InventoryTweaks-1.63.jar) JustEnoughIDs Extension Plugin (JustEnoughIDs-1.0.4-SNAPSHOT-thin.jar) SecretRoomsMod-Core (secretroomsmod-1.12.2-5.6.4.jar) LoadingPlugin (ResourceLoader-MC1.12.1-1.5.3.jar) MalisisCorePlugin (malisiscore-1.12.2-6.5.1.jar) Contact their authors BEFORE contacting forge // This doesn't make any sense! Time: 5/23/24 8:27 AM Description: Initializing game java.lang.RuntimeException: java.lang.NoSuchFieldException: processor at net.minecraftforge.fml.common.Loader.handler$beforeConstructingMods$zza000(Loader.java:1171) at net.minecraftforge.fml.common.Loader.loadMods(Loader.java:594) at net.minecraftforge.fml.client.FMLClientHandler.beginMinecraftLoading(FMLClientHandler.java:232) at net.minecraft.client.Minecraft.func_71384_a(Minecraft.java:467) at net.minecraft.client.Minecraft.func_99999_d(Minecraft.java:378) at net.minecraft.client.main.Main.main(SourceFile:123) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:497) at net.minecraft.launchwrapper.Launch.launch(Launch.java:135) at net.minecraft.launchwrapper.Launch.main(Launch.java:28) Caused by: java.lang.NoSuchFieldException: processor at java.lang.Class.getDeclaredField(Class.java:2070) at net.minecraftforge.fml.common.Loader.handler$beforeConstructingMods$zza000(Loader.java:1135) ... 11 more A detailed walkthrough of the error, its code path and all known details is as follows: --------------------------------------------------------------------------------------- -- Head -- Thread: Client thread Stacktrace: at net.minecraftforge.fml.common.Loader.handler$beforeConstructingMods$zza000(Loader.java:1171) at net.minecraftforge.fml.common.Loader.loadMods(Loader.java:594) at net.minecraftforge.fml.client.FMLClientHandler.beginMinecraftLoading(FMLClientHandler.java:232) at net.minecraft.client.Minecraft.func_71384_a(Minecraft.java:467) -- Initialization -- Details: Stacktrace: at net.minecraft.client.Minecraft.func_99999_d(Minecraft.java:378) at net.minecraft.client.main.Main.main(SourceFile:123) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:497) at net.minecraft.launchwrapper.Launch.launch(Launch.java:135) at net.minecraft.launchwrapper.Launch.main(Launch.java:28) -- System Details -- Details: Minecraft Version: 1.12.2 Operating System: Windows 10 (amd64) version 10.0 Java Version: 1.8.0_51, Oracle Corporation Java VM Version: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Oracle Corporation Memory: 898545248 bytes (856 MB) / 1655701504 bytes (1579 MB) up to 6084886528 bytes (5803 MB) JVM Flags: 3 total; -XX:HeapDumpPath=MojangTricksIntelDriversForPerformance_javaw.exe_minecraft.exe.heapdump -Xmx6528m -Xms256m IntCache: cache: 0, tcache: 0, allocated: 0, tallocated: 0 FML: MCP 9.42 Powered by Forge 14.23.5.2859 128 mods loaded, 128 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 | |:----- |:-------------------------------------------- |:------------------------ |:----------------------------------------------------- |:---------------------------------------- | | L | minecraft | 1.12.2 | minecraft.jar | None | | L | mcp | 9.42 | minecraft.jar | None | | L | FML | 8.0.99.99 | forge-1.12.2-14.23.5.2859.jar | e3c3d50c7c986df74c645c0ac54639741c90a557 | | L | forge | 14.23.5.2859 | forge-1.12.2-14.23.5.2859.jar | e3c3d50c7c986df74c645c0ac54639741c90a557 | | L | additionalresources | 0.1.1 | additionalresources-1.9.4-0.2.0.28+47cd0bd_signed.jar | None | | L | com.elytradev.movingworld.common.asm.coremod | | minecraft.jar | None | | L | openmodscore | 0.12.2 | minecraft.jar | None | | L | opencomputers|core | 1.8.5 | minecraft.jar | None | | L | srm-hooks | 1.12.2-1.0.0 | minecraft.jar | None | | L | achievementbooks | V1.0b-MC1.12.2 | achievementbooks-V1.0b-MC1.12.2.jar | None | | L | infinitylib | 1.12.2-1.12.1 | infinitylib-1.12.1.jar | None | | L | agricraft | 2.12.0-1.12.2-b2 | agricraft-2.12.0-1.12.2-b2.jar | None | | L | aoa3 | 3.3.6 | AoA3-3.3.6.jar | None | | L | applecore | 3.4.0 | AppleCore-mc1.12.2-3.4.0.jar | None | | L | jei | 4.16.1.301 | jei_1.12.2-4.16.1.301.jar | None | | L | appleskin | 1.0.14 | AppleSkin-mc1.12-1.0.14.jar | None | | L | ctm | MC1.12.2-1.0.2.31 | CTM-MC1.12.2-1.0.2.31.jar | None | | L | appliedenergistics2 | rv6-stable-7 | appliedenergistics2-rv6-stable-7.jar | None | | L | audiodeath | 0.7.0_1.9-87aeca7 | audiodeath-1.9-0.7.0.50+87aeca7.jar | None | | L | codechickenlib | 3.2.3.358 | CodeChickenLib-1.12.2-3.2.3.358-universal.jar | None | | L | avaritia | 3.3.0 | Avaritia-1.12.2-3.3.0.37-universal.jar | None | | L | bno | 1.12.2-1.0.4.0 | BasicNetherOres-1.12.2-1.0.5.0.jar | None | | L | baubles | 1.5.2 | Baubles-1.12-1.5.2.jar | None | | L | bdlib | 1.14.4.1 | bdlib-1.14.4.1-mc1.12.2.jar | None | | L | betteradvancements | 0.1.0.77 | BetterAdvancements-1.12.2-0.1.0.77.jar | None | | L | bibliocraft | 2.4.6 | BiblioCraft[v2.4.6][MC1.12.2].jar | None | | L | bluepower | 0.3.152 | BluePower-1.12.2-0.3.152-universal.jar | None | | L | thaumcraft | 6.1.BETA26 | Thaumcraft-1.12.2-6.1.BETA26.jar | None | | L | botania | r1.10-364 | Botania r1.10-364.4.jar | None | | L | redstoneflux | 2.1.1 | RedstoneFlux-1.12-2.1.1.1-universal.jar | None | | L | brandonscore | 2.4.20 | BrandonsCore-1.12.2-2.4.20.162-universal.jar | None | | L | chameleon | 1.12-4.1.3 | Chameleon-1.12-4.1.3.jar | None | | L | chancecubes | 1.12.2-5.0.2.385 | ChanceCubes-1.12.2-5.0.2.385.jar | None | | L | chickenchunks | 2.4.2.74 | ChickenChunks-1.12.2-2.4.2.74-universal.jar | None | | L | chisel | MC1.12.2-1.0.2.45 | Chisel-MC1.12.2-1.0.2.45.jar | None | | L | cofhcore | 4.6.6 | CoFHCore-1.12.2-4.6.6.1-universal.jar | None | | L | cofhworld | 1.4.0 | CoFHWorld-1.12.2-1.4.0.1-universal.jar | None | | L | collective | 3.0 | collective-1.12.2-3.0.jar | None | | L | cookingforblockheads | 6.5.0 | CookingForBlockheads_1.12.2-6.5.0.jar | None | | L | cucumber | 1.1.3 | Cucumber-1.12.2-1.1.3.jar | None | | L | custommainmenu | 2.0.9.1 | CustomMainMenu-MC1.12.2-2.0.9.1.jar | None | | L | customnpcs | 1.12 | CustomNPCs_1.12.2-(05Jul20).jar | None | | L | cyclopscore | 1.6.7 | CyclopsCore-1.12.2-1.6.7.jar | None | | L | movingworld | 1.12-6.353 | movingworld-1.12-6.353-full.jar | None | | L | davincisvessels | @DVESSELSVER@ | davincisvessels-1.12-6.340-full.jar | None | | L | ptrmodellib | 1.0.5 | PTRLib-1.0.5.jar | None | | L | props | 2.6.3.7 | Decocraft-2.6.3.7_1.12.2.jar | None | | L | thermalfoundation | 2.6.7 | ThermalFoundation-1.12.2-2.6.7.1-universal.jar | None | | L | draconicevolution | 2.3.28 | Draconic-Evolution-1.12.2-2.3.28.354-universal.jar | None | | L | lootablebodies | 2.4.0 | DrCyanosLootableBodies_1.12-2.4.0.jar | None | | L | elevatorid | 1.3.14 | ElevatorMod-1.12.2-1.3.14.jar | None | | L | endercore | 1.12.2-0.5.78 | EnderCore-1.12.2-0.5.78.jar | None | | L | thermalexpansion | 5.5.7 | ThermalExpansion-1.12.2-5.5.7.1-universal.jar | None | | L | enderio | 5.3.72 | EnderIO-base-1.12.2-5.3.72.jar | None | | L | enderiointegrationtic | 5.3.72 | EnderIO-integration-tic-1.12.2-5.3.72.jar | None | | L | enderiobase | 5.3.72 | EnderIO-base-1.12.2-5.3.72.jar | None | | L | mantle | 1.12-1.3.3.55 | Mantle-1.12-1.3.3.55.jar | None | | L | twilightforest | 3.11.1021 | twilightforest-1.12.2-3.11.1021-universal.jar | None | | L | tconstruct | 1.12.2-2.13.0.183 | TConstruct-1.12.2-2.13.0.183.jar | None | | L | enderiointegrationticlate | 5.3.72 | EnderIO-integration-tic-1.12.2-5.3.72.jar | None | | L | enderstorage | 2.4.6.137 | EnderStorage-1.12.2-2.4.6.137-universal.jar | None | | L | evilcraft | 0.10.78 | EvilCraft-1.12.2-0.10.78.jar | None | | L | natura | 1.12.2-4.3.2.69 | natura-1.12.2-4.3.2.69.jar | None | | L | forestry | 5.8.2.387 | forestry_1.12.2-5.8.2.387.jar | None | | L | evilcraftcompat | 1.0.0 | EvilCraft-1.12.2-0.10.78.jar | None | | L | waila | 1.8.26 | Hwyla-1.8.26-B41_1.12.2.jar | None | | L | extracells | 2.6.7 | ExtraCells-1.12.2-2.6.7.jar | None | | L | extrautils2 | 1.0 | extrautils2-1.12-1.9.9.jar | None | | L | opencomputers | 1.8.5 | OpenComputers-MC1.12.2-1.8.5+179e1c3.jar | None | | L | zerocore | 1.12.2-0.1.2.9 | zerocore-1.12.2-0.1.2.9.jar | None | | L | bigreactors | 1.12.2-0.4.5.68 | ExtremeReactors-1.12.2-0.4.5.68.jar | None | | L | fastleafdecay | v14 | FastLeafDecay-v14.jar | None | | L | fluxnetworks | 4.1.0 | FluxNetworks-1.12.2-4.1.1.34.jar | None | | L | forgelin | 1.8.4 | Forgelin-1.8.4.jar | None | | L | ftbultimine | 1202.3.5 | ftb-ultimine-1202.3.5.jar | None | | L | ichunutil | 7.2.2 | iChunUtil-1.12.2-7.2.2.jar | None | | L | gravitygun | 7.1.0 | GravityGun-1.12.2-7.1.0.jar | None | | L | headcrumbs | 2.0.4 | Headcrumbs-1.12.2-2.0.5.17.jar | None | | L | mekanism | 1.12.2-9.8.3.390 | Mekanism-1.12.2-9.8.3.390.jar | None | | L | teslacorelib | 1.0.18 | tesla-core-lib-1.12.2-1.0.18.jar | None | | L | industrialforegoing | 1.12.2-1.12.2 | industrialforegoing-1.12.2-1.12.13-237.jar | None | | L | inventorypets | 2.0.15 | inventorypets-1.12-2.0.15.jar | None | | L | inventorytweaks | 1.63+release.109.220f184 | InventoryTweaks-1.63.jar | None | | L | ironchest | 1.12.2-7.0.67.844 | ironchest-1.12.2-7.0.72.847.jar | None | | L | jeibees | 0.9.0.5 | jeibees-0.9.0.5-mc1.12.2.jar | None | | L | jeiintegration | 1.6.0 | jeiintegration_1.12.2-1.6.0.jar | None | | L | jeid | 1.0.4-SNAPSHOT | JustEnoughIDs-1.0.4-SNAPSHOT-thin.jar | None | | L | malisiscore | 1.12.2-6.5.1-SNAPSHOT | malisiscore-1.12.2-6.5.1.jar | None | | L | malisisdoors | 1.12.2-7.3.0 | malisisdoors-1.12.2-7.3.0.jar | None | | L | mysticalagriculture | 1.7.5 | MysticalAgriculture-1.12.2-1.7.5.jar | None | | L | matc | 1.0.1-hotfix | matc-1.0.1-hotfix.jar | None | | L | mca | 6.1.0 | MCA-1.12.2-6.1.0-universal.jar | None | | L | mcjtylib_ng | 3.5.4 | mcjtylib-1.12-3.5.4.jar | None | | L | mekanismgenerators | 1.12.2-9.8.3.390 | MekanismGenerators-1.12.2-9.8.3.390.jar | None | | L | mekanismtools | 1.12.2-9.8.3.390 | MekanismTools-1.12.2-9.8.3.390.jar | None | | L | mob_grinding_utils | 0.3.13 | MobGrindingUtils-0.3.13.jar | None | | L | numina | 1.0 | Numina-1.12.2-1.1.049.jar | None | | L | refinedstorage | 1.6.16 | refinedstorage-1.6.16.jar | None | | L | powersuits | 1.1.048 | ModularPowersuits-1.12.2-1.1.048.jar | None | | L | morph | 7.2.0 | Morph-1.12.2-7.2.1.jar | None | | L | mousetweaks | 2.10 | MouseTweaks-2.10-mc1.12.2.jar | None | | L | mysticalagradditions | 1.3.2 | MysticalAgradditions-1.12.2-1.3.2.jar | None | | L | openmods | 0.12.2 | OpenModsLib-1.12.2-0.12.2.jar | None | | L | openblocks | 1.8.1 | OpenBlocks-1.12.2-1.8.1.jar | None | | L | harvestcraft | 1.12.2zb | Pam's HarvestCraft 1.12.2zg.jar | None | | L | patchouli | 1.0-23.6 | Patchouli-1.0-23.6.jar | None | | L | portalgun | 7.1.0 | PortalGun-1.12.2-7.1.0.jar | None | | L | projecte | 1.12.2-PE1.4.1 | ProjectE-1.12.2-PE1.4.1.jar | None | | L | projectex | 1.2.0.40 | ProjectEX-1.2.0.40.jar | None | | L | radixcore | 1.12.x-2.2.1 | RadixCore-1.12.x-2.2.1-universal.jar | None | | L | redstonearsenal | 2.6.6 | RedstoneArsenal-1.12.2-2.6.6.1-universal.jar | None | | L | xreliquary | 1.12.2-1.3.4.796 | Reliquary-1.12.2-1.3.4.796.jar | None | | L | resourceloader | 1.5.3 | ResourceLoader-MC1.12.1-1.5.3.jar | None | | L | rftools | 7.73 | rftools-1.12-7.73.jar | None | | L | secretroomsmod | 5.6.4 | secretroomsmod-1.12.2-5.6.4.jar | None | | L | thermaldynamics | 2.5.6 | ThermalDynamics-1.12.2-2.5.6.1-universal.jar | None | | L | immersiveengineering | 0.12-98 | ImmersiveEngineering-0.12-98.jar | None | | L | simplyjetpacks | 1.12.2-2.2.20.0 | SimplyJetpacks2-1.12.2-2.2.20.0.jar | None | | L | starterkit | 2.4 | starterkit_1.12.2-2.4.jar | None | | L | storagedrawers | 5.5.0 | StorageDrawers-1.12.2-5.5.0.jar | None | | L | thaumicjei | 1.6.0 | ThaumicJEI-1.12.2-1.6.0-27.jar | None | | L | thermalinnovation | 0.3.6 | ThermalInnovation-1.12.2-0.3.6.1-universal.jar | None | | L | tcomplement | 1.12.2-0.4.3 | TinkersComplement-1.12.2-0.4.3.jar | None | | L | tinkersjei | 1.2 | tinkersjei-1.2.jar | None | | L | tinkertoolleveling | 1.12.2-1.1.0.DEV.b23e769 | TinkerToolLeveling-1.12.2-1.1.0.jar | None | | L | wawla | 2.6.275 | Wawla-1.12.2-2.6.275.jar | None | | L | matteroverdrive | 0.7.0.0 | MatterOverdrive-1.12.2-0.7.1.0-universal.jar | None | | L | teslacorelib_registries | 1.0.18 | tesla-core-lib-1.12.2-1.0.18.jar | None | Loaded coremods (and transformers): IELoadingPlugin (ImmersiveEngineering-core-0.12-98.jar) blusunrize.immersiveengineering.common.asm.IEClassTransformer FTBUltimineASM (ftb-ultimine-1202.3.5.jar) ForgelinPlugin (Forgelin-1.8.4.jar) MovingWorldCore (movingworld-1.12-6.353-full.jar) MekanismCoremod (Mekanism-1.12.2-9.8.3.390.jar) mekanism.coremod.KeybindingMigrationHelper OpenModsCorePlugin (OpenModsLib-1.12.2-0.12.2.jar) openmods.core.OpenModsClassTransformer AppleCore (AppleCore-mc1.12.2-3.4.0.jar) squeek.applecore.asm.TransformerModuleHandler Ar_CorePlugin (additionalresources-1.9.4-0.2.0.28+47cd0bd_signed.jar) CTMCorePlugin (CTM-MC1.12.2-1.0.2.31.jar) team.chisel.ctm.client.asm.CTMTransformer EnderCorePlugin (EnderCore-1.12.2-0.5.78-core.jar) com.enderio.core.common.transform.EnderCoreTransformer com.enderio.core.common.transform.SimpleMixinPatcher TransformerLoader (OpenComputers-MC1.12.2-1.8.5+179e1c3.jar) li.cil.oc.common.asm.ClassTransformer Inventory Tweaks Coremod (InventoryTweaks-1.63.jar) invtweaks.forge.asm.ContainerTransformer JustEnoughIDs Extension Plugin (JustEnoughIDs-1.0.4-SNAPSHOT-thin.jar) org.dimdev.jeid.JEIDTransformer SecretRoomsMod-Core (secretroomsmod-1.12.2-5.6.4.jar) com.wynprice.secretroomsmod.core.SecretRoomsTransformer LoadingPlugin (ResourceLoader-MC1.12.1-1.5.3.jar) lumien.resourceloader.asm.ClassTransformer MalisisCorePlugin (malisiscore-1.12.2-6.5.1.jar) GL info: ' Vendor: 'NVIDIA Corporation' Version: '4.6.0 NVIDIA 552.22' Renderer: 'NVIDIA GeForce GTX 1070 Ti/PCIe/SSE2' Launched Version: forge-14.23.5.2859 LWJGL: 2.9.4 OpenGL: NVIDIA GeForce GTX 1070 Ti/PCIe/SSE2 GL version 4.6.0 NVIDIA 552.22, NVIDIA Corporation GL Caps: Using GL 1.3 multitexturing. Using GL 1.3 texture combiners. Using framebuffer objects because OpenGL 3.0 is supported and separate blending is supported. Shaders are available because OpenGL 2.1 is supported. VBOs are available because OpenGL 1.5 is supported. Using VBOs: Yes Is Modded: Definitely; Client brand changed to 'fml,forge' Type: Client (map_client.txt) Resource Packs: Current Language: English (US) Profiler Position: N/A (disabled) CPU: 12x Intel(R) Core(TM) i7-8700K CPU @ 3.70GHz -
By TileEntity · Posted
Make a test without Optifine - looks like Optifine is running into a rendering conflict with alexmobs There is a CombJelly in your area/house which is causing this issue
-
-
Topics
Recommended Posts