Files
minecraft-bedrock-json-schemas/source/behavior/entities/format/components/experience_reward.json

28 lines
984 B
JSON
Raw Normal View History

2021-10-08 12:59:03 +02:00
{
2021-10-08 13:04:13 +02:00
"$id": "blockception.minecraft.behavior.entities.minecraft.experience_reward",
2021-10-08 12:59:03 +02:00
"type": "object",
2021-10-08 13:04:13 +02:00
"title": "Experience Reward",
2021-10-08 12:59:03 +02:00
"description": "Defines the amount of experience rewarded when the entity dies or is successfully bred.",
"additionalProperties": false,
"properties": {
"on_bred": {
2021-12-20 20:16:36 +01:00
"type": ["string", "number"],
2021-10-08 12:59:03 +02:00
"default": 0,
"description": "A molang expression defining the amount of experience rewarded when this entity is successfully bred. An array of expressions adds each expression's result together for a final total.",
"title": "On Bred"
},
"on_death": {
2021-12-20 20:16:36 +01:00
"type": ["string", "number"],
2021-10-08 12:59:03 +02:00
"default": 0,
"description": "A molang expression defining the amount of experience rewarded when this entity dies. An array of expressions adds each expression's result together for a final total.",
"title": "On Death"
}
2021-10-11 18:10:42 +02:00
},
"examples": [
{
"on_bred": 0,
"on_death": 0
}
]
2021-10-08 12:59:03 +02:00
}