text
stringlengths
0
1.13k
Similar to the redirect config, you can define a song by doing name = songName, where name is the name you want to assign to the song, and songName is the actual file name in the case of local songs, or the name from the redirect config in the case of redirected songs. Whatever you set the name to here is how you will reference the sound in other places.
Songs defined by the jukebox config also have built in support for custom display names and music disc texture, though both can only be added via a resource pack.
Custom Display Names
For display names, you can add a language file in your resource pack under assets/musictriggers/lang and name it en_us.lang if you are on 1.12.2 or en_us.json if you are on a modern version of the game. Alternatively for other languages, you can see the valid language codes here.
In the language file, you can set your display name like this if you are on 1.12.2
musictriggers.record.name=Custom Display Name
or like this if you are on a modern version
{
"musictriggers.record.name": "Custom Display Name"
}
where name refers to the name you set in your config file.
Custom Disc Textures
Custom disc textures are a bit more involved, but [WIP SECTION]
Triggers
Index
There are 49 different triggers that can be set and 46 different parameters that can be attached to the various triggers. Different triggers accept and require different parameters.
Parameters
Index
Some parameters have different functions in different triggers, but below is a general rundown for all of them. If a parameter acts different for a specific trigger, it will be outlined under that trigger. Note that in the case of trigger combinations, parameters are generally taken from the highest priority trigger in the combination. The accepted parameters are priority, identifier, fade_in, fade_out, trigger_delay, song_delay, level, persistence, start_delay, time_bundle, start_hour, end_hour, lowest_day_number, highest_day_number, zone_min_x, zone_max_x, zone_min_y, zone_max_y, zone_min_z, zone_max_z, resource_name, start_toggled, not, passive_persistence, toggle_inactive_playable, detection_range, mob_targeting, health, horde_targeting_percentage, horde_health_percentage, mob_nbt, infernal, champion, victory_id, victory_timeout, moon_phase, light_type, is_whitelist, biome_category, rain_type, biome_temperature, check_lower_temp, biome_rainfall, check_higher_rainfall, check_for_sky, check_above_level, slots, items, max_tracks, detection_y_ratio, toggle_save_status, and stop_delay. Here are what those do:
priority: The numerical priority of a trigger. In the case of multiple triggers being able to play at once, the
highest priority wins, unless REVERSE_PRIORITY is enabled.
identifier: A unique string used for setting an instance of a trigger holder. See the Trigger Holder section for
more information. This can be shortened to id in the config and it will still work the same.
fade_in: The number of ticks it takes the first song of the trigger to fade in.
fade_out: The number of ticks it takes the currently playing song to fade out when the trigger is no longer active.
trigger_delay: The number of ticks it takes for a song to start playing when the trigger becomes active.
song_delay: The number of ticks it takes for a song to start playing after a song within the same pool finishes.
level: This one depends on the trigger, but is generally self explanatory. It will be explained more in depth for
the triggers that use it.
persistence: The number of ticks a trigger will be active for after its parameters are no longer met.
start_delay: The number of ticks it takes for a trigger to be active for after its parameters are met.
time_bundle: See the time trigger.
start_hour: See the time trigger.
end_hour: See the time trigger.
lowest_day_number: See the time trigger.
highest_day_number: See the time trigger.
zone_min_x: See the zones trigger.
zone_max_x: See the zones trigger.
zone_min_y: See the zones trigger.
zone_max_y: See the zones trigger.
zone_min_z: See the zones trigger.
zone_max_z: See the zones trigger.
resource_name: A list of strings used for anything that needs to access a registry. It will be explained more in
depth for the triggers that use it.
start_toggled: Sets whether the trigger will start toggled on or off. See the Toggles section for more
information.
not: Inverts the parameters so that the trigger is only active when they are not all met.
passive_persistence: Determines whether triggers that are playable but not active will have their persistence
timers get reset.
toggle_inactive_playable: Determines if triggers that are playable but not active get toggled off
detection_range: The range in blocks a triggers that uses it will check. It will be explained more in depth for
the triggers that use it.
mob_targeting: See the mob trigger.
health: See the mob trigger.
horde_targeting_percentage: See the mob trigger.
horde_health_percentage: See the mob trigger.
mob_nbt: See the mob trigger.