Edit

Share via


Entity Filters Documentation - minecraft:is_mark_variant

Returns true if the subject entity is the mark variant number provided.

Is Mark Variant 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. Villager v2: "other"
test not set String Villager v2: "is_mark_variant"
value not set Integer number (Required) An integer value. Villager v2: 1, 2, 3, 4, 5, 6

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_mark_variant", "subject": "self", "operator": "equals", "value": "0" }

At Short (using Defaults)..:

{ "test": "is_mark_variant", "value": "0" }

Villager v2

At /minecraft:entity/events/minecraft:entity_transformed/sequence/2/sequence/6/filters/:

{
  "test": "is_mark_variant",
  "subject": "other",
  "value": 1
}

At /minecraft:entity/events/minecraft:entity_transformed/sequence/2/sequence/7/filters/:

{
  "test": "is_mark_variant",
  "subject": "other",
  "value": 2
}

At /minecraft:entity/events/minecraft:entity_transformed/sequence/2/sequence/8/filters/:

{
  "test": "is_mark_variant",
  "subject": "other",
  "value": 3
}

At /minecraft:entity/events/minecraft:entity_transformed/sequence/2/sequence/9/filters/:

{
  "test": "is_mark_variant",
  "subject": "other",
  "value": 4
}

At /minecraft:entity/events/minecraft:entity_transformed/sequence/2/sequence/10/filters/:

{
  "test": "is_mark_variant",
  "subject": "other",
  "value": 5
}

At /minecraft:entity/events/minecraft:entity_transformed/sequence/2/sequence/11/filters/:

{
  "test": "is_mark_variant",
  "subject": "other",
  "value": 6
}