Mojira Archive
MCPE-172922

[ScriptAPI] ScoreboardObjective::removeParticipant & ScoreboardObjective::getScore fails when using not defined identity

When using methods such as removeParticipants or getScore they fails and throw an error instead of returning undefined or false

Steps to reproduce:

  • Create Scoreboard objectvive if not exist
  • try to remove random string from objective
  • try to remove random entity from objective

Observed Results:

Throw error: Failed to resolve identity for '...'

Expected Results:

methods should return false or undefined as is intended

Pack to reproduce: ScoreboardsObjectiveMethods fails.js.mcpack

Fixed

ConMaster2112

2023-07-12, 09:23 PM

2024-08-07, 03:30 PM

2024-08-07, 03:30 PM

0

2

Plausible

1074276

Script-API

1.20.20.21 Preview

1.21.0