Skip to content

Improve custom instrument support by fetching sound event list - #22

Open
Tisawesomeness wants to merge 1 commit into
gecolay:mainfrom
Tisawesomeness:feat/sound-events
Open

Improve custom instrument support by fetching sound event list#22
Tisawesomeness wants to merge 1 commit into
gecolay:mainfrom
Tisawesomeness:feat/sound-events

Conversation

@Tisawesomeness

Copy link
Copy Markdown
Contributor

Many custom instruments are defined as client-side sound paths, such as dig/sand1 (path in Minecraft assets sounds directory) or minecraft/dig/sand1 (default NBS import directory). However, servers do not have access to these sounds, only sound events such as minecraft:block.sand.break.

This PR (if enabled) fetches sounds.json for the current Minecraft version and uses it to convert client-side sound paths to server-side sound events, allowing many more custom instruments to be played without having to manually edit the files.

Client-side sound paths "minecraft/dig/sand1" or "dig/sand1" are converted to sound events "minecraft:block.sand.break" that can be played server-side
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant