Dice API

Description

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.

  • dice.register_die(name, die parameters)

  • dice.throw_die(player, itemstack): returns itemstack

    • Throws Die based on the given itemstack.
    • player: is an ObjectRef

Die Parameters: (See api.md)

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.

Reviews

Review

Do you recommend this mod?

Releases

1.3

Download

Luanti 5.4+

2025-11-16 00:04 UTC

1.3 🔗

Added D4 and D8

1.2

Download

Luanti 5.4+

2025-09-15 21:34 UTC

1.2 🔗

Fix crash when registering die with no groups

1.1

Download

Luanti 5.4+

2025-09-06 23:18 UTC

1.1 🔗

No release notes

All releases