Go to file
2025-08-15 08:16:34 +02:00
dev Initial commit 2025-07-19 13:09:10 +02:00
sounds readme and licenses 2025-08-09 01:02:48 +02:00
textures readme and licenses 2025-08-09 01:02:48 +02:00
.luacheckrc readme and licenses 2025-08-09 01:02:48 +02:00
api.lua readme and licenses 2025-08-09 01:02:48 +02:00
config.lua Adds PM suggestions 2025-08-14 05:11:10 +02:00
information.lua readme and licenses 2025-08-09 01:02:48 +02:00
init.lua readme and licenses 2025-08-09 01:02:48 +02:00
initialize.lua readme and licenses 2025-08-09 01:02:48 +02:00
internal.lua readme and licenses 2025-08-09 01:02:48 +02:00
LICENSE-CC0 Initial commit 2025-07-19 13:09:10 +02:00
LICENSE-MIT Initial commit 2025-07-19 13:09:10 +02:00
LICENSE.md readme and licenses 2025-08-09 01:02:48 +02:00
mod.conf readme and licenses 2025-08-09 01:02:48 +02:00
README.md Adds functions to definiton in readme 2025-08-15 08:16:34 +02:00
screenshot.png Initial commit 2025-07-19 13:09:10 +02:00
settingtypes.txt Adds PM suggestions 2025-08-14 05:11:10 +02:00
texts.lua readme and licenses 2025-08-09 01:02:48 +02:00

yl_tooot

Purpose

This mod provides various horns which emit a sound when used. It does not contain crafting recipes.

Download

Get it from https://gitea.your-land.de/your-land/yl_tooot

Installation

  1. Copy the "yl_tooot" folder to your mod directory.
  2. Make sure the dependencies are satisfied, if any.
  3. Enable the mod in your world.mt file.

Configuration

yl_tooot.debug = false

Set to true to enable debug mode

yl_tooot.enable_content = true

Adds the demo horns. Set to false for api only

Usage

This mod targets both servers and singleplayer. It comes with demo content and exposes functions you can use in your own mod.

Modmakers

Use the following public functions to register a new horn

yl_tooot.register_horn(name, definition)

name: name of the horn definition: optional, with fallback to following defaults:

{
    range = 32,
    interval = 30,
    icon = "yl_tooot_fallback.png",
    sound = "yl_tooot_fallback.ogg",
    applications = 10,
    repairable = false,
    can_use = function(player, name, definition) end,
    on_tooot = function(player, name, definition) end
}

Supported versions

If you use yl_tooot, but something is wrong, please file a bug. PRs also welcome.

There is no reason to believe it doesn't work anywhere, but you never know.

Allied projects

If you know a project that uses this mod tell us and we will add it to the list.

Uninstall

Remove it from your mod folder or deactivate it in your world.mt

Mods that depend on it will cease to work, if the mod is removed without proper replacement.

License

See LICENSE.md

  • Code MIT Pierre
  • Screenshot CC0 Styxcolor

Thank you