Jump to content

Recommended Posts

Posted

I need to know how to fix these errors-

 

---- Minecraft Crash Report ----

// Daisy, daisy...

 

Time: 12/24/13 1:19 PM

Description: Exception in server tick loop

 

java.lang.NoClassDefFoundError: net/minecraft/client/gui/GuiScreen

at java.lang.Class.forName0(Native Method)

at java.lang.Class.forName(Unknown Source)

at cpw.mods.fml.common.ModClassLoader.loadBaseModClass(ModClassLoader.java:104)

at cpw.mods.fml.common.modloader.ModLoaderModContainer.constructMod(ModLoaderModContainer.java:484)

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)

at java.lang.reflect.Method.invoke(Unknown Source)

at com.google.common.eventbus.EventHandler.handleEvent(EventHandler.java:74)

at com.google.common.eventbus.SynchronizedEventHandler.handleEvent(SynchronizedEventHandler.java:45)

at com.google.common.eventbus.EventBus.dispatch(EventBus.java:313)

at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:296)

at com.google.common.eventbus.EventBus.post(EventBus.java:267)

at cpw.mods.fml.common.LoadController.sendEventToModContainer(LoadController.java:201)

at cpw.mods.fml.common.LoadController.propogateStateMessage(LoadController.java:181)

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)

at java.lang.reflect.Method.invoke(Unknown Source)

at com.google.common.eventbus.EventHandler.handleEvent(EventHandler.java:74)

at com.google.common.eventbus.SynchronizedEventHandler.handleEvent(SynchronizedEventHandler.java:45)

at com.google.common.eventbus.EventBus.dispatch(EventBus.java:313)

at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:296)

at com.google.common.eventbus.EventBus.post(EventBus.java:267)

at cpw.mods.fml.common.LoadController.distributeStateMessage(LoadController.java:112)

at cpw.mods.fml.common.Loader.loadMods(Loader.java:511)

at cpw.mods.fml.server.FMLServerHandler.beginServerLoading(FMLServerHandler.java:99)

at cpw.mods.fml.common.FMLCommonHandler.onServerStart(FMLCommonHandler.java:350)

at net.minecraft.server.dedicated.DedicatedServer.func_71197_b(DedicatedServer.java:92)

at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:633)

at net.minecraft.server.ThreadMinecraftServer.run(ThreadMinecraftServer.java:16)

Caused by: java.lang.ClassNotFoundException: net.minecraft.client.gui.GuiScreen

at net.minecraft.launchwrapper.LaunchClassLoader.findClass(LaunchClassLoader.java:186)

at java.lang.ClassLoader.loadClass(Unknown Source)

at java.lang.ClassLoader.loadClass(Unknown Source)

... 31 more

Caused by: java.lang.RuntimeException: Attempted to load class awe for invalid side SERVER

at cpw.mods.fml.common.asm.transformers.SideTransformer.transform(SideTransformer.java:50)

at net.minecraft.launchwrapper.LaunchClassLoader.runTransformers(LaunchClassLoader.java:274)

at net.minecraft.launchwrapper.LaunchClassLoader.findClass(LaunchClassLoader.java:172)

... 33 more

 

 

A detailed walkthrough of the error, its code path and all known details is as follows:

---------------------------------------------------------------------------------------

 

-- System Details --

Details:

Minecraft Version: 1.6.4

Operating System: Linux (amd64) version 2.6.32-358.el6.x86_64

Java Version: 1.7.0_45, Oracle Corporation

Java VM Version: Java HotSpot 64-Bit Server VM (mixed mode), Oracle Corporation

Memory: 2345327480 bytes (2236 MB) / 2534080512 bytes (2416 MB) up to 2534080512 bytes (2416 MB)

JVM Flags: 5 total; -Xmx2500M -Xms2500M -XX:+UseConcMarkSweepGC -XX:+CMSClassUnloadingEnabled -XX:MaxPermSize=512M

AABB Pool Size: 0 (0 bytes; 0 MB) allocated, 0 (0 bytes; 0 MB) used

Suspicious classes: FML and Forge are installed

IntCache: cache: 0, tcache: 0, allocated: 0, tallocated: 0

CraftBukkit Information:

  Running:

  Failed to handle CraftCrashReport:

java.lang.NullPointerException

at org.bukkit.Bukkit.getName(Bukkit.java:72)

at org.bukkit.craftbukkit.v1_6_R3.CraftCrashReport.call(CraftCrashReport.java:19)

at net.minecraft.crash.CrashReportCategory.func_71500_a(CrashReportCategory.java:106)

at net.minecraft.crash.CrashReport.func_71504_g(CrashReport.java:58)

at net.minecraft.crash.CrashReport.<init>(CrashReport.java:40)

at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:692)

at net.minecraft.server.ThreadMinecraftServer.run(ThreadMinecraftServer.java:16)

 

FML: MCP v8.11 FML v6.4.45.953 Minecraft Forge 9.11.1.953 52 mods loaded, 52 mods active

mcp{8.09} [Minecraft Coder Pack] (minecraft.jar) Unloaded->Constructed

FML{6.4.45.953} [Forge Mod Loader] (custom.jar) Unloaded->Constructed

Forge{9.11.1.953} [Minecraft Forge] (custom.jar) Unloaded->Constructed

