Uploaded image for project: 'Minecraft (Bedrock codebase)'
  1. Minecraft (Bedrock codebase)
  2. MCPE-172779

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

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • 1.20.70
    • 1.20.20.20 Preview
    • Plausible
    • Multiple
    • 1074269

      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

            ConMaster2112 ConMaster2112
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:
              CHK: