Jump to content

Recommended Posts

Posted

Description: Exception in server tick loop

java.lang.NoSuchFieldError: inventory
    at snownee.jade.addon.create.ContraptionProvider.appendServerData(ContraptionProvider.java:36) ~[JadeAddons-1.18.2-2.0.0.jar%2389!/:2.0.0] {re:classloading}
    at snownee.jade.addon.create.ContraptionProvider.appendServerData(ContraptionProvider.java:20) ~[JadeAddons-1.18.2-2.0.0.jar%2389!/:2.0.0] {re:classloading}
    at mcp.mobius.waila.network.RequestEntityPacket$Handler.lambda$onMessage$0(RequestEntityPacket.java:57) ~[%5B玉%20🔍%5D%20Jade-1.18.2-forge-5.2.1.jar%2372!/:5.2.1] {re:classloading}
    at net.minecraftforge.network.NetworkEvent$Context.enqueueWork(NetworkEvent.java:213) ~[forge-1.18.2-40.1.51-universal.jar%23100!/:?] {re:classloading}
    at mcp.mobius.waila.network.RequestEntityPacket$Handler.onMessage(RequestEntityPacket.java:43) ~[%5B玉%20🔍%5D%20Jade-1.18.2-forge-5.2.1.jar%2372!/:5.2.1] {re:classloading}
    at net.minecraftforge.network.simple.IndexedMessageCodec.lambda$tryDecode$3(IndexedMessageCodec.java:115) ~[forge-1.18.2-40.1.51-universal.jar%23100!/:?] {re:classloading}
    at java.util.Optional.ifPresent(Optional.java:178) ~[?:?] {re:mixin}
    at net.minecraftforge.network.simple.IndexedMessageCodec.tryDecode(IndexedMessageCodec.java:115) ~[forge-1.18.2-40.1.51-universal.jar%23100!/:?] {re:classloading}
    at net.minecraftforge.network.simple.IndexedMessageCodec.consume(IndexedMessageCodec.java:153) ~[forge-1.18.2-40.1.51-universal.jar%23100!/:?] {re:classloading}
    at net.minecraftforge.network.simple.SimpleChannel.networkEventListener(SimpleChannel.java:72) ~[forge-1.18.2-40.1.51-universal.jar%23100!/:?] {re:classloading}
    at net.minecraftforge.eventbus.EventBus.doCastFilter(EventBus.java:247) ~[eventbus-5.0.3.jar%232!/:?] {}
    at net.minecraftforge.eventbus.EventBus.lambda$addListener$11(EventBus.java:239) ~[eventbus-5.0.3.jar%232!/:?] {}
    at net.minecraftforge.eventbus.EventBus.post(EventBus.java:302) ~[eventbus-5.0.3.jar%232!/:?] {}
    at net.minecraftforge.eventbus.EventBus.post(EventBus.java:283) ~[eventbus-5.0.3.jar%232!/:?] {}
    at net.minecraftforge.network.NetworkInstance.dispatch(NetworkInstance.java:68) ~[forge-1.18.2-40.1.51-universal.jar%23100!/:?] {re:classloading}
    at net.minecraftforge.network.NetworkHooks.lambda$onCustomPayload$1(NetworkHooks.java:78) ~[forge-1.18.2-40.1.51-universal.jar%23100!/:?] {re:classloading}
    at java.util.Optional.map(Optional.java:260) ~[?:?] {re:mixin}
    at net.minecraftforge.network.NetworkHooks.onCustomPayload(NetworkHooks.java:78) ~[forge-1.18.2-40.1.51-universal.jar%23100!/:?] {re:classloading}
    at net.minecraft.server.network.ServerGamePacketListenerImpl.m_7423_(ServerGamePacketListenerImpl.java:1440) ~[client-1.18.2-20220404.173914-srg.jar%2395!/:?] {re:classloading,pl:accesstransformer:B}
    at net.minecraft.network.protocol.game.ServerboundCustomPayloadPacket.m_5797_(ServerboundCustomPayloadPacket.java:35) ~[client-1.18.2-20220404.173914-srg.jar%2395!/:?] {re:classloading}
    at net.minecraft.network.protocol.game.ServerboundCustomPayloadPacket.m_5797_(ServerboundCustomPayloadPacket.java:8) ~[client-1.18.2-20220404.173914-srg.jar%2395!/:?] {re:classloading}
    at net.minecraft.network.protocol.PacketUtils.m_131356_(PacketUtils.java:22) ~[client-1.18.2-20220404.173914-srg.jar%2395!/:?] {re:classloading}
    at net.minecraft.server.TickTask.run(TickTask.java:18) ~[client-1.18.2-20220404.173914-srg.jar%2395!/:?] {re:classloading}
    at net.minecraft.util.thread.BlockableEventLoop.m_6367_(BlockableEventLoop.java:157) ~[client-1.18.2-20220404.173914-srg.jar%2395!/:?] {re:mixin,pl:accesstransformer:B,re:computing_frames,pl:accesstransformer:B,re:classloading,pl:accesstransformer:B}
    at net.minecraft.util.thread.ReentrantBlockableEventLoop.m_6367_(ReentrantBlockableEventLoop.java:23) ~[client-1.18.2-20220404.173914-srg.jar%2395!/:?] {re:mixin,re:computing_frames,re:classloading}
    at net.minecraft.server.MinecraftServer.m_6367_(MinecraftServer.java:799) ~[client-1.18.2-20220404.173914-srg.jar%2395!/:?] {re:mixin,pl:accesstransformer:B,re:classloading,pl:accesstransformer:B,pl:mixin:A}
    at net.minecraft.server.MinecraftServer.m_6367_(MinecraftServer.java:164) ~[client-1.18.2-20220404.173914-srg.jar%2395!/:?] {re:mixin,pl:accesstransformer:B,re:classloading,pl:accesstransformer:B,pl:mixin:A}
    at net.minecraft.util.thread.BlockableEventLoop.m_7245_(BlockableEventLoop.java:131) ~[client-1.18.2-20220404.173914-srg.jar%2395!/:?] {re:mixin,pl:accesstransformer:B,re:computing_frames,pl:accesstransformer:B,re:classloading,pl:accesstransformer:B}
    at net.minecraft.server.MinecraftServer.m_129961_(MinecraftServer.java:782) ~[client-1.18.2-20220404.173914-srg.jar%2395!/:?] {re:mixin,pl:accesstransformer:B,re:classloading,pl:accesstransformer:B,pl:mixin:A}
    at net.minecraft.server.MinecraftServer.m_7245_(MinecraftServer.java:776) ~[client-1.18.2-20220404.173914-srg.jar%2395!/:?] {re:mixin,pl:accesstransformer:B,re:classloading,pl:accesstransformer:B,pl:mixin:A}
    at net.minecraft.util.thread.BlockableEventLoop.m_18701_(BlockableEventLoop.java:140) ~[client-1.18.2-20220404.173914-srg.jar%2395!/:?] {re:mixin,pl:accesstransformer:B,re:computing_frames,pl:accesstransformer:B,re:classloading,pl:accesstransformer:B}
    at net.minecraft.server.MinecraftServer.m_130012_(MinecraftServer.java:762) ~[client-1.18.2-20220404.173914-srg.jar%2395!/:?] {re:mixin,pl:accesstransformer:B,re:classloading,pl:accesstransformer:B,pl:mixin:A}
    at net.minecraft.server.MinecraftServer.m_130011_(MinecraftServer.java:689) ~[client-1.18.2-20220404.173914-srg.jar%2395!/:?] {re:mixin,pl:accesstransformer:B,re:classloading,pl:accesstransformer:B,pl:mixin:A}
    at net.minecraft.server.MinecraftServer.m_177918_(MinecraftServer.java:261) ~[client-1.18.2-20220404.173914-srg.jar%2395!/:?] {re:mixin,pl:accesstransformer:B,re:classloading,pl:accesstransformer:B,pl:mixin:A}
    at java.lang.Thread.run(Thread.java:833) [?:?] {}


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