CodeChickenCore{0.9.0.7} [CodeChicken Core] (minecraft.jar) Unloaded->Constructed

NotEnoughItems{1.6.1.8} [Not Enough Items] (NotEnoughItems 1.6.1.8.jar) Unloaded->Constructed

TConstruct-Preloader{0.0.1} [Tinkers Corestruct] (minecraft.jar) Unloaded->Constructed

AppliedEnergistics-Core{rv13.c} [AppliedEnergistics Core] (minecraft.jar) Unloaded->Constructed

DamageIndicatorsMod{2.9.2.0} [Damage Indicators] (1.6.4 DamageIndicatorsv2.9.2.0.zip) Unloaded->Constructed

arsmagica2{1.1.0} [Ars Magica 2] (AM2_1.1.0.zip) Unloaded->Constructed

mod_Invedit{Not available} [mod_Invedit] (All-U-Want inventory editor 1.17.zip) Unloaded

CoFHCore{2.0.0.b11b} [CoFH Core] (CoFHCore-2.0.0.b11b.jar) Unloaded

ForgeMultipart{1.0.0.219} [Forge Multipart] (ForgeMultipart-universal-1.6.4-1.0.0.219.jar) Unloaded

BuildCraft|Core{4.2.1} [buildCraft] (buildcraft-A-1.6.4-4.2.1.jar) Unloaded

ThermalExpansion{3.0.0.b11b} [Thermal Expansion] (ThermalExpansion-3.0.0.b11b.jar) Unloaded

IC2{2.0.344-experimental} [industrialCraft 2] (industrialcraft-2_2.0.344-experimental.jar) Unloaded

AtomicScience{1.0.0} [Atomic Science] (Atomic_Science_v1.0.0.160.jar) Unloaded

CoFHLoot{2.0.0.b11b} [CoFH Loot] (CoFHCore-2.0.0.b11b.jar) Unloaded

CoFHMasquerade{2.0.0.b11b} [CoFH Masquerade] (CoFHCore-2.0.0.b11b.jar) Unloaded

CoFHSocial{2.0.0.b11b} [CoFH Social] (CoFHCore-2.0.0.b11b.jar) Unloaded

CoFHWorld{2.0.0.b11b} [CoFH World] (CoFHCore-2.0.0.b11b.jar) Unloaded

ComputerCraft{1.57} [ComputerCraft] (ComputerCraft1.57.zip) Unloaded

CCTurtle{1.57} [ComputerCraft Turtles] (ComputerCraft1.57.zip) Unloaded

