Custom Criteria #4098
-
DescriptionHey guys! I'm trying to make an advancement where if a player walks on a block, the criteria is triggered, but I'm unable to determine how to. Can someone please help me? Thank you! (I'm new to both Java and Fabric) |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
You can use the The following is the relevant part of the advancement JSON required for this behavior: {
"criteria": {
"walk_on_<your block name>": {
"trigger": "minecraft:location",
"conditions": {
"player": [
{
"condition": "minecraft:entity_properties",
"entity": "this",
"predicate": {
"stepping_on": {
"block": {
"blocks": "<your block id here>"
}
}
}
}
]
}
}
}
} |
Beta Was this translation helpful? Give feedback.
You can use the
minecraft:location
criterion to implement this behavior. The 'Light as a Rabbit' advancement in vanilla Minecraft has a similar requirement to what you describe (walking on powder snow with leather boots) which you can use as an example.The following is the relevant part of the advancement JSON required for this behavior: