Jump to content

Error: java.lang.RuntimeException: Could not execute entrypoint stage 'main' due to errors, provided by 'mialeemisc'!


Recommended Posts

Posted

I am currently trying to run a modpack using fabric but i keep getting this error message. The game crashed whilst initializing game Error: java.lang.RuntimeException: Could not execute entrypoint stage 'main' due to errors, provided by 'mialeemisc'! exit code: -1

What do i do?

java.lang.RuntimeException: Could not execute entrypoint stage 'main' due to errors, provided by 'mialeemisc'!
    at net.fabricmc.loader.impl.FabricLoaderImpl.lambda$invokeEntrypoints$2(FabricLoaderImpl.java:388)
    at net.fabricmc.loader.impl.util.ExceptionUtil.gatherExceptions(ExceptionUtil.java:33)
    at net.fabricmc.loader.impl.FabricLoaderImpl.invokeEntrypoints(FabricLoaderImpl.java:386)
    at net.fabricmc.loader.impl.game.minecraft.Hooks.startClient(Hooks.java:52)
    at net.minecraft.class_310.<init>(class_310.java:458)
    at net.minecraft.client.main.Main.main(Main.java:211)
    at net.fabricmc.loader.impl.game.minecraft.MinecraftGameProvider.launch(MinecraftGameProvider.java:470)
    at net.fabricmc.loader.impl.launch.knot.Knot.launch(Knot.java:74)
    at net.fabricmc.loader.impl.launch.knot.KnotClient.main(KnotClient.java:23)
Caused by: java.lang.NoClassDefFoundError: net/fabricmc/fabric/api/itemgroup/v1/IdentifiableItemGroup
    at java.base/java.lang.ClassLoader.defineClass1(Native Method)
    at java.base/java.lang.ClassLoader.defineClass(ClassLoader.java:1017)
    at java.base/java.security.SecureClassLoader.defineClass(SecureClassLoader.java:150)
    at net.fabricmc.loader.impl.launch.knot.KnotClassLoader.defineClassFwd(KnotClassLoader.java:160)
    at net.fabricmc.loader.impl.launch.knot.KnotClassDelegate.tryLoadClass(KnotClassDelegate.java:355)
    at net.fabricmc.loader.impl.launch.knot.KnotClassDelegate.loadClass(KnotClassDelegate.java:218)
    at net.fabricmc.loader.impl.launch.knot.KnotClassLoader.loadClass(KnotClassLoader.java:119)
    at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:525)
    at xyz.amymialee.mialeemisc.MialeeMisc.onInitialize(MialeeMisc.java:78)
    at net.fabricmc.loader.impl.FabricLoaderImpl.invokeEntrypoints(FabricLoaderImpl.java:384)
    ... 6 more
Caused by: java.lang.ClassNotFoundException: net.fabricmc.fabric.api.itemgroup.v1.IdentifiableItemGroup
    at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:641)
    at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:525)
    at net.fabricmc.loader.impl.launch.knot.KnotClassDelegate.loadClass(KnotClassDelegate.java:226)
    at net.fabricmc.loader.impl.launch.knot.KnotClassLoader.loadClass(KnotClassLoader.java:119)
    at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:525)
    ... 16 more


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

-- Head --
Thread: Render thread
Stacktrace:
    at net.fabricmc.loader.impl.FabricLoaderImpl.lambda$invokeEntrypoints$2(FabricLoaderImpl.java:388)
    at net.fabricmc.loader.impl.util.ExceptionUtil.gatherExceptions(ExceptionUtil.java:33)
    at net.fabricmc.loader.impl.FabricLoaderImpl.invokeEntrypoints(FabricLoaderImpl.java:386)
    at net.fabricmc.loader.impl.game.minecraft.Hooks.startClient(Hooks.java:52)
    at net.minecraft.class_310.<init>(class_310.java:458)