basicmachines{1.0.0} [Cyano's Basic Machines for BuildCraft] (CyanosBasicMachines-1.0.0.zip) Unloaded

EnderIO{0.5.5} [Ender IO] (EnderIO-1.6.4-0.5.5.136.jar) Unloaded

Forestry{2.3.1.0} [Forestry for Minecraft] (forestry-A-2.3.1.0.jar) Unloaded

ForestryExtras{0.6.4} [Forestry Extras] (ForestryExtras v0.6.4.zip) Unloaded

Mekanism{5.6.0} [Mekanism] (Mekanism-v5.6.0.663.jar) Unloaded

MekanismGenerators{5.6.0} [MekanismGenerators] (MekanismGenerators-v5.6.0.663.jar) Unloaded

MekanismInduction{5.6.0} [MekanismInduction] (MekanismInduction-v5.6.0.663.jar) Unloaded

MekanismTools{5.6.0} [MekanismTools] (MekanismTools-v5.6.0.663.jar) Unloaded

numina{0.1.0-45} [Numina] (Numina-1.6.2-0.1.0-45.jar) Unloaded

powersuits{0.9.0-76} [MachineMuse's Modular Powersuits] (ModularPowersuits-1.6.2-0.9.0-76.jar) Unloaded

Natura{2.1.8} [Natura] (Natura_1.6.2_2.1.9.jar) Unloaded

SecurityCraft{v1.4} [securityCraft] (SecurityCraft v1.4pre for 1.6.4.zip) Unloaded

StevesCarts{2.0.0.b5} [steve's Carts 2] (StevesCarts2.0.0.b5.zip) Unloaded

TConstruct{1.6.X_1.5.0d} [Tinkers' Construct] (TConstruct_1.6.4_1.5.0d3.jar) Unloaded

AppliedEnergistics{rv13.c} [Applied Energistics] (appeng-rv13-c-mc162.jar) Unloaded

TConstruct|CompatAE{0.0.1} [TConstruct Compat: AE] (TConstruct_1.6.4_1.5.0d3.jar) Unloaded

TConstruct|ForgeMuliPart{0.1} [TConstruct Compat: FMP] (TConstruct_1.6.4_1.5.0d3.jar) Unloaded

TConstruct|CompatWaila{0.0.1} [TConstruct Compat: Waila] (TConstruct_1.6.4_1.5.0d3.jar) Unloaded

BuildCraft|Energy{4.2.1} [bC Energy] (buildcraft-A-1.6.4-4.2.1.jar) Unloaded

Thaumcraft{4.0.5b} [Thaumcraft] (Thaumcraft4.0.5b.zip) Unloaded

ImmibisCore{57.1.7} [immibis Core] (immibis-core-57.1.7.jar) Unloaded

AdvancedMachines{57.1.1} [Advanced Machines] (advanced-machines-57.1.1.jar) Unloaded

BuildCraft|Builders{4.2.1} [bC Builders] (buildcraft-A-1.6.4-4.2.1.jar) Unloaded

BuildCraft|Factory{4.2.1} [bC Factory] (buildcraft-A-1.6.4-4.2.1.jar) Unloaded

BuildCraft|Transport{4.2.1} [bC Transport] (buildcraft-A-1.6.4-4.2.1.jar) Unloaded

BuildCraft|Silicon{4.2.1} [bC Silicon] (buildcraft-A-1.6.4-4.2.1.jar) Unloaded

DimensionalAnchors{57.1.7} [Dimensional Anchors] (dimensional-anchor-57.1.7.jar) Unloaded

TwilightForest{1.20.3} [The Twilight Forest] (twilightforest-1.20.3.jar) Unloaded

McMultipart{1.0.0.219} [Minecraft Multipart Plugin] (ForgeMultipart-universal-1.6.4-1.0.0.219.jar) Unloaded

ForgeMicroblock{1.0.0.219} [Forge Microblocks] (ForgeMultipart-universal-1.6.4-1.0.0.219.jar) Unloaded

Profiler Position: N/A (disabled)

Is Modded: Definitely; Server brand changed to 'mcpc,craftbukkit,fml,forge'

Type: Dedicated Server (map_server.txt)

Posted

Now it says this >.> What do I do?

 

---- Minecraft Crash Report ----

// Don't be sad, have a hug! <3

 

Time: 12/24/13 1:52 PM

Description: Exception in server tick loop

 

cpw.mods.fml.common.LoaderException: java.lang.NoClassDefFoundError: net/minecraft/client/entity/EntityClientPlayerMP

at cpw.mods.fml.common.LoadController.transition(LoadController.java:156)

at cpw.mods.fml.common.Loader.initializeMods(Loader.java:700)

at cpw.mods.fml.server.FMLServerHandler.finishServerLoading(FMLServerHandler.java:107)

at cpw.mods.fml.common.FMLCommonHandler.onServerStarted(FMLCommonHandler.java:355)

at net.minecraft.server.dedicated.DedicatedServer.func_71197_b(DedicatedServer.java:175)

at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:633)

at net.minecraft.server.ThreadMinecraftServer.run(ThreadMinecraftServer.java:16)

Caused by: java.lang.NoClassDefFoundError: net/minecraft/client/entity/EntityClientPlayerMP

at mekanism.common.Mekanism.init(Mekanism.java:1178)

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)

at java.lang.reflect.Method.invoke(Unknown Source)

at cpw.mods.fml.common.FMLModContainer.handleModStateEvent(FMLModContainer.java:545)

at sun.reflect.GeneratedMethodAccessor1.invoke(Unknown Source)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)

at java.lang.reflect.Method.invoke(Unknown Source)

at com.google.common.eventbus.EventHandler.handleEvent(EventHandler.java:74)

at com.google.common.eventbus.SynchronizedEventHandler.handleEvent(SynchronizedEventHandler.java:45)

at com.google.common.eventbus.EventBus.dispatch(EventBus.java:313)

at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:296)

at com.google.common.eventbus.EventBus.post(EventBus.java:267)

at cpw.mods.fml.common.LoadController.sendEventToModContainer(LoadController.java:201)

at cpw.mods.fml.common.LoadController.propogateStateMessage(LoadController.java:181)

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)

at java.lang.reflect.Method.invoke(Unknown Source)

at com.google.common.eventbus.EventHandler.handleEvent(EventHandler.java:74)

at com.google.common.eventbus.SynchronizedEventHandler.handleEvent(SynchronizedEventHandler.java:45)

at com.google.common.eventbus.EventBus.dispatch(EventBus.java:313)

at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:296)

at com.google.common.eventbus.EventBus.post(EventBus.java:267)

at cpw.mods.fml.common.LoadController.distributeStateMessage(LoadController.java:112)

at cpw.mods.fml.common.Loader.initializeMods(Loader.java:699)

... 5 more

Caused by: java.lang.ClassNotFoundException: net.minecraft.client.entity.EntityClientPlayerMP

at net.minecraft.launchwrapper.LaunchClassLoader.findClass(LaunchClassLoader.java:186)

at java.lang.ClassLoader.loadClass(Unknown Source)

at java.lang.ClassLoader.loadClass(Unknown Source)

... 32 more

Caused by: java.lang.RuntimeException: Attempted to load class bdi for invalid side SERVER

at cpw.mods.fml.common.asm.transformers.SideTransformer.transform(SideTransformer.java:50)

at net.minecraft.launchwrapper.LaunchClassLoader.runTransformers(LaunchClassLoader.java:274)

at net.minecraft.launchwrapper.LaunchClassLoader.findClass(LaunchClassLoader.java:172)

... 34 more

 

 

A detailed walkthrough of the error, its code path and all known details is as follows:

---------------------------------------------------------------------------------------

 

-- System Details --

Details:

Minecraft Version: 1.6.4

Operating System: Linux (amd64) version 2.6.32-358.el6.x86_64

