• Recently Browsing

    No registered users viewing this page.

  • Posts

    • Hello! I created a custom enchantment that is supposed to work like knockback, but it sends the victim in a random direction at a random velocity depending on the enchantment level. It all works perfectly in a single player environment, but upon hitting a mob with a "Glitch" sword with separate physical client and server, the server crashes with a noSuchMethodError exception. I'm  fairly new to modding so I don't fully understand how sides work. Any help would be appreciated.   here is the event that executes logic upon a mob being hit with a glitch weapon: public class glitchevent { @SubscribeEvent public void onglitch(AttackEntityEvent e) { Entity target = e.getTarget(); PlayerEntity attacker = e.getPlayer(); int level = EnchantmentHelper.getEnchantmentLevel(ObjectHolderStorage.GLITCH, attacker.getHeldItemMainhand()); Random r = new Random(); int ins = r.nextInt(level + 2); double launchmultiplier = ins; double invertedlaunchmultiplier = ins - ins * ins; int test = r.nextInt(4); World world = e.getPlayer().world; if (!world.isRemote) { switch (test) { case 0: target.setVelocity(launchmultiplier, 0.1D, launchmultiplier); break; case 1: target.setVelocity(invertedlaunchmultiplier, 0.1D, launchmultiplier); break; case 2: target.setVelocity(invertedlaunchmultiplier, 0.1D, invertedlaunchmultiplier); break; case 3: target.setVelocity(launchmultiplier, 0.1D, invertedlaunchmultiplier); break; } } } } and here are the exceptions thrown on the server: [12Aug2020 00:21:21.669] [Server thread/ERROR] [net.minecraftforge.eventbus.EventBus/EVENTBUS]: Exception caught during firing event: net.minecraft.entity.Entity.func_70016_h(DDD)V Index: 1 Listeners: 0: NORMAL 1: ASM: mod.extraenchants.events.glitchevent@2c63f610 onglitch(Lnet/minecraftforge/event/entity/player/AttackEntityEvent;)V java.lang.NoSuchMethodError: net.minecraft.entity.Entity.func_70016_h(DDD)V at mod.extraenchants.events.glitchevent.onglitch(glitchevent.java:36) at net.minecraftforge.eventbus.ASMEventHandler_2_glitchevent_onglitch_AttackEntityEvent.invoke(.dynamic) at net.minecraftforge.eventbus.ASMEventHandler.invoke(ASMEventHandler.java:85) at net.minecraftforge.eventbus.EventBus.post(EventBus.java:297) at net.minecraftforge.common.ForgeHooks.onPlayerAttackTarget(ForgeHooks.java:719) at net.minecraft.entity.player.PlayerEntity.func_71059_n(PlayerEntity.java:1035) at net.minecraft.entity.player.ServerPlayerEntity.func_71059_n(ServerPlayerEntity.java:1280) at net.minecraft.network.play.ServerPlayNetHandler.func_147340_a(ServerPlayNetHandler.java:1127) at net.minecraft.network.play.client.CUseEntityPacket.func_148833_a(SourceFile:74) at net.minecraft.network.play.client.CUseEntityPacket.func_148833_a(SourceFile:13) at net.minecraft.network.PacketThreadUtil.func_225383_a(SourceFile:21) at net.minecraft.util.concurrent.TickDelayedTask.run(SourceFile:18) at net.minecraft.util.concurrent.ThreadTaskExecutor.func_213166_h(SourceFile:144) at net.minecraft.util.concurrent.RecursiveEventLoop.func_213166_h(SourceFile:23) at net.minecraft.server.MinecraftServer.func_213166_h(MinecraftServer.java:735) at net.minecraft.server.MinecraftServer.func_213166_h(MinecraftServer.java:157) at net.minecraft.util.concurrent.ThreadTaskExecutor.func_213168_p(SourceFile:118) at net.minecraft.server.MinecraftServer.func_213205_aW(MinecraftServer.java:718) at net.minecraft.server.MinecraftServer.func_213168_p(MinecraftServer.java:712) at net.minecraft.util.concurrent.ThreadTaskExecutor.func_213160_bf(SourceFile:103) at net.minecraft.server.MinecraftServer.func_213202_o(MinecraftServer.java:697) at net.minecraft.server.MinecraftServer.func_240802_v_(MinecraftServer.java:647) at net.minecraft.server.MinecraftServer.lambda$func_240784_a_$0(MinecraftServer.java:230) at java.base/java.lang.Thread.run(Thread.java:834) [12Aug2020 00:21:21.825] [Server thread/ERROR] [net.minecraft.server.MinecraftServer/]: Encountered an unexpected exception java.lang.NoSuchMethodError: net.minecraft.entity.Entity.func_70016_h(DDD)V at mod.extraenchants.events.glitchevent.onglitch(glitchevent.java:36) ~[?:1.2] at net.minecraftforge.eventbus.ASMEventHandler_2_glitchevent_onglitch_AttackEntityEvent.invoke(.dynamic) ~[?:?] at net.minecraftforge.eventbus.ASMEventHandler.invoke(ASMEventHandler.java:85) ~[eventbus-3.0.3-service.jar:?] at net.minecraftforge.eventbus.EventBus.post(EventBus.java:297) ~[eventbus-3.0.3-service.jar:?] at net.minecraftforge.common.ForgeHooks.onPlayerAttackTarget(ForgeHooks.java:719) ~[?:?] at net.minecraft.entity.player.PlayerEntity.func_71059_n(PlayerEntity.java:1035) ~[?:?] at net.minecraft.entity.player.ServerPlayerEntity.func_71059_n(ServerPlayerEntity.java:1280) ~[?:?] at net.minecraft.network.play.ServerPlayNetHandler.func_147340_a(ServerPlayNetHandler.java:1127) ~[?:?] at net.minecraft.network.play.client.CUseEntityPacket.func_148833_a(SourceFile:74) ~[?:?] at net.minecraft.network.play.client.CUseEntityPacket.func_148833_a(SourceFile:13) ~[?:?] at net.minecraft.network.PacketThreadUtil.func_225383_a(SourceFile:21) ~[?:?] at net.minecraft.util.concurrent.TickDelayedTask.run(SourceFile:18) ~[?:?] at net.minecraft.util.concurrent.ThreadTaskExecutor.func_213166_h(SourceFile:144) ~[?:?] at net.minecraft.util.concurrent.RecursiveEventLoop.func_213166_h(SourceFile:23) ~[?:?] at net.minecraft.server.MinecraftServer.func_213166_h(MinecraftServer.java:735) ~[?:?] at net.minecraft.server.MinecraftServer.func_213166_h(MinecraftServer.java:157) ~[?:?] at net.minecraft.util.concurrent.ThreadTaskExecutor.func_213168_p(SourceFile:118) ~[?:?] at net.minecraft.server.MinecraftServer.func_213205_aW(MinecraftServer.java:718) ~[?:?] at net.minecraft.server.MinecraftServer.func_213168_p(MinecraftServer.java:712) ~[?:?] at net.minecraft.util.concurrent.ThreadTaskExecutor.func_213160_bf(SourceFile:103) ~[?:?] at net.minecraft.server.MinecraftServer.func_213202_o(MinecraftServer.java:697) ~[?:?] at net.minecraft.server.MinecraftServer.func_240802_v_(MinecraftServer.java:647) ~[?:?] at net.minecraft.server.MinecraftServer.lambda$func_240784_a_$0(MinecraftServer.java:230) ~[?:?] at java.lang.Thread.run(Thread.java:834) [?:?]  
    • Ok, I figured out where I was going wrong with it not having a tile entity, so that's fixed. Still not sure how to check for recipes...
    • https://docs.gradle.org/current/userguide/core_dependency_management.html
    • So I was looking for mods to install but when i tried to start my game it gave a error that i never saw, i looked it up but could not find anything usefull.   Crash report:   ---- Minecraft Crash Report ---- // My bad. Time: 2020-08-12 18:34:19 CEST Description: Initializing game net.minecraftforge.fml.common.LoaderExceptionModCrash: Caught exception from CodeChicken Lib (codechickenlib) Caused by: codechicken.lib.configuration.ConfigFile$ConfigException: codechicken.lib.configuration.ConfigParseException: Invalid value type d, @Line:20, dump_asm=true     at codechicken.lib.configuration.ConfigFile.load(ConfigFile.java:61)     at codechicken.lib.configuration.ConfigFile.<init>(ConfigFile.java:43)     at codechicken.lib.configuration.ConfigFile.<init>(ConfigFile.java:29)     at codechicken.lib.configuration.ConfigFile.<init>(ConfigFile.java:19)     at codechicken.lib.CodeChickenLib.preInit(CodeChickenLib.java:50)     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.minecraftforge.fml.common.FMLModContainer.handleModStateEvent(FMLModContainer.java:637)     at sun.reflect.GeneratedMethodAccessor10.invoke(Unknown Source)     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)     at java.lang.reflect.Method.invoke(Method.java:497)     at com.google.common.eventbus.Subscriber.invokeSubscriberMethod(Subscriber.java:91)     at com.google.common.eventbus.Subscriber$SynchronizedSubscriber.invokeSubscriberMethod(Subscriber.java:150)     at com.google.common.eventbus.Subscriber$1.run(Subscriber.java:76)     at com.google.common.util.concurrent.MoreExecutors$DirectExecutor.execute(MoreExecutors.java:399)     at com.google.common.eventbus.Subscriber.dispatchEvent(Subscriber.java:71)     at com.google.common.eventbus.Dispatcher$PerThreadQueuedDispatcher.dispatch(Dispatcher.java:116)     at com.google.common.eventbus.EventBus.post(EventBus.java:217)     at net.minecraftforge.fml.common.LoadController.sendEventToModContainer(LoadController.java:219)     at net.minecraftforge.fml.common.LoadController.propogateStateMessage(LoadController.java:197)     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 com.google.common.eventbus.Subscriber.invokeSubscriberMethod(Subscriber.java:91)     at com.google.common.eventbus.Subscriber$SynchronizedSubscriber.invokeSubscriberMethod(Subscriber.java:150)     at com.google.common.eventbus.Subscriber$1.run(Subscriber.java:76)     at com.google.common.util.concurrent.MoreExecutors$DirectExecutor.execute(MoreExecutors.java:399)     at com.google.common.eventbus.Subscriber.dispatchEvent(Subscriber.java:71)     at com.google.common.eventbus.Dispatcher$PerThreadQueuedDispatcher.dispatch(Dispatcher.java:116)     at com.google.common.eventbus.EventBus.post(EventBus.java:217)     at net.minecraftforge.fml.common.LoadController.distributeStateMessage(LoadController.java:136)     at net.minecraftforge.fml.common.Loader.preinitializeMods(Loader.java:627)     at net.minecraftforge.fml.client.FMLClientHandler.beginMinecraftLoading(FMLClientHandler.java:252)     at net.minecraft.client.Minecraft.init(Minecraft.java:467)     at net.minecraft.client.Minecraft.run(Minecraft.java:3931)     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: codechicken.lib.configuration.ConfigParseException: Invalid value type d, @Line:20, dump_asm=true     at codechicken.lib.configuration.ConfigTag.parseTag(ConfigTag.java:92)     at codechicken.lib.configuration.ConfigFile.load(ConfigFile.java:59)     ... 44 more A detailed walkthrough of the error, its code path and all known details is as follows: --------------------------------------------------------------------------------------- -- System 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: 384219944 bytes (366 MB) / 1073741824 bytes (1024 MB) up to 2147483648 bytes (2048 MB)   JVM Flags: 8 total; -XX:HeapDumpPath=MojangTricksIntelDriversForPerformance_javaw.exe_minecraft.exe.heapdump -Xmx2G -XX:+UnlockExperimentalVMOptions -XX:+UseG1GC -XX:G1NewSizePercent=20 -XX:G1ReservePercent=20 -XX:MaxGCPauseMillis=50 -XX:G1HeapRegionSize=32M   IntCache: cache: 0, tcache: 0, allocated: 0, tallocated: 0   FML: MCP 9.42 Powered by Forge 14.23.5.2836 Optifine OptiFine_1.12.2_HD_U_F5 65 mods loaded, 65 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                                |        |:----- |:--------------------------- |:------------------------ |:-------------------------------------------------- |:---------------------------------------- |        | LCH   | minecraft                   | 1.12.2                   | minecraft.jar                                      | None                                     |        | LCH   | mcp                         | 9.42                     | minecraft.jar                                      | None                                     |        | LCH   | FML                         | 8.0.99.99                | forge-1.12.2-14.23.5.2836.jar                      | e3c3d50c7c986df74c645c0ac54639741c90a557 |        | LCH   | forge                       | 14.23.5.2836             | forge-1.12.2-14.23.5.2836.jar                      | e3c3d50c7c986df74c645c0ac54639741c90a557 |        | LCH   | damageindicatorsmod         | 1.0                      | [1.12.2]DamageIndicatorsMod-3.5.1.jar              | None                                     |        | LCH   | jei                         | 4.15.0.291               | jei_1.12.2-4.15.0.291.jar                          | None                                     |        | LCH   | quark                       | r1.6-179                 | Quark-r1.6-179.jar                                 | None                                     |        | LCH   | autoreglib                  | 1.3-32                   | AutoRegLib-1.3-32.jar                              | None                                     |        | LCH   | baubles                     | 1.5.2                    | Baubles-Mod-1.12.2.jar                             | None                                     |        | LCH   | mujmajnkraftsbettersurvival | 1.4.1                    | better_survival-1.4.1.jar                          | None                                     |        | LCH   | xaerobetterpvp              | 20.2.0                   | BetterPvP_20.2.0_Forge_1.12.jar                    | None                                     |        | LCE   | codechickenlib              | 3.2.3.358                | CodeChickenLib-1.12.2.jar                          | f1850c39b2516232a2108a7bd84d1cb5df93b261 |        | LC    | redstoneflux                | 2.1.1                    | RedstoneFlux-1.12-2.1.1.1-universal.jar            | None                                     |        | LC    | brandonscore                | 2.4.18                   | BrandonsCore-1.12.2-2.4.18.210-universal.jar       | None                                     |        | LC    | buildcraftlib               | 7.99.24.6                | buildcraft-all-7.99.24.6.jar                       | None                                     |        | LC    | buildcraftcore              | 7.99.24.6                | buildcraft-all-7.99.24.6.jar                       | None                                     |        | LC    | buildcraftbuilders          | 7.99.24.6                | buildcraft-all-7.99.24.6.jar                       | None                                     |        | LC    | buildcrafttransport         | 7.99.24.6                | buildcraft-all-7.99.24.6.jar                       | None                                     |        | LC    | buildcraftsilicon           | 7.99.24.6                | buildcraft-all-7.99.24.6.jar                       | None                                     |        | LC    | buildcraftcompat            | 7.99.24.6                | buildcraft-all-7.99.24.6.jar                       | None                                     |        | LC    | buildcraftenergy            | 7.99.24.6                | buildcraft-all-7.99.24.6.jar                       | None                                     |        | LC    | buildcraftfactory           | 7.99.24.6                | buildcraft-all-7.99.24.6.jar                       | None                                     |        | LC    | buildcraftrobotics          | 7.99.24.6                | buildcraft-all-7.99.24.6.jar                       | None                                     |        | LC    | buildinggadgets             | 2.7.1                    | BuildingGadgets-2.7.1.jar                          | None                                     |        | LC    | ctm                         | MC1.12.2-1.0.2.31        | CTM-MC1.12.2-1.0.2.31.jar                          | None                                     |        | LC    | chisel                      | MC1.12.2-0.2.1.35        | Chisel-MC1.12.2-0.2.1.35.jar                       | None                                     |        | LC    | draconicevolution           | 2.3.25                   | Draconic-Evolution-1.12.2-2.3.25.351-universal.jar | None                                     |        | LC    | mocreatures                 | 12.0.5                   | DrZharks+MoCreatures+Mod-12.0.5.jar                | None                                     |        | LC    | dynamiclights               | 1.4.9                    | DynamicLights-1.12.2.jar                           | None                                     |        | LC    | dynamiclights_onfire        | 1.0.7                    | DynamicLights-1.12.2.jar                           | None                                     |        | LC    | dynamiclights_creepers      | 1.0.6                    | DynamicLights-1.12.2.jar                           | None                                     |        | LC    | dynamiclights_dropitems     | 1.1.0                    | DynamicLights-1.12.2.jar                           | None                                     |        | LC    | dynamiclights_entityclasses | 1.0.1                    | DynamicLights-1.12.2.jar                           | None                                     |        | LC    | dynamiclights_mobequipment  | 1.1.0                    | DynamicLights-1.12.2.jar                           | None                                     |        | LC    | dynamiclights_flamearrows   | 1.0.1                    | DynamicLights-1.12.2.jar                           | None                                     |        | LC    | dynamiclights_floodlights   | 1.0.3                    | DynamicLights-1.12.2.jar                           | None                                     |        | LC    | dynamiclights_otherplayers  | 1.0.9                    | DynamicLights-1.12.2.jar                           | None                                     |        | LC    | dynamiclights_theplayer     | 1.1.3                    | DynamicLights-1.12.2.jar                           | None                                     |        | LC    | placebo                     | 1.6.0                    | Placebo-1.12.2.jar                                 | None                                     |        | LC    | enderbags                   | 2.1.0                    | Ender+Bags-1.12.2-2.1.0.jar                        | None                                     |        | LC    | forgelin                    | 1.8.3                    | Shadowfacts-Forgelin-1.12.2.jar                    | None                                     |        | LC    | librarianlib                | 4.20                     | librarianlib-1.12.2-4.20-release.jar               | None                                     |        | LC    | hooked                      | %VERSION%                | hooked-1.0.3.jar                                   | None                                     |        | LC    | waila                       | 1.8.26                   | Hwyla-Mod-1.12.2.jar                               | None                                     |        | LC    | ichunutil                   | 7.2.2                    | iChunUtil-1.12.2-7.2.2.jar                         | 4db5c2bd1b556f252a5b8b54b256d381b2a0a6b8 |        | LC    | infernalmobs                | 1.7.6                    | InfernalMobs-1.12.2.jar                            | None                                     |        | LC    | inventorytweaks             | 1.63+release.109.220f184 | InventoryTweaks-1.63.jar                           | 55d2cd4f5f0961410bf7b91ef6c6bf00a766dcbe |        | LC    | ironchest                   | 1.12.2-7.0.55.839        | IronChest-1.12.2.jar                               | None                                     |        | LC    | journeymap                  | 1.12.2-5.7.0             | journeymap-1.12.2-5.7.0.jar                        | None                                     |        | LC    | keystrokesmod               | 7.0                      | Keystrokes-7.0 (1.12.2).jar                        | None                                     |        | LC    | lumberjack                  | 1.4.1                    | lumberjack-1.4.1.jar                               | None                                     |        | LC    | mousetweaks                 | 2.10                     | MouseTweaks-2.10-mc1.12.2.jar                      | None                                     |        | LC    | overpoweredarmorbar         | 0.3.2                    | overpoweredarmorbar-1.12.2-0.3.2.jar               | None                                     |        | LC    | harvestcraft                | 1.12.2zb                 | Pam's+HarvestCraft+1.12.2ze.jar                    | None                                     |        | LC    | portalgun                   | 7.1.0                    | PortalGun-1.12.2-7.1.0.jar                         | 4db5c2bd1b556f252a5b8b54b256d381b2a0a6b8 |        | LC    | potioncore                  | 1.9_for_1.12.2           | PotionCore-1.9_for_1.12.2.jar                      | None                                     |        | LC    | ropebridge                  | 2.0.5                    | ropebridge-1.12-2.0.7.jar                          | None                                     |        | LC    | silentlib                   | 3.0.13                   | SilentLib-1.12.2-3.0.14+168.jar                    | None                                     |        | LC    | silentgear                  | 0.6.5                    | SilentGear-1.12.2-0.6.7+76.jar                     | None                                     |        | LC    | torcherino                  | 7.6                      | torcherino-7.6.jar                                 | None                                     |        | LC    | travellersboots             | 1.0.4                    | travellersboots-1.12.2-1.0.4.jar                   | None                                     |        | LC    | vanillafix                  | 1.0.10-150               | VanillaFix-1.0.10-150.jar                          | None                                     |        | LC    | veinminer                   | 0.38.2                   | VeinMiner-1.12-0.38.2.647+b31535a.jar              | None                                     |        | LC    | veinminermodsupport         | 0.38.2                   | VeinMiner-1.12-0.38.2.647+b31535a.jar              | None                                     |        | LC    | librarianliblate            | 4.20                     | librarianlib-1.12.2-4.20-release.jar               | None                                     |   Loaded coremods (and transformers): LibrarianLib Plugin (librarianlib-1.12.2-4.20-release.jar)                                         com.teamwizardry.librarianlib.asm.LibLibTransformer                                       Inventory Tweaks Coremod (InventoryTweaks-1.63.jar)                                         invtweaks.forge.asm.ContainerTransformer                                       VanillaFixLoadingPlugin (VanillaFix-1.0.10-150.jar)                                                                                ForgelinPlugin (Shadowfacts-Forgelin-1.12.2.jar)                                                                                Quark Plugin (Quark-r1.6-179.jar)                                         vazkii.quark.base.asm.ClassTransformer                                       CTMCorePlugin (CTM-MC1.12.2-1.0.2.31.jar)                                         team.chisel.ctm.client.asm.CTMTransformer                                       DLFMLCorePlugin (DynamicLights-1.12.2.jar)                                         atomicstryker.dynamiclights.common.DLTransformer   GL info: ' Vendor: 'NVIDIA Corporation' Version: '4.6.0 NVIDIA 442.23' Renderer: 'GeForce GT 730/PCIe/SSE2'   Suspected Mods: CodeChicken Lib (codechickenlib)   Launched Version: 1.12.2-forge1.12.2-14.23.5.2836   LWJGL: 2.9.4   OpenGL: GeForce GT 730/PCIe/SSE2 GL version 4.6.0 NVIDIA 442.23, 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: §bDynamic Duo §8[§f128x§8].zip (incompatible)   Current Language: English (US)   Profiler Position: N/A (disabled)   CPU: 4x Intel(R) Core(TM) i3-2100 CPU @ 3.10GHz  
  • Topics

  • Who's Online (See full list)