generated from FabricMC/fabric-example-mod
-
Notifications
You must be signed in to change notification settings - Fork 1
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 inassets/foxnap
- the ids of the sound files you'll be replacing (in
assets/foxnap/sounds.json
) will befoxnap:track_1
,foxnap:track_2
, etc. all the way up to the numbern_discs
you set in thefoxnap.yaml
config file stored in your instance's modconfig
folder. - to set or replace the record textures, you'll need to create files named
track_1.json
,track_2.json
, etc. withinassets/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 asitem.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.