-- Initialization --
Details:
    Modules: 
        ADVAPI32.dll:Advanced Windows 32 Base API:10.0.19041.1 (WinBuild.160101.0800):Microsoft Corporation
        COMCTL32.dll:User Experience Controls Library:6.10 (WinBuild.160101.0800):Microsoft Corporation
        CRYPT32.dll:Crypto API32:10.0.19041.1 (WinBuild.160101.0800):Microsoft Corporation
        CRYPTBASE.dll:Base cryptographic API DLL:10.0.19041.3636 (WinBuild.160101.0800):Microsoft Corporation
        CRYPTSP.dll:Cryptographic Service Provider API:10.0.19041.3636 (WinBuild.160101.0800):Microsoft Corporation
        DBGHELP.DLL:Windows Image Helper:10.0.19041.3636 (WinBuild.160101.0800):Microsoft Corporation
        DNSAPI.dll:DNS Client API DLL:10.0.19041.1 (WinBuild.160101.0800):Microsoft Corporation
        GDI32.dll:GDI Client DLL:10.0.19041.4474 (WinBuild.160101.0800):Microsoft Corporation
        IMM32.DLL:Multi-User Windows IMM32 API Client DLL:10.0.19041.4474 (WinBuild.160101.0800):Microsoft Corporation
        IPHLPAPI.DLL:IP Helper API:10.0.19041.1 (WinBuild.160101.0800):Microsoft Corporation
        IPSEng64.dll:IPS Script Engine DLL:17.2.12.33:Broadcom
        KERNEL32.DLL:Windows NT BASE API Client DLL:10.0.19041.3636 (WinBuild.160101.0800):Microsoft Corporation
        KERNELBASE.dll:Windows NT BASE API Client DLL:10.0.19041.3636 (WinBuild.160101.0800):Microsoft Corporation
        MSASN1.dll:ASN.1 Runtime APIs:10.0.19041.3636 (WinBuild.160101.0800):Microsoft Corporation
        NLAapi.dll:Network Location Awareness 2:10.0.19041.4123 (WinBuild.160101.0800):Microsoft Corporation
        NSI.dll:NSI User-mode interface DLL:10.0.19041.3636 (WinBuild.160101.0800):Microsoft Corporation
        NTASN1.dll:Microsoft ASN.1 API:10.0.19041.1 (WinBuild.160101.0800):Microsoft Corporation
        OLEAUT32.dll:OLEAUT32.DLL:10.0.19041.3636 (WinBuild.160101.0800):Microsoft Corporation
        Ole32.dll:Microsoft OLE for Windows:10.0.19041.3636 (WinBuild.160101.0800):Microsoft Corporation
        POWRPROF.dll:Power Profile Helper DLL:10.0.19041.1 (WinBuild.160101.0800):Microsoft Corporation
        PSAPI.DLL:Process Status Helper:10.0.19041.3636 (WinBuild.160101.0800):Microsoft Corporation
        Pdh.dll:Windows Performance Data Helper DLL:10.0.19041.1 (WinBuild.160101.0800):Microsoft Corporation
        RPCRT4.dll:Remote Procedure Call Runtime:10.0.19041.3636 (WinBuild.160101.0800):Microsoft Corporation
        SHCORE.dll:SHCORE:10.0.19041.1 (WinBuild.160101.0800):Microsoft Corporation
        SHELL32.dll:Windows Shell Common Dll:10.0.19041.4123 (WinBuild.160101.0800):Microsoft Corporation
        UMPDC.dll
        USER32.dll:Multi-User Windows USER API Client DLL:10.0.19041.1 (WinBuild.160101.0800):Microsoft Corporation
        USERENV.dll:Userenv:10.0.19041.1 (WinBuild.160101.0800):Microsoft Corporation
        VCRUNTIME140.dll:Microsoft® C Runtime Library:14.29.30139.0 built by: vcwrkspc:Microsoft Corporation
        VERSION.dll:Version Checking and File Installation Libraries:10.0.19041.3636 (WinBuild.160101.0800):Microsoft Corporation
        WINHTTP.dll:Windows HTTP Services:10.0.19041.3636 (WinBuild.160101.0800):Microsoft Corporation
        WINMM.dll:MCI API DLL:10.0.19041.1 (WinBuild.160101.0800):Microsoft Corporation
        WINTRUST.dll:Microsoft Trust Verification APIs:10.0.19041.4529 (WinBuild.160101.0800):Microsoft Corporation
        WS2_32.dll:Windows Socket 2.0 32-Bit DLL:10.0.19041.3636 (WinBuild.160101.0800):Microsoft Corporation
        WSOCK32.dll:Windows Socket 32-Bit DLL:10.0.19041.1 (WinBuild.160101.0800):Microsoft Corporation
        Wldp.dll:Windows Lockdown Policy:10.0.19041.1 (WinBuild.160101.0800):Microsoft Corporation
        amsi.dll:Anti-Malware Scan Interface:10.0.19041.4355 (WinBuild.160101.0800):Microsoft Corporation
        apphelp.dll:Application Compatibility Client Library:10.0.19041.1 (WinBuild.160101.0800):Microsoft Corporation
        awt.dll:OpenJDK Platform binary:17.0.8.0:Microsoft
        bcrypt.dll:Windows Cryptographic Primitives Library:10.0.19041.1 (WinBuild.160101.0800):Microsoft Corporation
        bcryptPrimitives.dll:Windows Cryptographic Primitives Library:10.0.19041.3636 (WinBuild.160101.0800):Microsoft Corporation
        clbcatq.dll:COM+ Configuration Catalog:2001.12.10941.16384 (WinBuild.160101.0800):Microsoft Corporation
        combase.dll:Microsoft COM for Windows:10.0.19041.3636 (WinBuild.160101.0800):Microsoft Corporation
        dbgcore.DLL:Windows Core Debugging Helpers:10.0.19041.4355 (WinBuild.160101.0800):Microsoft Corporation
        dhcpcsvc.DLL:DHCP Client Service:10.0.19041.1 (WinBuild.160101.0800):Microsoft Corporation
        dhcpcsvc6.DLL:DHCPv6 Client:10.0.19041.1 (WinBuild.160101.0800):Microsoft Corporation
        fwpuclnt.dll:FWP/IPsec User-Mode API:10.0.19041.3636 (WinBuild.160101.0800):Microsoft Corporation
        gdi32full.dll:GDI Client DLL:10.0.19041.4474 (WinBuild.160101.0800):Microsoft Corporation
        glfw.dll:GLFW 3.4.0 DLL:3.4.0:GLFW
        java.dll:OpenJDK Platform binary:17.0.8.0:Microsoft
        javaw.exe:OpenJDK Platform binary:17.0.8.0:Microsoft
        jemalloc.dll
        jimage.dll:OpenJDK Platform binary:17.0.8.0:Microsoft
        jli.dll:OpenJDK Platform binary:17.0.8.0:Microsoft
        jna4206249276277426497.dll:JNA native library:6.1.4:Java(TM) Native Access (JNA)
        jsvml.dll:OpenJDK Platform binary:17.0.8.0:Microsoft
        jvm.dll:OpenJDK 64-Bit server VM:17.0.8.0:Microsoft
        kernel.appcore.dll:AppModel API Host:10.0.19041.3758 (WinBuild.160101.0800):Microsoft Corporation
        lwjgl.dll
        lwjgl_stb.dll
        management.dll:OpenJDK Platform binary:17.0.8.0:Microsoft
        management_ext.dll:OpenJDK Platform binary:17.0.8.0:Microsoft
        msvcp140.dll:Microsoft® C Runtime Library:14.29.30139.0 built by: vcwrkspc:Microsoft Corporation
        msvcp_win.dll:Microsoft® C Runtime Library:10.0.19041.3636 (WinBuild.160101.0800):Microsoft Corporation
        msvcrt.dll:Windows NT CRT DLL:7.0.19041.3636 (WinBuild.160101.0800):Microsoft Corporation
        mswsock.dll:Microsoft Windows Sockets 2.0 Service Provider:10.0.19041.1 (WinBuild.160101.0800):Microsoft Corporation
        napinsp.dll:E-mail Naming Shim Provider:10.0.19041.1 (WinBuild.160101.0800):Microsoft Corporation
        ncrypt.dll:Windows NCrypt Router:10.0.19041.1 (WinBuild.160101.0800):Microsoft Corporation
        net.dll:OpenJDK Platform binary:17.0.8.0:Microsoft
        nio.dll:OpenJDK Platform binary:17.0.8.0:Microsoft
        ntdll.dll:NT Layer DLL:10.0.19041.3636 (WinBuild.160101.0800):Microsoft Corporation
        perfos.dll:Windows System Performance Objects DLL:10.0.19041.1 (WinBuild.160101.0800):Microsoft Corporation
        pnrpnsp.dll:PNRP Name Space Provider:10.0.19041.1 (WinBuild.160101.0800):Microsoft Corporation
        profapi.dll:User Profile Basic API:10.0.19041.4355 (WinBuild.160101.0800):Microsoft Corporation
        rasadhlp.dll:Remote Access AutoDial Helper:10.0.19041.3636 (WinBuild.160101.0800):Microsoft Corporation
        rsaenh.dll:Microsoft Enhanced Cryptographic Provider:10.0.19041.1 (WinBuild.160101.0800):Microsoft Corporation
        sechost.dll:Host for SCM/SDDL/LSA Lookup APIs:10.0.19041.1 (WinBuild.160101.0800):Microsoft Corporation
        shlwapi.dll:Shell Light-weight Utility Library:10.0.19041.1 (WinBuild.160101.0800):Microsoft Corporation
        sunmscapi.dll:OpenJDK Platform binary:17.0.8.0:Microsoft
        symamsi.dll:Symantec AMSI provider:15.7.14.32:Broadcom
        ucrtbase.dll:Microsoft® C Runtime Library:10.0.19041.3636 (WinBuild.160101.0800):Microsoft Corporation
        vcruntime140_1.dll:Microsoft® C Runtime Library:14.29.30139.0 built by: vcwrkspc:Microsoft Corporation
        verify.dll:OpenJDK Platform binary:17.0.8.0:Microsoft
        win32u.dll:Win32u:10.0.19041.4529 (WinBuild.160101.0800):Microsoft Corporation
        windows.storage.dll:Microsoft WinRT Storage API:10.0.19041.1 (WinBuild.160101.0800):Microsoft Corporation
        winrnr.dll:LDAP RnR Provider DLL:10.0.19041.3636 (WinBuild.160101.0800):Microsoft Corporation
        wshbth.dll:Windows Sockets Helper DLL:10.0.19041.3636 (WinBuild.160101.0800):Microsoft Corporation
        zip.dll:OpenJDK Platform binary:17.0.8.0:Microsoft