-- System Details --
Details:
    Minecraft Version: 1.18.2
    Minecraft Version ID: 1.18.2
    Operating System: Windows 10 (amd64) version 10.0
    Java Version: 17.0.1, Microsoft
    Java VM Version: OpenJDK 64-Bit Server VM (mixed mode), Microsoft
    Memory: 602033864 bytes (574 MiB) / 2147483648 bytes (2048 MiB) up to 2147483648 bytes (2048 MiB)
    CPUs: 8
    Processor Vendor: GenuineIntel
    Processor Name: 11th Gen Intel(R) Core(TM) i5-11300H @ 3.10GHz
    Identifier: Intel64 Family 6 Model 140 Stepping 1
    Microarchitecture: Tiger Lake
    Frequency (GHz): 3.11
    Number of physical packages: 1
    Number of physical CPUs: 4
    Number of logical CPUs: 8
    Graphics card #0 name: NVIDIA GeForce MX450
    Graphics card #0 vendor: NVIDIA (0x10de)
    Graphics card #0 VRAM (MB): 2048.00
    Graphics card #0 deviceId: 0x1f97
    Graphics card #0 versionInfo: DriverVersion=30.0.14.7180
    Graphics card #1 name: Intel(R) Iris(R) Xe Graphics
    Graphics card #1 vendor: Intel Corporation (0x8086)
    Graphics card #1 VRAM (MB): 1024.00
    Graphics card #1 deviceId: 0x9a49
    Graphics card #1 versionInfo: DriverVersion=27.20.100.9030
    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
    Virtual memory max (MB): 25956.85
    Virtual memory used (MB): 22847.00
    Swap memory total (MB): 9773.54
    Swap memory used (MB): 1155.18
    JVM Flags: 9 total; -XX:HeapDumpPath=MojangTricksIntelDriversForPerformance_javaw.exe_minecraft.exe.heapdump -Xss1M -Xmx2G -XX:+UnlockExperimentalVMOptions -XX:+UseG1GC -XX:G1NewSizePercent=20 -XX:G1ReservePercent=20 -XX:MaxGCPauseMillis=50 -XX:G1HeapRegionSize=32M
    Server Running: true
    Player Count: 1 / 8; [ServerPlayer['Jimmy_Leo'/1, l='ServerLevel[新的世界]', x=-2.29, y=-58.59, z=11.77]]
    Data Packs: vanilla, mod:farmersdelight (incompatible), mod:quarkoddities (incompatible), mod:enchdesc (incompatible), mod:betterdungeons, mod:avaritia (incompatible), mod:aiotbotania, mod:jade, mod:jei (incompatible), mod:botania (incompatible), mod:nethersdelight (incompatible), mod:easy_villagers (incompatible), mod:jeiintegration (incompatible), mod:modnametooltip (incompatible), mod:flywheel (incompatible), mod:curios (incompatible), mod:patchouli (incompatible), mod:create, mod:blockui (incompatible), mod:neat (incompatible), mod:waystones (incompatible), mod:xaerominimap, mod:xaeroworldmap, mod:citadel (incompatible), mod:alexsmobs (incompatible), mod:autoreglib (incompatible), mod:oreexcavation, mod:travelersbackpack (incompatible), mod:yungsapi, mod:inventoryhud (incompatible), mod:betterstrongholds, mod:bookshelf, mod:create_confectionery, mod:ore_tree (incompatible), mod:cfm, mod:balm (incompatible), mod:jadeaddons (incompatible), mod:forge, mod:quark (incompatible), mod:appleskin (incompatible), mod:bettermineshafts, mod:twilightforest (incompatible), mod:corpse (incompatible), mod:infernalmobs (incompatible), mod:craftingtweaks (incompatible)
    World Generation: Experimental
    Type: Integrated Server (map_client.txt)
    Is Modded: Definitely; Client brand changed to 'forge'; Server brand changed to 'forge'
    ModLauncher: 9.1.3+9.1.3+main.9b69c82a
    ModLauncher launch target: forgeclient
    ModLauncher naming: srg
    ModLauncher services: 
         mixin PLUGINSERVICE 
         eventbus PLUGINSERVICE 
         slf4jfixer PLUGINSERVICE 
         object_holder_definalize PLUGINSERVICE 
         runtime_enum_extender PLUGINSERVICE 
         capability_token_subclass PLUGINSERVICE 
         accesstransformer PLUGINSERVICE 
         runtimedistcleaner PLUGINSERVICE 
         mixin TRANSFORMATIONSERVICE 
         fml TRANSFORMATIONSERVICE 
    FML Language Providers: 
        minecraft@1.0
        lowcodefml@null
        javafml@null
    Mod List: 
        client-1.18.2-20220404.173914-srg.jar             |Minecraft                     |minecraft                     |1.18.2              |DONE      |Manifest: a1:d4:5e:04:4f:d3:d6:e0:7b:37:97:cf:77:b0:de:ad:4a:47:ce:8c:96:49:5f:0a:cf:8c:ae:b2:6d:4b:8a:3f
        FarmersDelight-1.18.2-1.1.2.jar                   |Farmer's Delight              |farmersdelight                |1.18.2-1.1.2        |DONE      |Manifest: NOSIGNATURE
        [夸克-奇思妙想] QuarkOddities-1.18.jar                  |Quark Oddities                |quarkoddities                 |1.18                |DONE      |Manifest: NOSIGNATURE
        [附魔描述] EnchantmentDescriptions-Forge-1.18.2-10.0.4|EnchantmentDescriptions       |enchdesc                      |10.0.4              |DONE      |Manifest: eb:c4:b1:67:8b:f9:0c:db:dc:4f:01:b1:8e:61:64:39:4c:10:85:0b:a6:c4:c7:48:f0:fa:95:f2:cb:08:3a:e5
        [YUNG的地牢优化] YungsBetterDungeons-1.18.2-Forge-2.1.0|YUNG's Better Dungeons        |betterdungeons                |1.18.2-Forge-2.1.0  |DONE      |Manifest: NOSIGNATURE
        [无尽贪婪:重铸] Avaritia-Reforged-forge-1.18.2-1.1.0-uni|Avaritia-Reforged             |avaritia                      |1.18.2-1.1.0        |DONE      |Manifest: NOSIGNATURE
        [植物魔法全能工具] AIOTBotania-1.18.2-2.1.1.jar           |AIOT Botania                  |aiotbotania                   |1.18.2-2.1.1        |DONE      |Manifest: NOSIGNATURE
        [玉 🔍] Jade-1.18.2-forge-5.2.1.jar                |Jade                          |jade                          |5.2.1               |DONE      |Manifest: NOSIGNATURE
        [JEI物品管理器] jei-1.18.2-forge-10.1.0.202.jar        |Just Enough Items             |jei                           |10.1.0.202          |DONE      |Manifest: NOSIGNATURE
        Botania-1.18.2-433.jar                            |Botania                       |botania                       |1.18.2-433          |DONE      |Manifest: NOSIGNATURE
        [下界乐事] NethersDelight-1.18.2-2.2.0.jar            |Nethers Delight               |nethersdelight                |2.2                 |DONE      |Manifest: NOSIGNATURE
        [村民物品化/简单村民] easy_villagers-1.18.2-1.0.10.jar     |Easy Villagers                |easy_villagers                |1.18.2-1.0.10       |DONE      |Manifest: NOSIGNATURE
        [JEI扩展] jeiintegration_1.18.2-9.0.0.37.jar        |JEI Integration               |jeiintegration                |9.0.0.37            |DONE      |Manifest: NOSIGNATURE
        [模组名称显示] modnametooltip-1.18.1-1.18.0.jar         |Mod Name Tooltip              |modnametooltip                |1.18.0              |DONE      |Manifest: NOSIGNATURE
        flywheel-forge-1.18-0.6.4.jar                     |Flywheel                      |flywheel                      |1.18-0.6.4.87       |DONE      |Manifest: NOSIGNATURE
        curios-forge-1.18.2-5.0.7.0.jar                   |Curios API                    |curios                        |1.18.2-5.0.7.0      |DONE      |Manifest: NOSIGNATURE
        Patchouli-1.18.2-70.jar                           |Patchouli                     |patchouli                     |1.18.2-70           |DONE      |Manifest: NOSIGNATURE
        create-mc1.18.2_v0.5.0c.jar                       |Create                        |create                        |0.5.0c              |DONE      |Manifest: NOSIGNATURE
        blockui-1.18.2-0.0.48-ALPHA.jar                   |UI Library Mod                |blockui                       |1.18.2-0.0.48-ALPHA |DONE      |Manifest: NOSIGNATURE
        [极简血量显示] Neat 1.8-30.jar                          |Neat                          |neat                          |1.8-30              |DONE      |Manifest: NOSIGNATURE
        waystones-forge-1.18.2-10.1.0.jar                 |Waystones                     |waystones                     |10.1.0              |DONE      |Manifest: NOSIGNATURE
        [Xaero的小地图] Xaeros_Minimap_22.9.3_Forge_1.18.2.jar|Xaero's Minimap               |xaerominimap                  |22.9.3              |DONE      |Manifest: NOSIGNATURE
        [Xaero的世界地图] XaerosWorldMap_1.23.3_Forge_1.18.2.ja|Xaero's World Map             |xaeroworldmap                 |1.23.3              |DONE      |Manifest: NOSIGNATURE
        citadel-1.11.3-1.18.2.jar                         |Citadel                       |citadel                       |1.11.3              |DONE      |Manifest: NOSIGNATURE
        [Alex的生物] alexsmobs-1.18.6.jar                    |Alex's Mobs                   |alexsmobs                     |1.18.6              |DONE      |Manifest: NOSIGNATURE
        AutoRegLib-1.7-53.jar                             |AutoRegLib                    |autoreglib                    |1.7-53              |DONE      |Manifest: NOSIGNATURE
        [矿石挖掘] OreExcavation-1.10.162.jar                 |OreExcavation                 |oreexcavation                 |1.10.162            |DONE      |Manifest: NOSIGNATURE
        [旅行者背包] TravelersBackpack-1.18.2-7.1.1.jar        |Traveler's Backpack           |travelersbackpack             |7.1.1               |DONE      |Manifest: NOSIGNATURE
        YungsApi-1.18.2-Forge-2.0.8.jar                   |YUNG's API                    |yungsapi                      |1.18.2-Forge-2.0.8  |DONE      |Manifest: NOSIGNATURE
        [物品栏HUD+] InventoryHud_[1.18].forge-3.4.4.jar     |Inventory HUD+(Forge edition) |inventoryhud                  |3.4.4               |DONE      |Manifest: NOSIGNATURE
        YungsBetterStrongholds-1.18.2-Forge-2.1.1.jar     |YUNG's Better Strongholds     |betterstrongholds             |1.18.2-Forge-2.1.1  |DONE      |Manifest: NOSIGNATURE
        Bookshelf-Forge-1.18.2-13.2.21.jar                |Bookshelf                     |bookshelf                     |13.2.21             |DONE      |Manifest: eb:c4:b1:67:8b:f9:0c:db:dc:4f:01:b1:8e:61:64:39:4c:10:85:0b:a6:c4:c7:48:f0:fa:95:f2:cb:08:3a:e5
        [机械动力甜食] create-confectionery1.18.2_v1.0.8.jar    |Create Confectionery          |create_confectionery          |1.0.8               |DONE      |Manifest: NOSIGNATURE
        [矿物树:重制] OreTree-1.18.2-0.2.5.1.jar               |Ore Tree                      |ore_tree                      |0.2.5.1             |DONE      |Manifest: NOSIGNATURE
        [MrCrayfish 的家具] cfm-7.0.0-pre29-1.18.2.jar       |MrCrayfish's Furniture Mod    |cfm                           |7.0.0-pre29         |DONE      |Manifest: NOSIGNATURE
        balm-3.1.0+0.jar                                  |Balm                          |balm                          |3.1.0+0             |DONE      |Manifest: NOSIGNATURE
        JadeAddons-1.18.2-2.0.0.jar                       |Jade Addons                   |jadeaddons                    |2.0.0               |DONE      |Manifest: NOSIGNATURE
        forge-1.18.2-40.1.51-universal.jar                |Forge                         |forge                         |40.1.51             |DONE      |Manifest: 84:ce:76:e8:45:35:e4:0e:63:86:df:47:59:80:0f:67:6c:c1:5f:6e:5f:4d:b3:54:47:1a:9f:7f:ed:5e:f2:90
        [夸克] Quark-3.2-357.jar                            |Quark                         |quark                         |3.2-357             |DONE      |Manifest: NOSIGNATURE
        [苹果皮] appleskin-forge-mc1.18-2.4.0.jar            |AppleSkin                     |appleskin                     |2.4.0+mc1.18        |DONE      |Manifest: NOSIGNATURE
        YungsBetterMineshafts-1.18.2-Forge-2.1.3.jar      |YUNG's Better Mineshafts      |bettermineshafts              |1.18.2-Forge-2.1.3  |DONE      |Manifest: NOSIGNATURE
        [暮色森林] twilightforest-1.18.2-4.1.1102-universal.ja|The Twilight Forest           |twilightforest                |4.1.1102            |DONE      |Manifest: NOSIGNATURE
        [遗体] corpse-1.18.2-1.0.2.jar                      |Corpse                        |corpse                        |1.18.2-1.0.2        |DONE      |Manifest: NOSIGNATURE
        [稀有精英怪] infernalmobs-1.18.5.jar                   |Infernal Mobs                 |infernalmobs                  |1.18.5              |DONE      |Manifest: NOSIGNATURE
        [合成辅助] craftingtweaks-forge-1.18.2-14.0.3.jar     |CraftingTweaks                |craftingtweaks                |14.0.3              |DONE      |Manifest: NOSIGNATURE
    Flywheel Backend: GL33 Instanced Arrays
    Crash Report UUID: 6630c276-324e-4070-b81b-aceb29e93ffe
    FML: 40.1
    Forge: net.minecraftforge:40.1.51

