This characteristic is unique to the base rock version and the education version.
This page contains content that will appear in the next update.
These characteristics have appeared in the development version of the 1.19.4 version of the Java version, but the official update containing these characteristics has not been released.
DAMAGE
Permanent level | Java version: 2 Basan version: 1 | Limited conditions | Enable cheating |
---|
Causes damage to the specified entity.
Grammar Java version Damage
DAMAGE
Basan version Damage
Damage
Parameter java version
: Entity
Specify the target entity to be injured.It must be the player's name, target selector or UUID.And the target selector allows only one entity.
: Float
Specify the damage value to be caused.
The cause of specified damage is the type of damage, and the content of the game that will affect the news of death.When not specified, use Minecraft: GENERIC
.
: VEC3
Specify the position of the source of damage.It must be a three -dimensional coordinate, and the element is floating -point number.Allow the wave number and the deficit number mark.
: Entity
Specify the direct source of damage, which will affect the direction of the knocking caused by the damage.It can be used to specify the direct source of injury or activated TNT as the actual source of the emitter as the actual source of damage.It must be the player's name, target selector or UUID.And the target selector allows only one entity.
: Entity
The actual source of specified damage is deemed to cause the creature to cause this damage and increase the relevant statistics, resulting in a biological counterattack or decline in prestige, and causing the killer during death.When there is no specified, the entity specified by the parameter of
is deemed to be the actual source.It must be the player's name, target selector or UUID.And the target selector allows only one entity.Base rock version
Target: Target
: CommandSelector
amount: int
: int
Specify the damage value to be caused.
Cauise: DamageCause
The cause of specified damage is the type of damage, and the content of the game that will affect the news of death.All the specified types of damage are shown in the official additional package document.
Damager: Target
: CommandSelector
Specify the exertion of the damage.The player must be selected for the player's name or target.Effect
Command | trigger conditions | java version | | ||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Any | Parameters are not properly specified | Unable to parse | Unable to parse | ||||||||
Excessive range (0-2147483647) | n/td> | Execution failure | |||||||||
cause: damagecause is an invalid damage type | |||||||||||
/... Entity ... | |||||||||||
Any | |||||||||||
/... Entity ... | I can't find the target | ||||||||||
Any | Select multiple targets | Unable to parse | n/a | ||||||||
damageType is an invalid damage type | Excessive range (0.0-3.402835e38) | ||||||||||
/... by ... | Select multiple targets | ||||||||||
/... by ... | Select multiple multipleObjective | ||||||||||
Any | Execution failure | ||||||||||
/... by... | "> /... by ... From ... | Can't find the target | |||||||||
Any | Target immunity should be damaged | ||||||||||
When the execution is successful | cause damage to the target |
Number of success | /execute store success ... | /Execute Store Result ... /th> | ||
---|---|---|---|---|
Any | java version | 0 | 0 | 0 |
Success | 1 | 1 | 1 | |
Kiba version | Fail/td> | 0 | n/a | n/td>|
Success | Number of injured entities | n/a | n/a
) damage: /damage @e [type = IRON_GOLEM, LIMIT = 1] 1 GENERIC by @e [Type = Villager, Limit = 1, Name = "Dummy"] <]
/damage @e [type = IRON_GOLEM, C = 1] 1 Entity_attack Entity @e [Type = vi = vi llager, C = 1, name = "dummy"] < /code>