Returns whether the component is valid. A component is
considered valid if its owner is valid, in addition to any
addition to any additional validation required by the
component.
ReadonlytypeId
typeId:string
Remarks
Identifier of the component.
ReadonlycurrentValue
currentValue:number
Remarks
Current value of this attribute for this instance.
Throws
This property can throw when used.
ReadonlydefaultValue
defaultValue:number
Remarks
Returns the default defined value for this attribute.
Throws
This property can throw when used.
ReadonlyeffectiveMax
effectiveMax:number
Remarks
Returns the effective max of this attribute given any other
ambient components or factors.
Throws
This property can throw when used.
ReadonlyeffectiveMin
effectiveMin:number
Remarks
Returns the effective min of this attribute given any other
ambient components or factors.
Defines the interactions with this entity for hunger. Wraps the
minecraft.player.hungerattribute.