Skip to content

@minecraft/server


@minecraft/server / SetItemNameFunction

Class: SetItemNameFunction ​

Defined in: @minecraft/server/index.d.ts:19781

Loot item function that modifies the name of the item dropped.

Extends ​

Properties ​

conditions ​

readonly conditions: LootItemCondition[]

Defined in: @minecraft/server/index.d.ts:15793

Inherited from ​

LootItemFunction.conditions


name ​

readonly name: string

Defined in: @minecraft/server/index.d.ts:19788

Remarks ​

The name to apply to the dropped item.