Posted
java.lang.NoSuchFieldError: inventory
    at snownee.jade.addon.create.ContraptionProvider.appendServerData(ContraptionProvider.java:36) ~[JadeAddons-1.18.2-2.0.0.jar%2389!/:2.0.0] {re:classloading}
    at snownee.jade.addon.create.ContraptionProvider.appendServerData(ContraptionProvider.java:20) ~[JadeAddons-1.18.2-2.0.0.jar%2389!/:2.0.0] {re:classloading}
    at mcp.mobius.waila.network.RequestEntityPacket$Handler.lambda$onMessage$0(RequestEntityPacket.java:57) ~[%5B玉%20🔍%5D%20Jade-1.18.2-forge-5.2.1.jar%2372!/:5.2.1]

Issue with jade addons, make sure you have the latest version then contact the mod author.

Boilerplate:

If you don't post your logs/debug.log we can't help you. For curseforge you need to enable the forge debug.log in its minecraft settings. You should also post your crash report if you have one.

If there is no error in the log file and you don't have a crash report then post the launcher_log.txt from the minecraft folder. Again for curseforge this will be in your curseforge/minecraft/Install

Large files should be posted to a file sharing site like https://gist.github.com  You should also read the support forum sticky post.

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

    • Make a test with another Launcher like the Curseforge Launcher, MultiMC or AT Launcher
    • can anyone help me i am opening forge and add modpacks and then it says unable to update native luancher and i redownlaod java and the luancher it self?
    • The problem occurs also in 1.20.1 Forge, but with an "Error executing task on client" instead. I have "Sinytra Connector" installed. On 1.21.5 Fabric, there is no problem. When this happens, the chat message before the death screen appears gets sent, with an extra dash added.
    • Well, as usual, it was user error. Naming mismatch in sounds.json.  Please delete this post if you find it necessary. 
    • Hello Forge community.  I'm running into an issue with a mod I'm working on.  To preface, I can call /playsound modId:name music @a and I can hear the sound I registered being played in game. Great!  However, I cannot get it to trigger via my mod code.    Registration: public static final RegistryObject<SoundEvent> A_WORLD_OF_MADNESS = SOUND_EVENTS.register("a_world_of_madness", () -> new SoundEvent(new ResourceLocation("tetheredsouls", "a_world_of_madness")));   Playback: Minecraft mc = Minecraft.getInstance(); if (!(mc.player instanceof LocalPlayer) || mc.level == null) return; LocalPlayer player = (LocalPlayer) mc.player; BlockPos pos = player.blockPosition(); SoundEvent track = ModSounds.A_WORLD_OF_MADNESS.get(); System.out.println(track); System.out.println(pos); System.out.println(player); // play exactly like the tutorial: client-only, at the player's position try { mc.level.playLocalSound( player.getX(), player.getY(), player.getZ(), track, SoundSource.MUSIC, // Or MASTER if needed 1f, 1f, false ); System.out.println("[DEBUG] playSound success: " + track.getLocation()); } catch (Exception e) { System.err.println("[ERROR] Failed to play sound: " + track.getLocation()); e.printStackTrace(); } Sounds.json:   { "theme_of_laura": { "category": "music", "sounds": [ { "name": "tetheredsouls:a_world_of_madness", "stream": true } ] } } Things I have tried: - multiple .ogg files. Short .ogg files (5 seconds, <100KB).  - default minecraft sounds imported from import net.minecraft.sounds.SoundEvents; These work given my code. No idea why these are different.  - playSound() method, as well as several others in past iterations that did not work   I would be forever grateful if somebody could point me in the right direction. I've looked at several mod github repositories and found extremely similar code to what I'm doing. I've also found several threads in this forum that did not solve my issue. I just cannot figure out what I'm doing differently, and why I'm able to queue sounds manually with playsound but the code won't play it (despite confirming the code is being run with the debug statements.)
  • Topics

×
×
  • Create New...

Important Information

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