Fire_Blaim Posted April 17, 2023 Posted April 17, 2023 Hello, I'm addressing all the members of this forum because I wanted to adapt my mod based on Minecraft 1.8.9 which uses the class net.minecraft.client.audio.MovingSound but I see that it doesn't exist anymore. I read the documentation made by the Forge team but there are many functions with the same name and it confuses me... Any idea ? Thanks in advance and sorry to disturb everyone Quote
warjort Posted April 17, 2023 Posted April 17, 2023 (edited) https://forge.gemwire.uk/wiki/Sounds I believe the official Mojang name for what forge used to call MovingSound is AbstractTickableSoundInstance? Using a custom SoundInstance usually means taking greater control over how your sound plays than using SoundEvents. e.g. using Minecraft.getInstance().getSoundManager().play(...) a concrete example would be the ElytraOnPlayerSoundInstance usage in the LocalPlayer class. I've heard there is a bot on forge's discord you can use to get the modern Mojmap names for old forge names? But I think it is more focused on migration from 1.16.x? https://gist.github.com/50ap5ud5/beebcf056cbdd3c922cc8993689428f4#full-migration-to-mojang-mappings Edited April 17, 2023 by warjort Quote 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.
Fire_Blaim Posted April 17, 2023 Author Posted April 17, 2023 AbstractTickableSoundInstance is the class I was looking for. Thanks a lot for your help Quote
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.