Damage

Returns the value of the minecraft:damage component, or 0 if not present.

  • If normalize is true, the count is divided by the value of minecraft:max_stack_size and clamped in [0, 1].

  • If normalize is false, the count is clamped in [0, infinity[.

Inheritors

Constructors

Link copied to clipboard
constructor(normalize: Boolean)

Types

Link copied to clipboard