Java Version: 1.7.0_45, Oracle Corporation

Java VM Version: Java HotSpot 64-Bit Server VM (mixed mode), Oracle Corporation

Memory: 2146548232 bytes (2047 MB) / 2534080512 bytes (2416 MB) up to 2534080512 bytes (2416 MB)

JVM Flags: 5 total; -Xmx2500M -Xms2500M -XX:+UseConcMarkSweepGC -XX:+CMSClassUnloadingEnabled -XX:MaxPermSize=512M

AABB Pool Size: 0 (0 bytes; 0 MB) allocated, 0 (0 bytes; 0 MB) used

Suspicious classes: FML and Forge are installed

IntCache: cache: 0, tcache: 0, allocated: 0, tallocated: 0

CraftBukkit Information:

  Running: MCPC+ version git-MCPC-Plus-jenkins-MCPC-Plus-156 (MC: 1.6.4) (Implementing API version 1.6.4-R2.1-SNAPSHOT) true

  Plugins: {}

  Warnings: DEFAULT

  Threads: { WAITING Reference Handler: [java.lang.Object.wait(Native Method), java.lang.Object.wait(Object.java:503), java.lang.ref.Reference$ReferenceHandler.run(Unknown Source)], RUNNABLE Signal Dispatcher: [], RUNNABLE Spigot Metrics Thread: [java.net.Inet6AddressImpl.lookupAllHostAddr(Native Method), java.net.InetAddress$1.lookupAllHostAddr(Unknown Source), java.net.InetAddress.getAddressesFromNameService(Unknown Source), java.net.InetAddress.getAllByName0(Unknown Source), java.net.InetAddress.getAllByName(Unknown Source), java.net.InetAddress.getAllByName(Unknown Source), java.net.InetAddress.getByName(Unknown Source), java.net.InetSocketAddress.<init>(Unknown Source), sun.net.NetworkClient.doConnect(Unknown Source), sun.net.www.http.HttpClient.openServer(Unknown Source), sun.net.www.http.HttpClient.openServer(Unknown Source), sun.net.www.http.HttpClient.<init>(Unknown Source), sun.net.www.http.HttpClient.New(Unknown Source), sun.net.www.http.HttpClient.New(Unknown Source), sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(Unknown Source), sun.net.www.protocol.http.HttpURLConnection.plainConnect(Unknown Source), sun.net.www.protocol.http.HttpURLConnection.connect(Unknown Source), sun.net.www.protocol.http.HttpURLConnection.getOutputStream(Unknown Source), org.spigotmc.Metrics.postPlugin(Metrics.java:430), org.spigotmc.Metrics.access$400(Metrics.java:68), org.spigotmc.Metrics$1.run(Metrics.java:240), java.util.TimerThread.mainLoop(Unknown Source), java.util.TimerThread.run(Unknown Source)], TIMED_WAITING Spigot Watchdog Thread: [java.lang.Thread.sleep(Native Method), org.spigotmc.WatchdogThread.run(WatchdogThread.java:85)], RUNNABLE DestroyJavaVM: [], TIMED_WAITING Thread-11: [java.lang.Thread.sleep(Native Method), appeng.common.VersionChecker.run(VersionChecker.java:29), java.lang.Thread.run(Unknown Source)], RUNNABLE Server thread: [java.lang.Thread.dumpThreads(Native Method), java.lang.Thread.getAllStackTraces(Unknown Source), org.bukkit.craftbukkit.v1_6_R3.CraftCrashReport.call(CraftCrashReport.java:27), net.minecraft.crash.CrashReportCategory.func_71500_a(CrashReportCategory.java:106), net.minecraft.crash.CrashReport.func_71504_g(CrashReport.java:58), net.minecraft.crash.CrashReport.<init>(CrashReport.java:40), net.minecraft.server.MinecraftServer.run(MinecraftServer.java:692), net.minecraft.server.ThreadMinecraftServer.run(ThreadMinecraftServer.java:16)], TIMED_WAITING Immibis Core background task: [java.lang.Object.wait(Native Method), java.util.TimerThread.mainLoop(Unknown Source), java.util.TimerThread.run(Unknown Source)], WAITING Finalizer: [java.lang.Object.wait(Native Method), java.lang.ref.ReferenceQueue.remove(Unknown Source), java.lang.ref.ReferenceQueue.remove(Unknown Source), java.lang.ref.Finalizer$FinalizerThread.run(Unknown Source)], WAITING Thread-1: [sun.misc.Unsafe.park(Native Method), java.util.concurrent.locks.LockSupport.park(Unknown Source), java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.await(Unknown Source), java.util.concurrent.LinkedBlockingQueue.take(Unknown Source), cpw.mods.fml.relauncher.FMLRelaunchLog$ConsoleLogThread.run(FMLRelaunchLog.java:83), java.lang.Thread.run(Unknown Source)], WAITING Snooper Timer: [java.lang.Object.wait(Native Method), java.lang.Object.wait(Object.java:503), java.util.TimerThread.mainLoop(Unknown Source), java.util.TimerThread.run(Unknown Source)], RUNNABLE Command Reader: [java.io.FileInputStream.readBytes(Native Method), java.io.FileInputStream.read(Unknown Source), java.io.BufferedInputStream.fill(Unknown Source), java.io.BufferedInputStream.read(Unknown Source), java.io.FilterInputStream.read(Unknown Source), org.bukkit.craftbukkit.libs.jline.console.ConsoleReader$1.read(ConsoleReader.java:167), org.bukkit.craftbukkit.libs.jline.internal.InputStreamReader.read(InputStreamReader.java:267), org.bukkit.craftbukkit.libs.jline.internal.InputStreamReader.read(InputStreamReader.java:204), org.bukkit.craftbukkit.libs.jline.console.ConsoleReader.readCharacter(ConsoleReader.java:995), org.bukkit.craftbukkit.libs.jline.console.ConsoleReader.readLineSimple(ConsoleReader.java:1506), org.bukkit.craftbukkit.libs.jline.console.ConsoleReader.readLine(ConsoleReader.java:1153), org.bukkit.craftbukkit.libs.jline.console.ConsoleReader.readLine(ConsoleReader.java:1117), org.bukkit.craftbukkit.libs.jline.console.ConsoleReader.readLine(ConsoleReader.java:1105), net.minecraft.server.dedicated.DedicatedServerCommandThread.run(DedicatedServerCommandThread.java:42)], RUNNABLE Listen thread: [java.net.PlainSocketImpl.socketAccept(Native Method), java.net.AbstractPlainSocketImpl.accept(Unknown Source), java.net.ServerSocket.implAccept(Unknown Source), java.net.ServerSocket.accept(Unknown Source), net.minecraft.server.ServerListenThread.run(ServerListenThread.java:82)], TIMED_WAITING Thread-5: [java.lang.Thread.sleep(Native Method), net.minecraft.server.dedicated.DedicatedServerSleepThread.run(DedicatedServerSleepThread.java:23)], TIMED_WAITING Keep-Alive-Timer: [java.lang.Thread.sleep(Native Method), sun.net.www.http.KeepAliveCache.run(Unknown Source), java.lang.Thread.run(Unknown Source)],}

  Recent tasks from -31--1{}

