OpenBagTwo / FoxNap

A survival-, multiplayer- and copyright-friendly mod for adding custom music discs to your world
GNU General Public License v3.0
1 stars 1 forks source link

Datapack / Resourcepack only FoxNap #55

Closed OpenBagTwo closed 2 weeks ago

OpenBagTwo commented 1 month ago

Beginning with Minecraft version 24w21a / datapack version 45, it is now possible to add custom music discs without mods.

1.21+ versions of Fox Nap should adopt this data-driven specification (likely removing much of the need for foxnap.yaml) and allow the use of these packs in Vanilla Minecraft, without the use of the mod (whether villager professions and trade pools can be similarly data-driven, I'm not sure, but this seems like a good time to prioritize #16).

OpenBagTwo commented 2 weeks ago

Since it doesn't appear possible to add jukebox songs dynamically, going the datapack route is the only viable option. The one thing that won't be included in the data + resource packs out of the box will be a way to obtain music discs pointing to these jukebox songs short of commands (that should go in #16).

OpenBagTwo commented 2 weeks ago

Documenting this here for reference:

give @s minecraft:golden_apple[jukebox_playable={song:"foxnap:track_62"}]

Along with citations: