Skip to content

API reference Obsidian.API.Loot.Functions

SetNameFunction class

Sets the stack's custom name or item name.

public sealed class SetNameFunction : LootFunction

In Obsidian.API.

Remarks

Vanilla can resolve entity-dependent text (selectors, scores) in the name; Obsidian sets the name as is.

Constructors

public SetNameFunction();

Properties

public ChatMessage Name { get; init; }public NameTarget Target { get; init; }

On this page