Description:

A mod that provides a set of free sounds & methods. It is intended as a more universal method for adding sounds to games than depending on MTG & default for sounds only.

As of right now, only sounds from default mod have been added.

Licensing:

  • Code: MIT
  • Icon/Screenshot: CC0
  • Media: multiple (see README)

Usage:

If your mod depends on default for node sounds only, then you can easily switch to sounds. Simply add default & sounds as optional dependencies in your mod.conf. sounds aliases or overrides methods used by default to its own. For example default.node_sound_dirt_defaults.

Example code:

function sounds.node_dirt(tbl)
    tbl = tbl or {}

    tbl.footstep = tbl.footstep or {name="sounds_step_dirt", gain=0.4}
    tbl.dug = tbl.dug or {name="sounds_step_dirt", gain=1.0}
    tbl.place = tbl.place or {name="sounds_place_node_soft", gain=1.0}

    sounds.node(tbl)
    return tbl
end

-- alias/override default method
default.node_sound_dirt_defaults = sounds.node_dirt

See README for list of included sounds.

Reviews

Review

Do you recommend this mod?

  • No reviews, yet.

Used By