Jump to content
View in the app

A better way to browse. Learn more.

Forge Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (โ‹ฎ) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Featured Replies

Posted

So this is more of a General Question as opposed to a "problem."ย 

I made my Dimension, I made my Biome(s), everything works its wonderful.

ย 

I want to spice up the Dimension abit and add my own music to it. I read something that 1.15.2 "didn't yet" implement that. It was a completely random source, and who knows how long ago it was. So I am curious to know if some type of method exists to set custom music to your entire Dimension. Or perhaps it is done on the Biome level with the builder? Any guidance/example/shove in the right direction is helpful. I imagine it isn't done with a ClientTickEvent anymore.

If you're talking about the background ambience, then that is still hardcoded in 1.15.2. A PR to forge is needed to expose the necessary fields to set the values.

  • Author
35 minutes ago, ChampionAsh5357 said:

If you're talking about the background ambience, then that is still hardcoded in 1.15.2. A PR to forge is needed to expose the necessary fields to set the values.

ย 

If indeed Background music (i.e. Creative mode music, survival mode music, "Overworld" (you know like the "calm1", "hal2" ย musicย etc.) is indeed part of the ambience then it would seem a ClientTickEvent still is indeed the way to go about it to accomplish that effect. I'm not in front of the code atm but I imagine there is a way to check if a sound is playing and if so stop it and then start a new one? As I imagine that would be the most effective way to handle that?

1 minute ago, HalestormXV said:

If indeed Background music (i.e. Creative mode music, survival mode music, "Overworld" (you know like the "calm1", "hal2" ย musicย etc.) is indeed part of the ambience then it would seem a ClientTickEvent still is indeed the way to go about it to accomplish that effect. I'm not in front of the code atm but I imagine there is a way to check if a sound is playing and if so stop it and then start a new one? As I imagine that would be the most effective way to handle that?

I would have suggested that. However, there is a slight issue. You would need to stop the soundย every time it's about to play which since it's not the same sound, you would need to stop all sounds. That would stop your sound as well causing random cuts in the ambience. This is why I suggested making a PR to whatever handles music in 1.15.2. I remember Mcjty mentioning it's an enum that needs to be extensible and probably a method hook to an event to handle when should it change.

  • Author
6 minutes ago, ChampionAsh5357 said:

I would have suggested that. However, there is a slight issue. You would need to stop the soundย every time it's about to play which since it's not the same sound, you would need to stop all sounds. That would stop your sound as well causing random cuts in the ambience. This is why I suggested making a PR to whatever handles music in 1.15.2. I remember Mcjty mentioning it's an enum that needs to be extensible and probably a method hook to an event to handle when should it change.

ย 

Noted. Alright thanks for the info.ย 

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...

Important Information

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

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions โ†’ Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.