Skip to content

Latest commit

 

History

23 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

DICE_API

DICE_API Promotional GIF

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.

DICE_API Title banner

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,
    }
})

DICE_API Example Die

Die Types

Supports: Coins, D4, D6, D8, D12, D20

DICE_API Presets

Personalize your die with:

/rename_die <name>

Command Example:

DICE_API Renaming Die

Updated tooltip:

DICE_API Renamed Die Tooltip

Roll-result chat message:

DICE_API Renamed chat message

Disclaimer:

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.

About

API for creating physical dice in Luanti

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages