| dev | ||
| sounds | ||
| textures | ||
| .luacheckrc | ||
| api.lua | ||
| config.lua | ||
| information.lua | ||
| init.lua | ||
| initialize.lua | ||
| internal.lua | ||
| LICENSE-CC0 | ||
| LICENSE-MIT | ||
| LICENSE.md | ||
| mod.conf | ||
| README.md | ||
| screenshot.png | ||
| settingtypes.txt | ||
| texts.lua | ||
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
- Copy the "yl_tooot" folder to your mod directory.
- Make sure the dependencies are satisfied, if any.
- 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