API reference Obsidian.API.Loot
RandomSequences class
A world's named random sequences, like vanilla's RandomSequences: each id gets one random source, seeded from the world seed and the id, that continues where the previous use left off. Unseeded loot tables draw from the sequence named by their LootTable.RandomSequence.
public sealed class RandomSequences
In Obsidian.API.
Remarks
Vanilla saves the sequences' state with the world; this class keeps them in memory only.
Constructors
public RandomSequences(long worldSeed);Methods
Get(string)
public IRandomSource Get(string id);Returns the sequence for id (e.g. minecraft:chests/simple_dungeon), creating it on first use. The returned source is shared and not thread-safe.