minecraft:ignore_cannot_be_attacked
Allows the owner entity to ignore the "minecraft:cannot_be_attacked" component on entities that fulfill the filter.
Properties
| Property | Type | Default | What it does |
|---|---|---|---|
filters | Object or List of object | {"AND": null, "NOT": null, "OR": null, "all": null, "all_… | Defines which entities are exceptions and are allowed to be attacked by the owner entity, potentially attacked entity is subject "other". If this is not specified then all attacks by the owner are allowed. |
test | Text | — | The name of the test to apply. |
subject | Boolean or Integer or Decimal or Text | — | The subject of this filter test. |
operator | Boolean or Integer or Decimal or Text | — | The comparison to apply with 'value'. |
domain | Boolean or Integer or Decimal or Text | — | The domain the test should be performed in. |
value | Boolean or Integer or Decimal or Text | — | The value being compared with the test. |
Used by
No vanilla entity file in the official samples uses this component. It is still part of the schema, so add-ons can use it.
Related components
physicscollision_boxtype_familyconditional_bandwidth_optimizationnameableis_hidden_when_invisiblepushable_by_blockpushable_by_entitylootcan_climbis_babyballoonableambient_sound_intervalvariantpushablepersistentis_tameddimension_boundis_saddledinput_ground_controlledis_shakingmark_variantrenders_when_invisiblecan_fly