persistent_monoids

player_monoids that persist between player sessions and server restarts/crashes.

API / Library

Download (253 KB)
For Luanti 5.7 and above

How do I install this?

persistent_monoids

player_monoids that persist between player sessions and server restarts/crashes. see https://content.minetest.net/packages/Byakuren/player_monoids/ for more information.

API

the API is almost identical to player_monoids, w/ a couple changes

local my_monoid = persistent_monoids.make_monoid("my_monoid", { -- a unique name for the monoid is obligatory
    ... -- definition as in a regular player_monoid
})

my_monoid:add_change(player, value, "some_id") -- unlike player_monoids, an ID is obligatory

Reviews

Review

Do you recommend this mod?

  • No reviews, yet.

Used By