Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Tests whether the biome the subject is in has the specified tag.
Has Biome Tag Properties
Name | Default Value | Type | Description | Example Values |
---|---|---|---|---|
operator | equals | Operator choices | (Optional) The comparison to apply with 'value'. | Villager v2: "!=" , Wolf: "not" |
subject | self | Subject choices | (Optional) The subject of this filter test. | |
test | not set | String | Cave Spider: "has_biome_tag" |
|
value | not set | String | (Required) The tag to look for | Cave Spider: "swamp" , "mangrove_swamp" , "nether" |
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": "has_biome_tag", "subject": "self", "operator": "equals", "value": " " }
At Short (using Defaults)..:
{ "test": "has_biome_tag", "value": " " }
Cave Spider
At /minecraft:entity/events/minecraft:entity_spawned_with_biome_specific_jockey/first_valid/1/filters/all_of/2/any_of/0/:
{
"test": "has_biome_tag",
"value": "swamp"
}
At /minecraft:entity/events/minecraft:entity_spawned_with_biome_specific_jockey/first_valid/1/filters/all_of/2/any_of/1/:
{
"test": "has_biome_tag",
"value": "mangrove_swamp"
}
At /minecraft:entity/events/minecraft:entity_spawned_with_biome_specific_jockey/first_valid/2/filters/:
{
"test": "has_biome_tag",
"value": "nether"
}
Chicken
At /minecraft:entity/events/minecraft:entity_spawned/sequence/1/first_valid/0/filters/:
{
"test": "has_biome_tag",
"value": "spawns_warm_variant_farm_animals"
}
At /minecraft:entity/events/minecraft:entity_spawned/sequence/1/first_valid/1/filters/:
{
"test": "has_biome_tag",
"value": "spawns_cold_variant_farm_animals"
}
Villager v2
At /minecraft:entity/events/minecraft:entity_spawned/sequence/2/filters/any_of/0/:
{
"test": "has_biome_tag",
"value": "desert"
}
At /minecraft:entity/events/minecraft:entity_spawned/sequence/2/filters/any_of/1/:
{
"test": "has_biome_tag",
"value": "mesa"
}
At /minecraft:entity/events/minecraft:entity_spawned/sequence/3/filters/:
{
"test": "has_biome_tag",
"value": "jungle"
}
At /minecraft:entity/events/minecraft:entity_spawned/sequence/4/filters/:
{
"test": "has_biome_tag",
"value": "savanna"
}
At /minecraft:entity/events/minecraft:entity_spawned/sequence/5/filters/any_of/0/all_of/0/:
{
"test": "has_biome_tag",
"value": "cold"
}
At /minecraft:entity/events/minecraft:entity_spawned/sequence/5/filters/any_of/0/all_of/1/:
{
"test": "has_biome_tag",
"operator": "!=",
"value": "ocean"
}
At /minecraft:entity/events/minecraft:entity_spawned/sequence/5/filters/any_of/1/:
{
"test": "has_biome_tag",
"value": "frozen"
}
At /minecraft:entity/events/minecraft:entity_spawned/sequence/7/filters/all_of/0/any_of/0/:
{
"test": "has_biome_tag",
"value": "taiga"
}
At /minecraft:entity/events/minecraft:entity_spawned/sequence/7/filters/all_of/0/any_of/1/:
{
"test": "has_biome_tag",
"value": "extreme_hills"
}
At /minecraft:entity/events/minecraft:entity_spawned/sequence/7/filters/all_of/1/:
{
"test": "has_biome_tag",
"operator": "!=",
"value": "cold"
}