« Back to search

Mod

Dice API

by Extex · score 153.9 · license: MIT

Dice API

Download latest release

API for creating physical dice

library multiplayer strategy_rts

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.