FML: MCP v8.11 FML v6.4.45.953 Minecraft Forge 9.11.1.953 50 mods loaded, 50 mods active

mcp{8.09} [Minecraft Coder Pack] (minecraft.jar) Unloaded->Constructed->Pre-initialized->Initialized

FML{6.4.45.953} [Forge Mod Loader] (custom.jar) Unloaded->Constructed->Pre-initialized->Initialized

Forge{9.11.1.953} [Minecraft Forge] (custom.jar) Unloaded->Constructed->Pre-initialized->Initialized

CodeChickenCore{0.9.0.7} [CodeChicken Core] (minecraft.jar) Unloaded->Constructed->Pre-initialized->Initialized

NotEnoughItems{1.6.1.8} [Not Enough Items] (NotEnoughItems 1.6.1.8.jar) Unloaded->Constructed->Pre-initialized->Initialized

TConstruct-Preloader{0.0.1} [Tinkers Corestruct] (minecraft.jar) Unloaded->Constructed->Pre-initialized->Initialized

AppliedEnergistics-Core{rv13.c} [AppliedEnergistics Core] (minecraft.jar) Unloaded->Constructed->Pre-initialized->Initialized

arsmagica2{1.1.0} [Ars Magica 2] (AM2_1.1.0.zip) Unloaded->Constructed->Pre-initialized->Initialized

CoFHCore{2.0.0.b11b} [CoFH Core] (CoFHCore-2.0.0.b11b.jar) Unloaded->Constructed->Pre-initialized->Initialized

ForgeMultipart{1.0.0.219} [Forge Multipart] (ForgeMultipart-universal-1.6.4-1.0.0.219.jar) Unloaded->Constructed->Pre-initialized->Initialized

BuildCraft|Core{4.2.1} [buildCraft] (buildcraft-A-1.6.4-4.2.1.jar) Unloaded->Constructed->Pre-initialized->Initialized

ThermalExpansion{3.0.0.b11b} [Thermal Expansion] (ThermalExpansion-3.0.0.b11b.jar) Unloaded->Constructed->Pre-initialized->Initialized

IC2{2.0.344-experimental} [industrialCraft 2] (industrialcraft-2_2.0.344-experimental.jar) Unloaded->Constructed->Pre-initialized->Initialized

AtomicScience{1.0.0} [Atomic Science] (Atomic_Science_v1.0.0.160.jar) Unloaded->Constructed->Pre-initialized->Initialized

CoFHLoot{2.0.0.b11b} [CoFH Loot] (CoFHCore-2.0.0.b11b.jar) Unloaded->Constructed->Pre-initialized->Initialized

CoFHMasquerade{2.0.0.b11b} [CoFH Masquerade] (CoFHCore-2.0.0.b11b.jar) Unloaded->Constructed->Pre-initialized->Initialized

CoFHSocial{2.0.0.b11b} [CoFH Social] (CoFHCore-2.0.0.b11b.jar) Unloaded->Constructed->Pre-initialized->Initialized

CoFHWorld{2.0.0.b11b} [CoFH World] (CoFHCore-2.0.0.b11b.jar) Unloaded->Constructed->Pre-initialized->Initialized

