Jump to content

Pixelmon Forge server not loading properly


masguy

Recommended Posts

Hi! I have basically no experience with installing minecraft forge servers, but wanted to start a local server connected to Hamachi and whatnot. I followed the steps laid out in this and everything went very smoothly; the server loaded and I could connect properly. However, upon joining I realized that the server had not actually loaded any of the mods installed and while I had the Pixelmon UI the server hadn't loaded the biomes or any of the mod's mobs. When I checked the "latest.log" I was met with this: 

[14:47:55] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.fml.common.launcher.FMLServerTweaker
[14:47:55] [main/INFO] [LaunchWrapper]: Using primary tweak class name net.minecraftforge.fml.common.launcher.FMLServerTweaker
[14:47:55] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.FMLServerTweaker
[14:47:55] [main/INFO] [FML]: Forge Mod Loader version 14.23.5.2854 for Minecraft 1.12.2 loading
[14:47:55] [main/INFO] [FML]: Java is Java HotSpot(TM) 64-Bit Server VM, version 1.8.0_251, running on Windows 10:amd64:10.0, installed at C:\Program Files\Java\jre1.8.0_251
[14:47:55] [main/INFO] [FML]: Searching C:\Users\sam\Desktop\forge server again\.\mods for mods
[14:47:55] [main/INFO] [FML]: Searching C:\Users\sam\Desktop\forge server again\.\mods\1.12.2 for mods
[14:47:55] [main/WARN] [FML]: Found FMLCorePluginContainsFMLMod marker in Forgelin-1.8.4.jar. This is not recommended, @Mods should be in a separate jar from the coremod.
[14:47:55] [main/WARN] [FML]: The coremod net.shadowfacts.forgelin.preloader.ForgelinPlugin does not have a MCVersion annotation, it may cause issues with this version of Minecraft
[14:47:55] [main/WARN] [FML]: The coremod ForgelinPlugin (net.shadowfacts.forgelin.preloader.ForgelinPlugin) is not signed!
[14:47:56] [main/WARN] [FML]: Found FMLCorePluginContainsFMLMod marker in librarianlib-1.12.2-4.22.jar. This is not recommended, @Mods should be in a separate jar from the coremod.
[14:47:56] [main/WARN] [FML]: The coremod com.teamwizardry.librarianlib.asm.LibLibCorePlugin does not have a MCVersion annotation, it may cause issues with this version of Minecraft
[14:47:56] [main/WARN] [FML]: The coremod LibrarianLib Plugin (com.teamwizardry.librarianlib.asm.LibLibCorePlugin) is not signed!
[14:47:56] [main/WARN] [FML]: Found FMLCorePluginContainsFMLMod marker in PixelmonGenerations-1.12.2-8.2.2-universal.jar. This is not recommended, @Mods should be in a separate jar from the coremod.
[14:47:56] [main/WARN] [FML]: The coremod com.pixelmongenerations.core.plugin.EarlyLoadPlugin does not have a MCVersion annotation, it may cause issues with this version of Minecraft
[14:47:56] [main/WARN] [FML]: The coremod EarlyLoadPlugin (com.pixelmongenerations.core.plugin.EarlyLoadPlugin) is not signed!
[14:47:56] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.fml.common.launcher.FMLInjectionAndSortingTweaker
[14:47:56] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.fml.common.launcher.FMLDeobfTweaker
[14:47:56] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.FMLInjectionAndSortingTweaker
[14:47:56] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.relauncher.CoreModManager$FMLPluginWrapper
[14:47:56] [main/INFO] [STDOUT]: [com.pixelmongenerations.core.plugin.EarlyLoadPlugin:getASMTransformerClass:52]: Successfully Registered Transformer
[14:47:56] [main/INFO] [Pixelmon Early-Init]: Starting setup...
[14:47:56] [main/INFO] [Pixelmon Early-Init]: Checking for BiomesOPlenty-1.12.2-7.0.1.2444-universal.jar
[14:47:56] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.FMLInjectionAndSortingTweaker
[14:47:56] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.relauncher.CoreModManager$FMLPluginWrapper
[14:47:58] [main/INFO] [FML]: Found valid fingerprint for Minecraft Forge. Certificate fingerprint e3c3d50c7c986df74c645c0ac54639741c90a557
[14:47:58] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.relauncher.CoreModManager$FMLPluginWrapper
[14:47:58] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.relauncher.CoreModManager$FMLPluginWrapper
[14:47:58] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.FMLDeobfTweaker
[14:47:58] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.relauncher.CoreModManager$FMLPluginWrapper
[14:47:58] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.fml.common.launcher.TerminalTweaker
[14:47:58] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.TerminalTweaker
[14:47:58] [main/INFO] [LibrarianLib ASM]: Transforming World
[14:47:58] [main/INFO] [LibrarianLib ASM]: Applying Transformation to method (Names [updateEntities, func_72939_s] Descriptor ()V)
[14:47:58] [main/INFO] [LibrarianLib ASM]: Attempting to insert: Update hook
[14:47:58] [main/INFO] [LibrarianLib ASM]: Patch result: Success
[14:47:58] [main/INFO] [LibrarianLib ASM]: Applying Transformation to method (Names [updateEntityWithOptionalForce, func_72866_a] Descriptor (Lnet/minecraft/entity/Entity;Z)V)
[14:47:58] [main/INFO] [LibrarianLib ASM]: Attempting to insert: Update hook
[14:47:58] [main/INFO] [LibrarianLib ASM]: Patch result: Success
[14:47:58] [main/INFO] [FML]: Pixelmon successfully injected bytecode into: vp (1 / 1)
[14:47:58] [main/INFO] [LaunchWrapper]: Launching wrapped minecraft {net.minecraft.server.MinecraftServer}
[14:47:58] [main/INFO] [FML]: Pixelmon successfully injected bytecode into: acl (1 / 1)
[14:48:02] [Server thread/INFO] [net.minecraft.server.dedicated.DedicatedServer]: Starting minecraft server version 1.12.2
[14:48:02] [Server console handler/ERROR] [net.minecraft.server.dedicated.DedicatedServer]: Exception handling console input
java.io.IOException: The handle is invalid
    at java.io.FileInputStream.readBytes(Native Method) ~[?:1.8.0_251]
    at java.io.FileInputStream.read(Unknown Source) ~[?:1.8.0_251]
    at java.io.BufferedInputStream.read1(Unknown Source) ~[?:1.8.0_251]
    at java.io.BufferedInputStream.read(Unknown Source) ~[?:1.8.0_251]
    at sun.nio.cs.StreamDecoder.readBytes(Unknown Source) ~[?:1.8.0_251]
    at sun.nio.cs.StreamDecoder.implRead(Unknown Source) ~[?:1.8.0_251]
    at sun.nio.cs.StreamDecoder.read(Unknown Source) ~[?:1.8.0_251]
    at java.io.InputStreamReader.read(Unknown Source) ~[?:1.8.0_251]
    at java.io.BufferedReader.fill(Unknown Source) ~[?:1.8.0_251]
    at java.io.BufferedReader.readLine(Unknown Source) ~[?:1.8.0_251]
    at java.io.BufferedReader.readLine(Unknown Source) ~[?:1.8.0_251]
    at net.minecraft.server.dedicated.DedicatedServer$2.run(DedicatedServer.java:105) [nz$2.class:?]
