90% of ad revenue goes to creators. Go ad-free while supporting creators with Modrinth Plus. Subscribe today!

Music Triggers

Changelog

  • Channels will now wait until all queued audio is loaded before checking triggers and attempting to play audio that may not have finished loaded yet
  • The config folder is no longer always assumed to exist
  • Fixed triggers with no audio assigned crashing the channels thread
  • Removed the manual stop for audio threads that are no longer in use which sometimes crashed the channels thread
  • Fixed a crash from null sounds trying to get played
  • Fixed the same song being able to play twice in a row for pools with more than 1 song in them
  • Cleaned up some logging
  • Fixed play_once not working
  • Fixed universal audio parameters not getting applied
  • Added a start_at parameter for songs that are seekable to control the millisecond position the song plays from without having to set a loop point
  • Fixed toggles not working
  • The detection_range parameter can now be applied to the pet trigger
  • Added some methods for other mods to hook into and add their own triggers and parameters
  • All trigger data now gets reloaded with the channels when reloading in game
  • Fixed the debug info not always respecting the width of the screen
  • Added the current entity ID to the debug info
  • Slightly enhanced overall performance
  • Fixed a crash with the home trigger
  • Implemented the pvp trigger
  • Added the class name of the current GUI to the debug info
  • Fixed the health parameter for the mob trigger
  • Fixed some inconsistencies in which mobs activate mob triggers
  • Fixed the check_above_level parameter for the height trigger
  • Reimplemented the victory trigger with the following changes:
    • The victory_id parameter attached to a mob or pvp trigger now references the identifier of the victory trigger rather than a number
    • The victory_id parameter is no longer needed for the victory trigger itself
    • Moved the victory_timeout parameter to the victory trigger
    • Added a victory_percentage parameter to the mob trigger to determine the percentage of mobs in relation to the level parameter that need to be killed for the referenced victory trigger to activate
    • Separate triggers referencing the same victory trigger are now calculated separately
    • Due to the mob and pvp triggers being server side triggers, the victory trigger is now also a server side trigger
  • Changed various debug parameters:
    • Merged the BLOCKED_MOD_MUSIC and BLOCKED_MOD_RECORDS into a single BLOCKED_MOD_CATEGORIES where sound categories can be dynamically referenced like "modid;category" where "music" is the default/fallback.
    • The Minecraft modid is now explicitly listed under BLOCKED_MOD_CATEGORIES as "minecraft;music" and can even be removed if that is desired
    • Added a BLOCK_STREAMING_ONLY parameter to determine whether BLOCKED_MOD_CATEGORIES can affect non streaming audio sources
    • Added an INTERRUPTED_AUDIO_CATEGORIES parameter for control as to which audio categories are stopped/paused in the vanilla sound system when Music Triggers starts playing new audio
  • Changed various channel info parameters:
    • Renamed the overrides_default_music parameter to overrides_default_audio
    • Added a pause_overrides parameter for determining whether currently playing audio gets stopped or paused during an override
    • Added an explicit_overrides parameter for determing whether overrides only apply to the category the channel is assigned to
  • Gui Changes:
    • Fixed the log visualizer screen not being able to display 2 identical log entries
    • Fixed the screen position of entries in the log visualizer screen taking other entries below the minimum LOG_LEVEL debug parameter into account
    • Added some missing lang keys in the screen where you type the channel name
    • Added an error for channel names having spaces
    • Added hover information for when conditions are added to toggles
    • Added click sounds to the normal button types
    • Fixed delete mode not working in the channel selection screen
  • Fixed channel sound categories always being set to music

Files

musictriggers-1.18.2-6.2.jar(11.62 MiB) Primary Download

Project members

The_Computerizer

Owner

Details

Licensed MIT
Published 2 years ago
Updated a year ago