Skip to main content

Get 25% OFF on your first order with BisectHosting using code "DAQEM"!

Food Level

The arc:food_level condition type checks the player's current food level (0-20).

Parameters

ParameterTypeRequiredDefaultDescription
food_levelintRequired-Food level value.
comparisonComparisonTypeOptional==Comparison type.

Example

The following example gives regeneration if the player's food level is below 6 (3 shanks).

data/my_datapack/arc/starving_regen.json
{
"holder": {
"type": "arc:player",
"id": "arc:player"
},
"type": "arc:on_walk",
"conditions": [
{
"type": "arc:food_level",
"food_level": 6,
"comparison": "<"
}
],
"rewards": [
{
"type": "arc:effect",
"effect": {
"id": "minecraft:regeneration",
"duration": 40
}
}
]
}

Compatible Action Types