[14:48:02] [Server thread/INFO] [FML]: MinecraftForge v14.23.5.2854 Initialized
[14:48:02] [Server thread/INFO] [FML]: Starts to replace vanilla recipe ingredients with ore ingredients.
[14:48:02] [Server thread/INFO] [FML]: Invalid recipe found with multiple oredict ingredients in the same ingredient...
[14:48:02] [Server thread/INFO] [FML]: Replaced 1227 ore ingredients
[14:48:02] [Server thread/INFO] [FML]: Searching C:\Users\sam\Desktop\forge server again\.\mods for mods
[14:48:02] [Server thread/INFO] [FML]: Searching C:\Users\sam\Desktop\forge server again\.\mods\1.12.2 for mods
[14:48:05] [Server thread/INFO] [FML]: Forge Mod Loader has identified 13 mods to load
[14:48:05] [Server thread/WARN] [FML]: Missing English translation for FML: assets/fml/lang/en_us.lang
[14:48:05] [Server thread/WARN] [FML]: Missing English translation for forgelin: assets/forgelin/lang/en_us.lang
[14:48:05] [Server thread/WARN] [FML]: Missing English translation for librarianliblate: assets/librarianliblate/lang/en_us.lang
[14:48:05] [Server thread/WARN] [FML]: Missing English translation for pixelextras: assets/pixelextras/lang/en_us.lang
[14:48:05] [Server thread/WARN] [FML]: Missing English translation for trainercommands: assets/trainercommands/lang/en_us.lang
[14:48:05] [Server thread/WARN] [FML]: Missing English translation for wondertrade: assets/wondertrade/lang/en_us.lang
[14:48:06] [Server thread/INFO] [FML]: Attempting connection with missing mods [minecraft, mcp, aearlymodloader, FML, forge, biomesoplenty, forgelin, librarianliblate, librarianlib, pixelextras, pixelmon, trainercommands, wondertrade] at CLIENT
[14:48:06] [Server thread/INFO] [FML]: Attempting connection with missing mods [minecraft, mcp, aearlymodloader, FML, forge, biomesoplenty, forgelin, librarianliblate, librarianlib, pixelextras, pixelmon, trainercommands, wondertrade] at SERVER
[14:48:08] [Server thread/INFO] [FML]: Processing ObjectHolder annotations
[14:48:09] [Server thread/INFO] [FML]: Found 1193 ObjectHolder annotations
[14:48:09] [Server thread/INFO] [FML]: Identifying ItemStackHolder annotations
[14:48:09] [Server thread/INFO] [FML]: Found 0 ItemStackHolder annotations
[14:48:09] [Server thread/INFO] [FML]: Configured a dormant chunk cache size of 0
[14:48:09] [Forge Version Check/INFO] [forge.VersionCheck]: [forge] Starting version check at http://files.minecraftforge.net/maven/net/minecraftforge/forge/promotions_slim.json
[14:48:09] [Forge Version Check/INFO] [forge.VersionCheck]: [forge] Found status: UP_TO_DATE Target: null
[14:48:11] [Server thread/INFO] [PixelmonGenerations]: Loading Pixelmon Generations version 8.2.2
[14:48:13] [Server thread/INFO] [PixelmonGenerations]: Checking for migrations..
[14:48:13] [Server thread/INFO] [PixelmonGenerations]: Loading Advancements
[14:48:14] [Server thread/INFO] [PixelmonGenerations]: Registeringadvent_calendar.
[14:48:14] [Server thread/INFO] [PixelmonGenerations]: Registering moves.
[14:48:15] [Server thread/INFO] [STDOUT]: [com.wondertrademod.wondertrade.Utilities:loadDefaultCooldowns:63]: 2120447d-bb7a-49f3-83a0-aad8d4f2b7c5
[14:48:15] [Server thread/INFO] [STDOUT]: [com.wondertrademod.wondertrade.Wondertrade:preInit:57]: [Wondertrade] Successfully loaded configuration File.
[14:48:17] [Server thread/INFO] [FML]: Applying holder lookups
[14:48:18] [Server thread/INFO] [FML]: Holder lookups applied
[14:48:18] [Server thread/INFO] [PixelmonGenerations]: Loading TM/TRs.
[14:48:18] [Server thread/INFO] [PixelmonGenerations]: Loaded 100 TMs and 100 TRs
[14:48:18] [Server thread/INFO] [FML]: Applying holder lookups
[14:48:18] [Server thread/INFO] [FML]: Holder lookups applied
[14:48:18] [Server thread/INFO] [FML]: Applying holder lookups
[14:48:18] [Server thread/INFO] [FML]: Holder lookups applied
[14:48:18] [Server thread/INFO] [FML]: Applying holder lookups
[14:48:18] [Server thread/INFO] [FML]: Holder lookups applied
[14:48:18] [Server thread/INFO] [FML]: Injecting itemstacks
[14:48:18] [Server thread/INFO] [FML]: Itemstack injection complete
[14:48:18] [Server thread/INFO] [net.minecraft.server.dedicated.DedicatedServer]: Loading properties
[14:48:19] [Server thread/INFO] [net.minecraft.server.dedicated.DedicatedServer]: Default game type: SURVIVAL
[14:48:19] [Server thread/INFO] [net.minecraft.server.dedicated.DedicatedServer]: Generating keypair
[14:48:19] [Server thread/INFO] [net.minecraft.server.dedicated.DedicatedServer]: Starting Minecraft server on 25.110.19.49:25565
[14:48:19] [Server thread/INFO] [net.minecraft.network.NetworkSystem]: Using default channel type
[14:48:20] [Server thread/INFO] [FML]: Applying holder lookups
[14:48:20] [Server thread/INFO] [FML]: Holder lookups applied
[14:48:20] [Server thread/INFO] [PixelmonGenerations]: Registering Pokemon.
[14:48:21] [Server thread/INFO] [PixelmonGenerations]: Registering shop items.
[14:48:21] [Server thread/INFO] [PixelmonGenerations]: Registering NPCs.
[14:48:21] [Server thread/WARN] [PixelmonGenerations]: Trainer Alex is missing rarity data!
[14:48:21] [Server thread/INFO] [PixelmonGenerations]: Registering drops.
[14:48:21] [Server thread/INFO] [PixelmonGenerations]: Registering Pokémon drops.
[14:48:21] [Server thread/INFO] [PixelmonGenerations]: Registering battle rules.
[14:48:22] [Server thread/INFO] [PixelmonGenerations]: Loaded Trainer Spawns
[14:48:22] [Server thread/INFO] [PixelmonGenerations]: Registering entity spawns.
[14:48:22] [Server thread/WARN] [net.minecraft.network.datasync.EntityDataManager]: defineId called for: class net.minecraft.entity.player.EntityPlayer from class com.pixelmongenerations.core.event.EntityPlayerExtension
[14:48:22] [Server thread/WARN] [net.minecraft.network.datasync.EntityDataManager]: defineId called for: class net.minecraft.entity.player.EntityPlayer from class com.pixelmongenerations.core.event.EntityPlayerExtension
[14:48:22] [Server thread/WARN] [net.minecraft.network.datasync.EntityDataManager]: defineId called for: class net.minecraft.entity.player.EntityPlayer from class com.pixelmongenerations.core.event.EntityPlayerExtension
[14:48:22] [Server thread/WARN] [net.minecraft.network.datasync.EntityDataManager]: defineId called for: class net.minecraft.entity.player.EntityPlayer from class com.pixelmongenerations.core.event.EntityPlayerExtension
[14:48:22] [Server thread/WARN] [net.minecraft.network.datasync.EntityDataManager]: defineId called for: class net.minecraft.entity.player.EntityPlayer from class com.pixelmongenerations.core.event.EntityPlayerExtension
[14:48:22] [Server thread/WARN] [net.minecraft.network.datasync.EntityDataManager]: defineId called for: class net.minecraft.entity.player.EntityPlayer from class com.pixelmongenerations.core.event.EntityPlayerExtension
[14:48:22] [Server thread/WARN] [net.minecraft.network.datasync.EntityDataManager]: defineId called for: class net.minecraft.entity.player.EntityPlayer from class com.pixelmongenerations.core.event.EntityPlayerExtension
[14:48:22] [Server thread/WARN] [net.minecraft.network.datasync.EntityDataManager]: defineId called for: class net.minecraft.entity.player.EntityPlayer from class com.pixelmongenerations.core.event.EntityPlayerExtension
[14:48:22] [Server thread/WARN] [net.minecraft.network.datasync.EntityDataManager]: defineId called for: class net.minecraft.entity.player.EntityPlayer from class com.pixelmongenerations.core.event.EntityPlayerExtension
[14:48:22] [Server thread/WARN] [net.minecraft.network.datasync.EntityDataManager]: defineId called for: class net.minecraft.entity.player.EntityPlayer from class com.pixelmongenerations.core.event.EntityPlayerExtension
[14:48:22] [Server thread/WARN] [net.minecraft.network.datasync.EntityDataManager]: defineId called for: class net.minecraft.entity.player.EntityPlayer from class com.pixelmongenerations.core.event.EntityPlayerExtension
[14:48:22] [Server thread/WARN] [net.minecraft.network.datasync.EntityDataManager]: defineId called for: class net.minecraft.entity.player.EntityPlayer from class com.pixelmongenerations.core.event.EntityPlayerExtension
[14:48:22] [Server thread/WARN] [net.minecraft.network.datasync.EntityDataManager]: defineId called for: class net.minecraft.entity.player.EntityPlayer from class com.pixelmongenerations.core.event.EntityPlayerExtension
[14:48:22] [Server thread/WARN] [net.minecraft.network.datasync.EntityDataManager]: defineId called for: class net.minecraft.entity.player.EntityPlayer from class com.pixelmongenerations.core.event.EntityPlayerExtension
[14:48:22] [Server thread/WARN] [net.minecraft.network.datasync.EntityDataManager]: defineId called for: class net.minecraft.entity.player.EntityPlayer from class com.pixelmongenerations.core.event.EntityPlayerExtension
[14:48:23] [Server thread/INFO] [FML]: Injecting itemstacks
[14:48:23] [Server thread/INFO] [FML]: Itemstack injection complete
[14:48:23] [Server thread/WARN] [FML]: No types have been added to Biome pixelmon:ultradarkforest, types have been assigned on a best-effort guess: [FOREST]
[14:48:23] [Server thread/WARN] [FML]: No types have been added to Biome pixelmon:ultraburst, types have been assigned on a best-effort guess: [PLAINS]
[14:48:23] [Server thread/WARN] [FML]: No types have been added to Biome pixelmon:ultrajungle, types have been assigned on a best-effort guess: [DENSE, FOREST]
[14:48:23] [Server thread/WARN] [FML]: No types have been added to Biome pixelmon:ultraforest, types have been assigned on a best-effort guess: [DENSE, FOREST]
[14:48:23] [Server thread/WARN] [FML]: No types have been added to Biome pixelmon:ultradesert, types have been assigned on a best-effort guess: [DENSE, FOREST]
[14:48:23] [Server thread/WARN] [FML]: No types have been added to Biome pixelmon:ultradeepsea, types have been assigned on a best-effort guess: [PLAINS, OCEAN, WATER]
[14:48:23] [Server thread/WARN] [FML]: No types have been added to Biome pixelmon:ultraswamp, types have been assigned on a best-effort guess: [WET, SWAMP, SPARSE, MUSHROOM]
[14:48:23] [Server thread/WARN] [FML]: No types have been added to Biome pixelmon:ultraruin, types have been assigned on a best-effort guess: [PLAINS, DRY, HOT, SAVANNA]
[14:48:23] [Server thread/WARN] [FML]: No types have been added to Biome pixelmon:ultraplant, types have been assigned on a best-effort guess: [DENSE, FOREST]
[14:48:23] [Server thread/INFO] [PixelmonGenerations]: Registering spawn sets.
[14:48:24] [Server thread/INFO] [PixelmonGenerations]: Registering Breeding Conditions.
[14:48:24] [Server thread/INFO] [PixelmonGenerations]: Loaded Pokemon Trades
[14:48:24] [Server thread/INFO] [PixelmonGenerations]: Registering structures.
[14:48:25] [Server thread/INFO] [FML]: Forge Mod Loader has successfully loaded 13 mods
[14:48:25] [Server thread/INFO] [net.minecraft.server.dedicated.DedicatedServer]: Preparing level "world"
[14:48:25] [Server thread/INFO] [FML]: Loading dimension 0 (world) (net.minecraft.server.dedicated.DedicatedServer@30ef2c2c)
[14:48:27] [Server thread/INFO] [net.minecraft.advancements.AdvancementList]: Loaded 1482 advancements
[14:48:27] [Server thread/INFO] [FML]: Loading dimension 1 (world) (net.minecraft.server.dedicated.DedicatedServer@30ef2c2c)
[14:48:27] [Server thread/INFO] [STDOUT]: [biomesoplenty.common.world.BiomeProviderBOPHell:<init>:32]: settings for hell world: 
[14:48:27] [Server thread/INFO] [FML]: Loading dimension -1 (world) (net.minecraft.server.dedicated.DedicatedServer@30ef2c2c)
[14:48:27] [Server thread/INFO] [STDOUT]: [com.pixelmongenerations.common.world.ultraspace.UltraSpaceWorldProvider:func_76572_b:20]: world
[14:48:27] [Server thread/INFO] [FML]: Loading dimension 24 (world) (net.minecraft.server.dedicated.DedicatedServer@30ef2c2c)
[14:48:27] [Server thread/INFO] [net.minecraft.server.MinecraftServer]: Preparing start region for level 0
[14:48:28] [Server thread/INFO] [net.minecraft.server.MinecraftServer]: Preparing spawn area: 4%
[14:48:29] [Server thread/INFO] [net.minecraft.server.MinecraftServer]: Preparing spawn area: 47%
[14:48:30] [Server thread/INFO] [net.minecraft.server.dedicated.DedicatedServer]: Done (5.051s)! For help, type "help" or "?"
[14:48:32] [Server thread/INFO] [FML]: Unloading dimension 1
[14:48:32] [Server thread/INFO] [FML]: Unloading dimension -1
[14:49:24] [Server thread/INFO] [net.minecraft.server.dedicated.DedicatedServer]: Stopping the server
[14:49:24] [Server thread/INFO] [net.minecraft.server.MinecraftServer]: Stopping server
[14:49:24] [Server thread/INFO] [net.minecraft.server.MinecraftServer]: Saving players
[14:49:24] [Server thread/INFO] [net.minecraft.server.MinecraftServer]: Saving worlds
[14:49:24] [Server thread/INFO] [net.minecraft.server.MinecraftServer]: Saving chunks for level 'world'/overworld
[14:49:24] [Server thread/INFO] [net.minecraft.server.MinecraftServer]: Saving chunks for level 'world'/ultraspace
[14:49:24] [Server thread/INFO] [FML]: Unloading dimension 0
[14:49:24] [Server thread/INFO] [FML]: Unloading dimension 24
[14:49:24] [Server Shutdown Thread/INFO] [net.minecraft.server.MinecraftServer]: Stopping server
[14:49:24] [Server Shutdown Thread/INFO] [net.minecraft.server.MinecraftServer]: Saving players
[14:49:24] [Server Shutdown Thread/INFO] [net.minecraft.server.MinecraftServer]: Saving worlds

