Appearance
helix / ItemState
Interface: ItemState โ
Defined in: core/values/item/state.ts:10
The settings behind an ItemValue.
Properties โ
canPlaceOn โ
canPlaceOn:
string[]
Defined in: core/values/item/state.ts:19
consumable? โ
optionalconsumable?:Consumable
Defined in: core/values/item/state.ts:32
container? โ
optionalcontainer?: [number,ItemValue][]
Defined in: core/values/item/state.ts:25
container contents as [slot, item] pairs.
count? โ
optionalcount?:number
Defined in: core/values/item/state.ts:12
customModelData? โ
optionalcustomModelData?:number
Defined in: core/values/item/state.ts:15
customName? โ
optionalcustomName?:TextComponent
Defined in: core/values/item/state.ts:13
enchantments โ
enchantments: [
string|CommandValue,number][]
Defined in: core/values/item/state.ts:17
extraComponents โ
extraComponents:
object[]
Defined in: core/values/item/state.ts:34
Raw components: value is raw SNBT, a value, or items as a stack-NBT list.
json? โ
optionaljson?:unknown
key? โ
optionalkey?:string
name โ
name:
string
value โ
value:
string|CommandValue|LoweredValue|ItemValue[]
hiddenTooltips โ
hiddenTooltips:
string[]
Defined in: core/values/item/state.ts:21
Components named in tooltip_display.hidden_components.
hideWholeTooltip? โ
optionalhideWholeTooltip?:boolean
Defined in: core/values/item/state.ts:23
tooltip_display.hide_tooltip: no tooltip at all.
id โ
id:
string
Defined in: core/values/item/state.ts:11
itemModel? โ
optionalitemModel?:string|ModelRef
Defined in: core/values/item/state.ts:16
itemName? โ
optionalitemName?:TextComponent
Defined in: core/values/item/state.ts:14
lore โ
lore:
TextComponent[]
Defined in: core/values/item/state.ts:18
matchByData? โ
optionalmatchByData?:boolean
Defined in: core/values/item/state.ts:44
Predicates test only the id and custom_data.
present โ
present:
string[]
Defined in: core/values/item/state.ts:42
Components an item predicate requires present, whatever their value.
removed โ
removed:
string[]
Defined in: core/values/item/state.ts:48
Component ids (minecraft:x) the stack drops, written !minecraft:x.
subPredicates โ
subPredicates:
object[]
Defined in: core/values/item/state.ts:40
json โ
json:
unknown
type โ
type:
string
vanilla โ
vanilla:
object[]
Defined in: core/values/item/state.ts:46
Components set with .set(id, value), typed from vanilla-mcdoc.
id โ
id:
string
value โ
value:
unknown
writtenBook? โ
optionalwrittenBook?:object
Defined in: core/values/item/state.ts:26
author โ
author:
string
generation? โ
optionalgeneration?:0|2|1|3
pages โ
pages: (
string|TellrawPart|TellrawPart[])[]
title โ
title:
string