Skip to content

Is Entity Stepping on Block

Checks if an entity is stepping on a block.

Type ID: kaya:is_entity_stepping_on_block

Info

This type provides the following context parameters to its stepped_on_condition field when checking for the block being stepped on by an entity:

Parameter Description
kaya:stepped_on_block The block being stepped on by an entity.

Format

Field Type Default Description
stepped_on_condition Condition optional If specified, this condition is checked on the block being stepped on by the entity.
entity Entity Provider The entity to get the stepped block from.

Example

{
    "type": "kaya:is_entity_stepping_on_block",
    "stepped_on_condition": {
        "type": "kaya:check_block_type",
        "tag": "#minecraft:carpets",
        "block": "stepped_on_block"
    },
    "entity": "this"
}

This example will check if the entity provided by the kaya:this_entity context parameter is stepping on a block included in the #minecraft:carpets block tag.

History

Minecraft Mod Changelog
1.21.5 0.1.0 Added the type.