Stacktrace:
    at net.minecraft.client.main.Main.main(Main.java:211)
    at net.fabricmc.loader.impl.game.minecraft.MinecraftGameProvider.launch(MinecraftGameProvider.java:470)
    at net.fabricmc.loader.impl.launch.knot.Knot.launch(Knot.java:74)
    at net.fabricmc.loader.impl.launch.knot.KnotClient.main(KnotClient.java:23)

-- System Details --
Details:
    Minecraft Version: 1.20.1
    Minecraft Version ID: 1.20.1
    Operating System: Windows 10 (amd64) version 10.0
    Java Version: 17.0.8, Microsoft
    Java VM Version: OpenJDK 64-Bit Server VM (mixed mode), Microsoft
    Memory: 251858208 bytes (240 MiB) / 557842432 bytes (532 MiB) up to 4294967296 bytes (4096 MiB)
    CPUs: 16
    Processor Vendor: AuthenticAMD
    Processor Name: AMD Ryzen 7 3700X 8-Core Processor             
    Identifier: AuthenticAMD Family 23 Model 113 Stepping 0
    Microarchitecture: Zen 2
    Frequency (GHz): 3.60
    Number of physical packages: 1
    Number of physical CPUs: 8
    Number of logical CPUs: 16
    Graphics card #0 name: NVIDIA GeForce RTX 3060
    Graphics card #0 vendor: NVIDIA (0x10de)
    Graphics card #0 VRAM (MB): 4095.00
    Graphics card #0 deviceId: 0x2504
    Graphics card #0 versionInfo: DriverVersion=31.0.15.5222
    Memory slot #0 capacity (MB): 8192.00
    Memory slot #0 clockSpeed (GHz): 3.20
    Memory slot #0 type: DDR4
    Memory slot #1 capacity (MB): 8192.00
    Memory slot #1 clockSpeed (GHz): 3.20
    Memory slot #1 type: DDR4
    Memory slot #2 capacity (MB): 8192.00
    Memory slot #2 clockSpeed (GHz): 3.20
    Memory slot #2 type: DDR4
    Memory slot #3 capacity (MB): 8192.00
    Memory slot #3 clockSpeed (GHz): 3.20
    Memory slot #3 type: DDR4
    Virtual memory max (MB): 37558.07
    Virtual memory used (MB): 16659.21
    Swap memory total (MB): 4864.00
    Swap memory used (MB): 0.00
    JVM Flags: 4 total; -XX:HeapDumpPath=MojangTricksIntelDriversForPerformance_javaw.exe_minecraft.exe.heapdump -Xss1M -Xmx4096m -Xms256m
    Fabric Mods: 
        a_man_with_plushies: A Man With Plushies 4.1.0
        alloy_forgery: Alloy Forgery 2.1.2+1.20
        appleskin: AppleSkin 2.5.1+mc1.20
        architectury: Architectury 9.2.14
        azurelib: AzureLib 2.0.30
        bambooeverything: Bamboo Everything 3.0.3+mc1.20.1
        betterloot: Better Loot 1.0.0+mc1.20.1
        blazingbamboo: Blazing Bamboo 1.20.1-1.0.1
        bookshelf: Bookshelf 20.2.13
        bosses_of_mass_destruction: Bosses of Mass Destruction (Beta) 1.7.5-1.20.1
            maelstrom_library: Maelstrom Library 1.6.1-1.20
            multipart_entities: MultipartEntities 1.5-1.20
        bountiful: Bountiful 6.0.3+1.20.1
        cardinal-components: Cardinal Components API 5.2.2
            cardinal-components-base: Cardinal Components API (base) 5.2.2
            cardinal-components-block: Cardinal Components API (blocks) 5.2.2
            cardinal-components-chunk: Cardinal Components API (chunks) 5.2.2
            cardinal-components-entity: Cardinal Components API (entities) 5.2.2
            cardinal-components-item: Cardinal Components API (items) 5.2.2
            cardinal-components-level: Cardinal Components API (world saves) 5.2.2
            cardinal-components-scoreboard: Cardinal Components API (scoreboard) 5.2.2
            cardinal-components-world: Cardinal Components API (worlds) 5.2.2
        chat_heads: Chat Heads 0.12.7
        cherishedworlds: Cherished Worlds 6.1.6+1.20.1
        cloth-config: Cloth Config v11 11.1.118
            cloth-basic-math: cloth-basic-math 0.6.1
        clumps: Clumps 12.0.0.4
        comforts: Comforts 6.4.0+1.20.1
            spectrelib: SpectreLib 0.13.15+1.20.1
        commonnetworking: Common Network 1.0.5-1.20.1
        coroutil: CoroUtil 1.20.1-1.3.7
        craftable_netherstar: Craftable Netherstar 1.0.0
        craftable_totems: Craftable Totems 1.0.0
        craftablebell: CraftableBell 1.20.1-0.1
        craftablechainarmor: CraftableChainArmor 1.20.1-0.1
        craftablehorsearmor: CraftableHorseArmor 1.20.1-0.1
        craftablesaddle: Craftable Saddle 1.20.1-1.6.4-[FABRIC]
        cristellib: Cristel Lib 1.1.5
            blue_endless_jankson: jankson 1.2.3
        croptopia: Croptopia 3.0.3
        darkpaintings: DarkPaintings 17.0.4
        deeperdarker: Deeper and Darker 1.2.6
            customportalapi: Custom Portal Api 0.0.1-beta64-1.20
        dehydration: Dehydration 1.3.6
        doespotatotick: Does Potato Tick fabric-quilt-1.20.1-3.6.1
        dragonloot: DragonLoot 1.1.4
        dungeons_arise: When Dungeons Arise 2.1.58
        dungeons_arise_seven_seas: When Dungeons Arise: Seven Seas 1.0.2
        dungeons_music_discs: MC Dungeons Music Discs 1.0.0
        eldritch_mobs: EldritchMobs 1.15.1
            polymer-blocks: Polymer (Textured Blocks) 0.5.15+1.20.1
            polymer-core: Polymer (Core) 0.5.15+1.20.1
                polymer-networking: Polymer (Networking) 0.5.15+1.20.1
                    polymer-common: Polymer (Common) 0.5.15+1.20.1
                polymer-registry-sync-manipulator: Polymer (Registry Sync Manipulator) 0.5.15+1.20.1
            server_translations_api: Server Translations API 2.0.0+1.20
                packet_tweaker: Packet Tweaker 0.4.0+1.19.4
        elementa: Elementa 649
        enchdesc: EnchantmentDescriptions 17.0.16
        entityculling: EntityCulling 1.6.6
        epherolib: EpheroLib 1.2.0
        essential: Essential 1.3.2.8
        essential-container: essential-container 1.0.0
            essential-loader: essential-loader 1.2.3
        evenmoreinstruments: Even More Instruments! 6.0
        explorerscompass: Explorer's Compass 1.20.1-2.2.3-fabric
        expores: Exp Ores 1.0.0+mc1.20.1
        extrakeybinds: ThatRobins Extra Origins Keybinds 0.5.0+1.17-1.19.4
        fabric-api: Fabric API 0.92.2+1.20.1
            fabric-api-base: Fabric API Base 0.4.31+1802ada577
            fabric-api-lookup-api-v1: Fabric API Lookup API (v1) 1.6.36+1802ada577
            fabric-biome-api-v1: Fabric Biome API (v1) 13.0.13+1802ada577
            fabric-block-api-v1: Fabric Block API (v1) 1.0.11+1802ada577
            fabric-block-view-api-v2: Fabric BlockView API (v2) 1.0.1+1802ada577
            fabric-blockrenderlayer-v1: Fabric BlockRenderLayer Registration (v1) 1.1.41+1802ada577
            fabric-client-tags-api-v1: Fabric Client Tags 1.1.2+1802ada577
            fabric-command-api-v1: Fabric Command API (v1) 1.2.34+f71b366f77
            fabric-command-api-v2: Fabric Command API (v2) 2.2.13+1802ada577
            fabric-commands-v0: Fabric Commands (v0) 0.2.51+df3654b377
            fabric-containers-v0: Fabric Containers (v0) 0.1.64+df3654b377
            fabric-content-registries-v0: Fabric Content Registries (v0) 4.0.11+1802ada577
            fabric-convention-tags-v1: Fabric Convention Tags 1.5.5+1802ada577
            fabric-crash-report-info-v1: Fabric Crash Report Info (v1) 0.2.19+1802ada577
            fabric-data-attachment-api-v1: Fabric Data Attachment API (v1) 1.0.0+de0fd6d177
            fabric-data-generation-api-v1: Fabric Data Generation API (v1) 12.3.4+1802ada577
            fabric-dimensions-v1: Fabric Dimensions API (v1) 2.1.54+1802ada577
            fabric-entity-events-v1: Fabric Entity Events (v1) 1.6.0+1c78457f77
            fabric-events-interaction-v0: Fabric Events Interaction (v0) 0.6.2+1802ada577
            fabric-events-lifecycle-v0: Fabric Events Lifecycle (v0) 0.2.63+df3654b377
            fabric-game-rule-api-v1: Fabric Game Rule API (v1) 1.0.40+1802ada577
            fabric-item-api-v1: Fabric Item API (v1) 2.1.28+1802ada577
            fabric-item-group-api-v1: Fabric Item Group API (v1) 4.0.12+1802ada577
            fabric-key-binding-api-v1: Fabric Key Binding API (v1) 1.0.37+1802ada577
            fabric-keybindings-v0: Fabric Key Bindings (v0) 0.2.35+df3654b377
            fabric-lifecycle-events-v1: Fabric Lifecycle Events (v1) 2.2.22+1802ada577
            fabric-loot-api-v2: Fabric Loot API (v2) 1.2.1+1802ada577
            fabric-loot-tables-v1: Fabric Loot Tables (v1) 1.1.45+9e7660c677
            fabric-message-api-v1: Fabric Message API (v1) 5.1.9+1802ada577
            fabric-mining-level-api-v1: Fabric Mining Level API (v1) 2.1.50+1802ada577
            fabric-model-loading-api-v1: Fabric Model Loading API (v1) 1.0.3+1802ada577
            fabric-models-v0: Fabric Models (v0) 0.4.2+9386d8a777
            fabric-networking-api-v1: Fabric Networking API (v1) 1.3.11+1802ada577
            fabric-networking-v0: Fabric Networking (v0) 0.3.51+df3654b377
            fabric-object-builder-api-v1: Fabric Object Builder API (v1) 11.1.3+1802ada577
            fabric-particles-v1: Fabric Particles (v1) 1.1.2+1802ada577
            fabric-recipe-api-v1: Fabric Recipe API (v1) 1.0.21+1802ada577
            fabric-registry-sync-v0: Fabric Registry Sync (v0) 2.3.3+1802ada577
            fabric-renderer-api-v1: Fabric Renderer API (v1) 3.2.1+1802ada577
            fabric-renderer-indigo: Fabric Renderer - Indigo 1.5.2+85287f9f77
            fabric-renderer-registries-v1: Fabric Renderer Registries (v1) 3.2.46+df3654b377
            fabric-rendering-data-attachment-v1: Fabric Rendering Data Attachment (v1) 0.3.37+92a0d36777
            fabric-rendering-fluids-v1: Fabric Rendering Fluids (v1) 3.0.28+1802ada577
            fabric-rendering-v0: Fabric Rendering (v0) 1.1.49+df3654b377
            fabric-rendering-v1: Fabric Rendering (v1) 3.0.8+1802ada577
            fabric-resource-conditions-api-v1: Fabric Resource Conditions API (v1) 2.3.8+1802ada577
            fabric-resource-loader-v0: Fabric Resource Loader (v0) 0.11.10+1802ada577
            fabric-screen-api-v1: Fabric Screen API (v1) 2.0.8+1802ada577
            fabric-screen-handler-api-v1: Fabric Screen Handler API (v1) 1.3.30+1802ada577
            fabric-sound-api-v1: Fabric Sound API (v1) 1.0.13+1802ada577
            fabric-transfer-api-v1: Fabric Transfer API (v1) 3.3.5+8dd72ea377
            fabric-transitive-access-wideners-v1: Fabric Transitive Access Wideners (v1) 4.3.1+1802ada577
        fabric-language-kotlin: Fabric Language Kotlin 1.11.0+kotlin.2.0.0
            org_jetbrains_kotlin_kotlin-reflect: kotlin-reflect 2.0.0
            org_jetbrains_kotlin_kotlin-stdlib: kotlin-stdlib 2.0.0
            org_jetbrains_kotlin_kotlin-stdlib-jdk7: kotlin-stdlib-jdk7 2.0.0
            org_jetbrains_kotlin_kotlin-stdlib-jdk8: kotlin-stdlib-jdk8 2.0.0
            org_jetbrains_kotlinx_atomicfu-jvm: atomicfu-jvm 0.24.0
            org_jetbrains_kotlinx_kotlinx-coroutines-core-jvm: kotlinx-coroutines-core-jvm 1.8.1
            org_jetbrains_kotlinx_kotlinx-coroutines-jdk8: kotlinx-coroutines-jdk8 1.8.1
            org_jetbrains_kotlinx_kotlinx-datetime-jvm: kotlinx-datetime-jvm 0.6.0
            org_jetbrains_kotlinx_kotlinx-serialization-cbor-jvm: kotlinx-serialization-cbor-jvm 1.6.3
            org_jetbrains_kotlinx_kotlinx-serialization-core-jvm: kotlinx-serialization-core-jvm 1.6.3
            org_jetbrains_kotlinx_kotlinx-serialization-json-jvm: kotlinx-serialization-json-jvm 1.6.3
        fabricloader: Fabric Loader 0.15.11
        farmersdelight: Farmer's Delight 1.20.1-2.1.1+refabricated
            mm: Manningham Mills 2.3
            porting_lib_accessors: Porting Lib Accessors 2.3.4+1.20.1
                porting_lib_core: Porting Lib Core 2.3.4+1.20.1
            porting_lib_base: Porting Lib Base 2.3.4+1.20.1
                porting_lib_entity: Porting Lib Entity 2.3.4+1.20.1
                porting_lib_fluids: Porting Lib Fluids 2.3.4+1.20.1
                porting_lib_mixin_extensions: Porting Lib Mixin Extensions 2.3.4+1.20.1
                porting_lib_transfer: Porting Lib Transfer 2.3.4+1.20.1
                porting_lib_utility: Porting Lib Utility 2.3.4+1.20.1
            porting_lib_client_events: Porting Lib Client Events 2.3.4+1.20.1
            porting_lib_config: Porting Lib Config 2.3.4+1.20.1
                com_electronwill_night-config_core: core 3.6.6
                com_electronwill_night-config_toml: toml 3.6.6
            porting_lib_extensions: Porting Lib Extensions 2.3.4+1.20.1
                porting_lib_attributes: Porting Lib Attributes 2.3.4+1.20.1
                porting_lib_common: Porting Lib Common 2.3.4+1.20.1
            porting_lib_lazy_registration: Porting Lib Lazy Register 2.3.4+1.20.1
            porting_lib_loot: Porting Lib Loot 2.3.4+1.20.1
            porting_lib_networking: Porting Lib Networking 2.3.4+1.20.1
            porting_lib_recipe_book_categories: Porting Lib Recipe Book Categories 2.3.4+1.20.1
            porting_lib_registries: Porting Lib Registries 2.3.4+1.20.1
            porting_lib_tags: Porting Lib Tags 3.0
            porting_lib_tool_actions: Porting Lib Tool Actions 2.3.4+1.20.1
        ferritecore: FerriteCore 6.0.1
        forgeconfigapiport: Forge Config API Port 8.0.0
        ftbessentials: FTB Essentials 2001.2.2
        ftblibrary: FTB Library 2001.2.2
        geckolib: GeckoLib 4 4.4.7
            com_eliotlash_mclib_mclib: mclib 20
        genshinstrument: Genshin Instruments 3.4.1
        icterine: Icterine 1.3.0
        immediatelyfast: ImmediatelyFast 1.2.18+1.20.4
            net_lenni0451_reflect: Reflect 1.3.4
        immersive_aircraft: Immersive Aircraft 1.0.1+1.20.1
            org_mariuszgromada_math_mathparser_org-mxparser: MathParser.org-mXparser 5.2.1
        immersive_armors: Immersive Armors 1.6.1+1.20.1
        impaled: Impaled 1.2.0
            mialeemisc: Mialee Misc 1.0.38
        java: OpenJDK 64-Bit Server VM 17
        jei: Just Enough Items 15.3.0.8
        kambrik: Kambrik 6.1.1+1.20.1
        lithium: Lithium 0.11.2
        mavapi: More Axolotl Variants API 1.1.4
        mavm: More Axolotl Variants Mod 1.2.6
        mcwbridges: Macaw's Bridges 3.0.0
        mcwdoors: Macaw's Doors 1.1.1
        mcwfences: Macaw's Fences and Walls 1.1.2
        mcwfurnitures: Macaw's Furniture 3.2.2
        mcwlights: Macaw's Lights and Lamps 1.1.1
        mcwroofs: Macaw's Roofs 2.3.0
        mcwtrpdoors: Macaw's Trapdoors 1.1.3
        mcwwindows: Macaw's Windows 2.2.1
        minecraft: Minecraft 1.20.1
        mobtimizations: Mobtimizations 1.20.1-1.0.0
        modernfix: ModernFix 5.18.6+mc1.20.1
        monolib: MonoLib 1.3.0
        moonlight: Moonlight 1.20-2.12.6
        more_armor_trims: More Armor Trims 1.3.1-1.20.1
        more_beautiful_torches: More Beautiful Torches! 3.0.0
        morebows: More Bows Restrung 1.0.11+1.20.x
        moretotems: More Totems 2.16.0
        mousetweaks: Mouse Tweaks 2.26
        mr_trident_craft: Trident Craft 1
        mythiclib: Mythic Lib 1.1.0+1.20.1
        mythicmetals: Mythic Metals 0.19.9+1.20.1
            additionalentityattributes: Additional Entity Attributes 1.7.3+1.20.0
            common-protection-api: Common Protection API 1.0.0
            reach-entity-attributes: Reach Entity Attributes 2.4.0
        mythicmetals_decorations: Mythic Metals Decorations 0.6.2+1.20.1
        mythicmounts: Mythic Mounts 1.20.1-7.4
        mythicupgrades: Mythic Upgrades 4.0.0+mc1.20.1
        naturalist: Naturalist 4.0.3
        naturescompass: Nature's Compass 1.20.1-2.2.3-fabric
        necronomicon: Necronomicon 1.4.2
        new_recipes: New Recipes 1.0.0
        oceansdelight: Ocean's Delight fdrf-fabric-1.0.2-1.20
        org_jetbrains_annotations: annotations 23.0.0
        origins: Origins 1.10.0
            apoli: Apoli 2.9.0
                calio: Calio 1.11.0
                playerabilitylib: Pal 1.8.0
        overhauledstructures: Epic Dungeons 0.1.4-Fabric-1.19-1.20.4
        owo: oωo 0.11.2+1.20
        patchouli: Patchouli 1.20.1-84-FABRIC
            fiber: fiber 0.23.0-2
        pehkui: Pehkui 3.8.3+1.14.4-1.21
            kanos_config: Kanos Config 0.4.1+1.14.4-1.19.4
        perfectplushies: Perfect Plushies 1.10.0
            perfectplushieapi: Perfect Plushie API 0.1.1
        plushies: Plushie Mod 1.4.0
        potioncraft: PotionCraft 0.4.1
        resourcefulconfig: Resourcefulconfig 2.1.2
        safros-mobs: Safro's Mobs 0.1.0
            saflib: SafLib 1.0.33
        skinlayers3d: 3d-Skin-Layers 1.6.6
        supermartijn642corelib: SuperMartijn642's Core Lib 1.1.17
        supplementaries: Supplementaries 1.20-2.8.17
            mixinextras: MixinExtras 0.3.6
            mixinsquared: MixinSquared 0.1.1
        t_and_t: Towns and Towers 1.12
        trashcans: Trash Cans 1.0.18
            team_reborn_energy: Energy 3.0.0
        trinkets: Trinkets 3.7.2
        universalcraft: UniversalCraft 342
        vigilance: Vigilance 297
        voicechat: Simple Voice Chat 1.20.1-2.5.18
        waypoint-mod: Waypoint Mod 1.0
        xaerominimap: Xaero's Minimap 24.2.0
        xaeroworldmap: Xaero's World Map 1.38.8
        yet_another_config_lib_v3: YetAnotherConfigLib 3.5.0+1.20.1-fabric
            com_twelvemonkeys_common_common-image: common-image 3.10.0
            com_twelvemonkeys_common_common-io: common-io 3.10.0
            com_twelvemonkeys_common_common-lang: common-lang 3.10.0
            com_twelvemonkeys_imageio_imageio-core: imageio-core 3.10.0
            com_twelvemonkeys_imageio_imageio-metadata: imageio-metadata 3.10.0
            com_twelvemonkeys_imageio_imageio-webp: imageio-webp 3.10.0
            org_quiltmc_parsers_gson: gson 0.2.1
            org_quiltmc_parsers_json: json 0.2.1
        yigd: You're in Grave Danger 2.0.0-beta.13
            fabric-permissions-api-v0: fabric-permissions-api 0.2-SNAPSHOT
            libgui: LibGui 8.1.1+1.20.1
                jankson: Jankson 6.0.0+j1.2.3
                libninepatch: LibNinePatch 1.2.0
    Launched Version: fabric-loader-0.15.11-1.20.1
    Backend library: LWJGL version 3.3.1 SNAPSHOT
    Backend API: Unknown
    Window size: <not initialized>
    GL Caps: Using framebuffer using OpenGL 3.2
    GL debug messages: <disabled>
    Using VBOs: Yes
    Is Modded: Definitely; Client brand changed to 'fabric'
    Type: Client (map_client.txt)
    CPU: <unknown>

Guest
This topic is now closed to further replies.

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.