Edit

Share via


Entity Filters Documentation - minecraft:is_temperature_value

Tests the current temperature against a provided value in the range (0.0, 1.0) where 0.0f is the coldest temp and 1.0f is the hottest.

Is Temperature Value Properties

Name Default Value Type Description Example Values
operator equals Operator choices (Optional) The comparison to apply with 'value'.
subject self Subject choices (Optional) The subject of this filter test.
value not set Decimal number (Required) The Biome temperature value to compare with.

Operator choices

Value Title Description
!= != Test for inequality.
< < Test for less-than the value.
<= <= Test for less-than or equal to the value.
<> <> Test for inequality.
= = Test for equality.
== == Test for equality.
> > Test for greater-than the value.
>= >= Test for greater-than or equal to the value.
equals Equals Test for equality.
not Not Test for inequality.

Subject choices

Value Title Description
block Block The block involved with the interaction.
damager Damager The damaging actor involved with the interaction.
other Other The other member of an interaction, not the caller.
parent Parent The caller's current parent.
player Player The player involved with the interaction.
self Self The entity or object calling the test
target Target The caller's current target.

Samples

At Full..:

{ "test": "is_temperature_value", "subject": "self", "operator": "equals", "value": "0.50" }

At Short (using Defaults)..:

{ "test": "is_temperature_value", "value": "0.50" }