I tried reinstalling with the newest recommended 1.12.2 version of forge, and tried reloading the mods several times to no avail. What exactly is preventing the server from loading the mods, and what can I do to fix it? Due to my inexperience I'm probably missing something very basic, so any help would be much appreciated! Thanks!

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.

Announcements



  • Recently Browsing

    • No registered users viewing this page.
  • Posts

    • Yeah, Minecraft.getInstance().player only works on the client side. Is there a way to get the player from the NetworkEvent.Context?
    • I have tried multimc, prism, and curseforge. They all crash without creating any logs.
    • I play with friends a server with mods, funny enough im the only one getting the error. Link to the crash error:https://pastebin.com/Qgn57EXZ
    • I have a keybind where you spit like a llama. On singleplayer both the entity and particle spawn and it's sound is played (https://youtu.be/bpxnFDuWw_I). But on a server only the entity is spawned and nothing else (https://youtu.be/veVQ4zSqnIA), no particles nor sound. Upon starting the server I have noticed this error in the window (https://postimg.cc/K3KDCpMY), don't know if it's relevant. The server works fine but when I want to spit the following pops up in the serverlog '''Attempted to load class net/minecraft/client/player/LocalPlayer for invalid dist DEDICATED_SERVER''' (https://postimg.cc/LqTDP1Sm). I have prepared the following code of the Server-to-Client packet class which I have made to spawn mentioned particles and sounds. package mett.palemannie.tabakmod.networking.packets; import net.minecraft.client.Minecraft; import net.minecraft.core.particles.ParticleTypes; import net.minecraft.network.FriendlyByteBuf; import net.minecraft.sounds.SoundEvents; import net.minecraft.util.RandomSource; import net.minecraft.world.entity.player.Player; import net.minecraft.world.level.Level; import net.minecraft.world.phys.Vec3; import net.minecraftforge.network.NetworkEvent; import java.util.function.Supplier; public class SpuckEffektS2CPacket { public SpuckEffektS2CPacket(){ } public SpuckEffektS2CPacket(FriendlyByteBuf buf){ } public void toBytes(FriendlyByteBuf buf){ } public boolean handle(Supplier<NetworkEvent.Context> supplier){ NetworkEvent.Context context = supplier.get(); context.enqueueWork(()-> { Player player = Minecraft.getInstance().player; //Attempted to load class net/minecraft/client/player/LocalPlayer for invalid dist DEDICATED_SERVER Level level = Minecraft.getInstance().level; RandomSource rdm = RandomSource.create(); float r = rdm.nextInt(80, 120) / 100f; player.playSound(SoundEvents.LLAMA_SPIT, 1f, r); Vec3 MausPos = player.getEyePosition(); Vec3 SchauWinkel = player.getLookAngle(); level.addParticle(ParticleTypes.SPIT, true, MausPos.x, MausPos.y, MausPos.z, SchauWinkel.x/4, SchauWinkel.y/4, SchauWinkel.z/4); }); return true; } } Is there an alternative to Minecraft.getInstance().player;? dumb question. I have looked at other mods (MrCrayfish's Gun Mod, Ars Noveau, Apotheosis) on how they handle such server-to-client sound and particles but I haven't got any wiser.    
    • i keep getting error on minecraft when im trying to play modpack. When i go to logs folder i got this. 
  • Topics

×
×
  • Create New...

Important Information

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