Block Documentation - damage
damage
is an event response that applies damage to a target.
Extra Parameters
damage
can use the following parameters
Name | Default Value | Type | Description |
---|---|---|---|
amount | 0 | Integer | The amount of damage to deal. |
mob_amount | 0 | Integer | The amount of damage to deal if held by an entity. |
target | self | Minecraft Filter | The target context to execute against. |
type | not set | String | The type of damage to deal. |
Example
"damage":{
"amount" : 1,
"target" : {"test": "player"},
"type" : "lava"
}
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for