Mojira Archive
MCPE-172779

[ScriptAPI] applyDamage -> Player is not valid type in interface EntityApplyDamageOptions

You can't specify player as source of damage when applyDamage method is used on entities.
Code to reproduce:

anyEntity.applyDamage(5,{damagingEntity:mustBePlayer});

Error message:

Pack to reproduce available: down below

Fixed

ConMaster2112

2023-07-09, 06:09 PM

2024-08-07, 03:28 PM

2024-08-07, 03:28 PM

0

1

Plausible

1074269

Script-API

1.20.20.20 Preview

1.20.70