Table of Contents

minecraft:entity_properties

The minecraft:entity_properties predicate has two new optional fields.

Fields

Name Description Type Default Value
used_item_ticks Whether the entity has been using an item stack for the specified number of ticks. The target entity must be a living entity. An optional integer range
in_water_or_rain Whether the entity is submerged in water or standing in rain. An optional boolean

Example

{
  "condition": "minecraft:entity_properties",
  "entity": "this",
  "predicate": {
    "used_item_ticks": {
      "min": 10
    },
    "in_water_or_rain": true
  }
}