ComputerCraft{1.57} [ComputerCraft] (ComputerCraft1.57.zip) Unloaded->Constructed->Pre-initialized->Initialized

CCTurtle{1.57} [ComputerCraft Turtles] (ComputerCraft1.57.zip) Unloaded->Constructed->Pre-initialized->Initialized

basicmachines{1.0.0} [Cyano's Basic Machines for BuildCraft] (CyanosBasicMachines-1.0.0.zip) Unloaded->Constructed->Pre-initialized->Initialized

EnderIO{0.5.5} [Ender IO] (EnderIO-1.6.4-0.5.5.136.jar) Unloaded->Constructed->Pre-initialized->Initialized

Forestry{2.3.1.0} [Forestry for Minecraft] (forestry-A-2.3.1.0.jar) Unloaded->Constructed->Pre-initialized->Initialized

ForestryExtras{0.6.4} [Forestry Extras] (ForestryExtras v0.6.4.zip) Unloaded->Constructed->Pre-initialized->Initialized

Mekanism{5.6.0} [Mekanism] (Mekanism-v5.6.0.663.jar) Unloaded->Constructed->Pre-initialized->Errored

MekanismGenerators{5.6.0} [MekanismGenerators] (MekanismGenerators-v5.6.0.663.jar) Unloaded->Constructed->Pre-initialized->Errored

MekanismInduction{5.6.0} [MekanismInduction] (MekanismInduction-v5.6.0.663.jar) Unloaded->Constructed->Pre-initialized->Errored

MekanismTools{5.6.0} [MekanismTools] (MekanismTools-v5.6.0.663.jar) Unloaded->Constructed->Pre-initialized->Errored

numina{0.1.0-45} [Numina] (Numina-1.6.2-0.1.0-45.jar) Unloaded->Constructed->Pre-initialized->Initialized

powersuits{0.9.0-76} [MachineMuse's Modular Powersuits] (ModularPowersuits-1.6.2-0.9.0-76.jar) Unloaded->Constructed->Pre-initialized->Initialized

Natura{2.1.8} [Natura] (Natura_1.6.2_2.1.9.jar) Unloaded->Constructed->Pre-initialized->Initialized

SecurityCraft{v1.4} [securityCraft] (SecurityCraft v1.4pre for 1.6.4.zip) Unloaded->Constructed->Pre-initialized->Errored

StevesCarts{2.0.0.b5} [steve's Carts 2] (StevesCarts2.0.0.b5.zip) Unloaded->Constructed->Pre-initialized->Initialized

TConstruct{1.6.X_1.5.0d} [Tinkers' Construct] (TConstruct_1.6.4_1.5.0d3.jar) Unloaded->Constructed->Pre-initialized->Initialized

AppliedEnergistics{rv13.c} [Applied Energistics] (appeng-rv13-c-mc162.jar) Unloaded->Constructed->Pre-initialized->Initialized

TConstruct|CompatAE{0.0.1} [TConstruct Compat: AE] (TConstruct_1.6.4_1.5.0d3.jar) Unloaded->Constructed->Pre-initialized->Initialized

TConstruct|ForgeMuliPart{0.1} [TConstruct Compat: FMP] (TConstruct_1.6.4_1.5.0d3.jar) Unloaded->Constructed->Pre-initialized->Initialized

TConstruct|CompatWaila{0.0.1} [TConstruct Compat: Waila] (TConstruct_1.6.4_1.5.0d3.jar) Unloaded->Constructed->Pre-initialized->Initialized

BuildCraft|Energy{4.2.1} [bC Energy] (buildcraft-A-1.6.4-4.2.1.jar) Unloaded->Constructed->Pre-initialized->Initialized

Thaumcraft{4.0.5b} [Thaumcraft] (Thaumcraft4.0.5b.zip) Unloaded->Constructed->Pre-initialized->Initialized

ImmibisCore{57.1.7} [immibis Core] (immibis-core-57.1.7.jar) Unloaded->Constructed->Pre-initialized->Initialized

AdvancedMachines{57.1.1} [Advanced Machines] (advanced-machines-57.1.1.jar) Unloaded->Constructed->Pre-initialized->Initialized

BuildCraft|Builders{4.2.1} [bC Builders] (buildcraft-A-1.6.4-4.2.1.jar) Unloaded->Constructed->Pre-initialized->Initialized

BuildCraft|Factory{4.2.1} [bC Factory] (buildcraft-A-1.6.4-4.2.1.jar) Unloaded->Constructed->Pre-initialized->Initialized

BuildCraft|Transport{4.2.1} [bC Transport] (buildcraft-A-1.6.4-4.2.1.jar) Unloaded->Constructed->Pre-initialized->Initialized

BuildCraft|Silicon{4.2.1} [bC Silicon] (buildcraft-A-1.6.4-4.2.1.jar) Unloaded->Constructed->Pre-initialized->Initialized

DimensionalAnchors{57.1.7} [Dimensional Anchors] (dimensional-anchor-57.1.7.jar) Unloaded->Constructed->Pre-initialized->Initialized

TwilightForest{1.20.3} [The Twilight Forest] (twilightforest-1.20.3.jar) Unloaded->Constructed->Pre-initialized->Initialized

McMultipart{1.0.0.219} [Minecraft Multipart Plugin] (ForgeMultipart-universal-1.6.4-1.0.0.219.jar) Unloaded->Constructed->Pre-initialized->Initialized

ForgeMicroblock{1.0.0.219} [Forge Microblocks] (ForgeMultipart-universal-1.6.4-1.0.0.219.jar) Unloaded->Constructed->Pre-initialized->Initialized

Profiler Position: N/A (disabled)

Player Count: 0 / 43; []

Is Modded: Definitely; Server brand changed to 'mcpc,craftbukkit,fml,forge'

Type: Dedicated Server (map_server.txt)

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

    • Version 1.19 - Forge 41.0.63 I want to create a wolf entity that I can ride, so far it seems to be working, but the problem is that when I get on the wolf, I can’t control it. I then discovered that the issue is that the server doesn’t detect that I’m riding the wolf, so I’m struggling with synchronization. However, it seems to not be working properly. As I understand it, the server receives the packet but doesn’t register it correctly. I’m a bit new to Java, and I’ll try to provide all the relevant code and prints *The comments and prints are translated by chatgpt since they were originally in Spanish* Thank you very much in advance No player is mounted, or the passenger is not a player. No player is mounted, or the passenger is not a player. No player is mounted, or the passenger is not a player. No player is mounted, or the passenger is not a player. No player is mounted, or the passenger is not a player. MountableWolfEntity package com.vals.valscraft.entity; import com.vals.valscraft.network.MountSyncPacket; import com.vals.valscraft.network.NetworkHandler; import net.minecraft.client.Minecraft; import net.minecraft.network.syncher.EntityDataAccessor; import net.minecraft.network.syncher.EntityDataSerializers; import net.minecraft.network.syncher.SynchedEntityData; import net.minecraft.server.MinecraftServer; import net.minecraft.server.level.ServerPlayer; import net.minecraft.world.entity.EntityType; import net.minecraft.world.entity.Mob; import net.minecraft.world.entity.ai.attributes.AttributeSupplier; import net.minecraft.world.entity.ai.attributes.Attributes; import net.minecraft.world.entity.animal.Wolf; import net.minecraft.world.entity.player.Player; import net.minecraft.world.entity.Entity; import net.minecraft.world.InteractionHand; import net.minecraft.world.InteractionResult; import net.minecraft.world.item.ItemStack; import net.minecraft.world.item.Items; import net.minecraft.world.level.Level; import net.minecraft.world.phys.Vec3; import net.minecraftforge.event.TickEvent; import net.minecraftforge.eventbus.api.SubscribeEvent; import net.minecraftforge.network.PacketDistributor; public class MountableWolfEntity extends Wolf { private boolean hasSaddle; private static final EntityDataAccessor<Byte> DATA_ID_FLAGS = SynchedEntityData.defineId(MountableWolfEntity.class, EntityDataSerializers.BYTE); public MountableWolfEntity(EntityType<? extends Wolf> type, Level level) { super(type, level); this.hasSaddle = false; } @Override protected void defineSynchedData() { super.defineSynchedData(); this.entityData.define(DATA_ID_FLAGS, (byte)0); } public static AttributeSupplier.Builder createAttributes() { return Wolf.createAttributes() .add(Attributes.MAX_HEALTH, 20.0) .add(Attributes.MOVEMENT_SPEED, 0.3); } @Override public InteractionResult mobInteract(Player player, InteractionHand hand) { ItemStack itemstack = player.getItemInHand(hand); if (itemstack.getItem() == Items.SADDLE && !this.hasSaddle()) { if (!player.isCreative()) { itemstack.shrink(1); } this.setSaddle(true); return InteractionResult.SUCCESS; } else if (!level.isClientSide && this.hasSaddle()) { player.startRiding(this); MountSyncPacket packet = new MountSyncPacket(true); // 'true' means the player is mounted NetworkHandler.CHANNEL.sendToServer(packet); // Ensure the server handles the packet return InteractionResult.SUCCESS; } return InteractionResult.PASS; } @Override public void travel(Vec3 travelVector) { if (this.isVehicle() && this.getControllingPassenger() instanceof Player) { System.out.println("The wolf has a passenger."); System.out.println("The passenger is a player."); Player player = (Player) this.getControllingPassenger(); // Ensure the player is the controller this.setYRot(player.getYRot()); this.yRotO = this.getYRot(); this.setXRot(player.getXRot() * 0.5F); this.setRot(this.getYRot(), this.getXRot()); this.yBodyRot = this.getYRot(); this.yHeadRot = this.yBodyRot; float forward = player.zza; float strafe = player.xxa; if (forward <= 0.0F) { forward *= 0.25F; } this.flyingSpeed = this.getSpeed() * 0.1F; this.setSpeed((float) this.getAttributeValue(Attributes.MOVEMENT_SPEED) * 1.5F); this.setDeltaMovement(new Vec3(strafe, travelVector.y, forward).scale(this.getSpeed())); this.calculateEntityAnimation(this, false); } else { // The wolf does not have a passenger or the passenger is not a player System.out.println("No player is mounted, or the passenger is not a player."); super.travel(travelVector); } } public boolean hasSaddle() { return this.hasSaddle; } public void setSaddle(boolean hasSaddle) { this.hasSaddle = hasSaddle; } @Override protected void dropEquipment() { super.dropEquipment(); if (this.hasSaddle()) { this.spawnAtLocation(Items.SADDLE); this.setSaddle(false); } } @SubscribeEvent public static void onServerTick(TickEvent.ServerTickEvent event) { if (event.phase == TickEvent.Phase.START) { MinecraftServer server = net.minecraftforge.server.ServerLifecycleHooks.getCurrentServer(); if (server != null) { for (ServerPlayer player : server.getPlayerList().getPlayers()) { if (player.isPassenger() && player.getVehicle() instanceof MountableWolfEntity) { MountableWolfEntity wolf = (MountableWolfEntity) player.getVehicle(); System.out.println("Tick: " + player.getName().getString() + " is correctly mounted on " + wolf); } } } } } private boolean lastMountedState = false; @Override public void tick() { super.tick(); if (!this.level.isClientSide) { // Only on the server boolean isMounted = this.isVehicle() && this.getControllingPassenger() instanceof Player; // Only print if the state changed if (isMounted != lastMountedState) { if (isMounted) { Player player = (Player) this.getControllingPassenger(); // Verify the passenger is a player System.out.println("Server: Player " + player.getName().getString() + " is now mounted."); } else { System.out.println("Server: The wolf no longer has a passenger."); } lastMountedState = isMounted; } } } @Override public void addPassenger(Entity passenger) { super.addPassenger(passenger); if (passenger instanceof Player) { Player player = (Player) passenger; if (!this.level.isClientSide && player instanceof ServerPlayer) { // Send the packet to the server to indicate the player is mounted NetworkHandler.CHANNEL.send(PacketDistributor.PLAYER.with(() -> (ServerPlayer) player), new MountSyncPacket(true)); } } } @Override public void removePassenger(Entity passenger) { super.removePassenger(passenger); if (passenger instanceof Player) { Player player = (Player) passenger; if (!this.level.isClientSide && player instanceof ServerPlayer) { // Send the packet to the server to indicate the player is no longer mounted NetworkHandler.CHANNEL.send(PacketDistributor.PLAYER.with(() -> (ServerPlayer) player), new MountSyncPacket(false)); } } } @Override public boolean isControlledByLocalInstance() { Entity entity = this.getControllingPassenger(); return entity instanceof Player; } @Override public void positionRider(Entity passenger) { if (this.hasPassenger(passenger)) { double xOffset = Math.cos(Math.toRadians(this.getYRot() + 90)) * 0.4; double zOffset = Math.sin(Math.toRadians(this.getYRot() + 90)) * 0.4; passenger.setPos(this.getX() + xOffset, this.getY() + this.getPassengersRidingOffset() + passenger.getMyRidingOffset(), this.getZ() + zOffset); } } } MountSyncPacket package com.vals.valscraft.network; import com.vals.valscraft.entity.MountableWolfEntity; import net.minecraft.network.FriendlyByteBuf; import net.minecraft.server.level.ServerLevel; import net.minecraft.server.level.ServerPlayer; import net.minecraft.world.entity.Entity; import net.minecraft.world.entity.player.Player; import net.minecraftforge.network.NetworkEvent; import java.util.function.Supplier; public class MountSyncPacket { private final boolean isMounted; public MountSyncPacket(boolean isMounted) { this.isMounted = isMounted; } public void encode(FriendlyByteBuf buffer) { buffer.writeBoolean(isMounted); } public static MountSyncPacket decode(FriendlyByteBuf buffer) { return new MountSyncPacket(buffer.readBoolean()); } public void handle(NetworkEvent.Context context) { context.enqueueWork(() -> { ServerPlayer player = context.getSender(); // Get the player from the context if (player != null) { // Verifies if the player has dismounted if (!isMounted) { Entity vehicle = player.getVehicle(); if (vehicle instanceof MountableWolfEntity wolf) { // Logic to remove the player as a passenger wolf.removePassenger(player); System.out.println("Server: Player " + player.getName().getString() + " is no longer mounted."); } } } }); context.setPacketHandled(true); // Marks the packet as handled } } networkHandler package com.vals.valscraft.network; import com.vals.valscraft.valscraft; import net.minecraft.resources.ResourceLocation; import net.minecraftforge.network.NetworkRegistry; import net.minecraftforge.network.simple.SimpleChannel; import net.minecraftforge.network.NetworkEvent; import java.util.function.Supplier; public class NetworkHandler { private static final String PROTOCOL_VERSION = "1"; public static final SimpleChannel CHANNEL = NetworkRegistry.newSimpleChannel( new ResourceLocation(valscraft.MODID, "main"), () -> PROTOCOL_VERSION, PROTOCOL_VERSION::equals, PROTOCOL_VERSION::equals ); public static void init() { int packetId = 0; // Register the mount synchronization packet CHANNEL.registerMessage( packetId++, MountSyncPacket.class, MountSyncPacket::encode, MountSyncPacket::decode, (msg, context) -> msg.handle(context.get()) // Get the context with context.get() ); } }  
    • Do you use features of inventory profiles next (ipnext) or is there a change without it?
    • Remove rubidium - you are already using embeddium, which is a fork of rubidium
  • Topics

×
×
  • Create New...

Important Information

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