Types

Link copied to clipboard

Returns the weight of the minecraft:bundle_contents component, or 0 if not present.

Link copied to clipboard

Returns an angle in the x-z plane between the holder and target positions, scaled from 0 to 1. If the target is not valid (i.e. not present, in another dimension or too close to the holder position), a random value will be returned.

Link copied to clipboard

Returns the remaining cooldown for the item, scaled between 0 and 1.

Link copied to clipboard

Returns item stack's count.

Link copied to clipboard

Returns the crossbow pull progress, scaled between 0 and 1.

Link copied to clipboard

Returns the value at index from floats of the minecraft:custom_model_data component.

Link copied to clipboard

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

Link copied to clipboard
class Time(source: TimeSource, wobble: Boolean = true) : RangeDispatchItemModelProperty

Returns the in-game time of source, scaled between 0 and 1. If wobble is true, the value will oscillate for some time around the target before settling.

Link copied to clipboard

Returns the remaining item use ticks modulo period.

Link copied to clipboard

Returns item use ticks.