[1.16.x] Item Property Override in Tick Method
-
Recently Browsing
- No registered users viewing this page.
-
Posts
-
By TileEntity · Posted
Try to install this modpack with another Launcher like MultiMC or AT Launcher Or make a test with a pre-configured modpack and use this as working base - then add new mods one by one -
By Supersaver · Posted
Hi everyone, I’m working on a Minecraft mod and encountering an issue with a custom sound not playing when triggered. Here’s the setup: Problem: * A custom sound (killstreak_music) should play when a milestone (5 kills) is reached, but it doesn’t trigger in-game. * The .ogg file is in the correct directory (assets/killstreaksword/sounds/) and registered in sounds.json. sounds.json: { "killstreak_music": { "sounds": ["Finale.ogg"] } } The .ogg file plays fine in other media players, but the /playsound command doesn’t detect it. What I’ve Tried: * Confirmed file path and name match exactly. * Reloaded resources (F3 + T) and re-exported the file using Audacity. * Added debug logs to my code to verify if the sound event is being retrieved. Here’s the relevant part of my code where I attempt to play the sound: private static final ResourceLocation SOUND_LOCATION = ResourceLocation.fromNamespaceAndPath("killstreaksword", "killstreak_music"); private void playKillstreakMusic(Level world, Player player) { SoundEvent soundEvent = ForgeRegistries.SOUND_EVENTS.getValue(SOUND_LOCATION); if (soundEvent == null) { System.out.println("Sound event not found: " + SOUND_LOCATION); } else { world.playSound(null, player.getX(), player.getY(), player.getZ(), soundEvent, SoundSource.PLAYERS, 1.0F, 1.0F); } } Could this be a file encoding or registration issue? Are there additional steps I’m missing to ensure Minecraft detects the sound? Any guidance or suggestions would be greatly appreciated. Thanks in advance! -
Yes it was the full log. I didnt remove or add anything and did just what you recommended me with AT launcher and it doesnt work still. It has the same problem. I attatched the log.
-
By Sushi_Dog28 · Posted
When I open a world, it works fine. It only crashes when I place a create block down. It also crashes when I try to reopen the world that crashes. I already tried to reset the graphics drivers.
-
-
Topics
-
Who's Online (See full list)
Recommended Posts
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.