Skip to content

Manual Resource Data Pack Creation

Gili Barlev edited this page Oct 19, 2024 · 1 revision

FoxNap's item and sound registration structure was designed to make it as easy as possible for you to replace or add to the mod's built-in tracks via a resource pack similar to what you'd make if you were replacing one of the vanilla discs, with the advantage that the number of discs provided by the mod is completely dynamic and can be set or changed simply by going into your instance's mod config folder, opening foxnap.yaml in any plaintext editor and changing the value of n_discs.

From there, if you're used to vanilla disc replacement resource packs, the differences will be:

  • instead of assets/minecraft, all your files should be in assets/foxnap
  • the ids of the sound files you'll be replacing (in assets/foxnap/sounds.json) will be foxnap:track_1, foxnap:track_2, etc. all the way up to the number n_discs you set in the foxnap.yaml config file stored in your instance's mod config folder.
  • to set or replace the record textures, you'll need to create files named track_1.json, track_2.json, etc. within assets/foxnap/models/item
  • when changing the names of the tracks to display, you'll need to edit assets/foxnap/lang/en_us.json and refer to the language entries as item.foxnap.track_1 / item.foxnap.track_1.desc, item.foxnap.track_2 / item.foxnap.track_2.desc, etc.
  • you'll also likely need to create a custom datapack with files in a data/foxnap/jukebox_songs folder that set the track lengths and comparator outputs for each track you're overwriting.
Clone this wiki locally