DICE_API

Have you ever wanted to flip a coin, make a board game, or run a TTRPG in Luanti? Well now you can!
This mod makes all of that possible with fun and easy-to-use API.

Example usage:
Code: Select all
dice.register_die("my_dice_pack:d6", {
preset = "d6",
tooltip = {
"\\CYAN\\My D6!",
"",
"\\GREEN\\Six-Sided",
"\\GREEN\\ - My Dice Pack",
"\\GREEN\\ - Made with Dice API",
"\\PINK\\Forged in the fires of mount Gloom."
},
textures = {"my_dice_pack_d6.png"},
-- Pre-packaged sound pack
sounds = dice.sounds.die,
groups = {
my_dice_pack = 6,
}
})

Die Types:
Supports: Coins, D4, D6, D8, D12, D20, and custom!

Personalize your die with:
Code: Select all
/rename_die <name>
Updated tooltip:

Roll-result chat message:

Disclaimer:
Spoiler
This mod is not intended to be used in the gambling of real-world currency, crate-keys or any other pay-to-obtain in-game currency.
Source: Extex101/dice_api
Download: dice_api