Skip to main content

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

Feed

The arc:feed reward type restores hunger and saturation to the player.

Parameters

ParameterTypeRequiredDefaultDescription
food_levelintOptional0Food to add.
saturationfloatOptional0Saturation to add.

Example

The following example feeds the player 2 hunger points when they kill an animal.

data/my_datapack/arc/carnivore.json
{
"holder": {
"type": "arc:player",
"id": "arc:player"
},
"type": "arc:on_kill_entity",
"conditions": [
{
"type": "arc:entity_types",
"entity_types": ["minecraft:pig", "minecraft:cow", "minecraft:chicken"]
}
],
"rewards": [
{
"type": "arc:feed",
"food_level": 2,
"saturation": 1.0
}
]
}

Compatible Action Types