mojira.dev
MC-182368

Inconsistent constant results of commands

The bug

Some commands return the constant value on success since the result value does not matter.

However, some of the commands return 0, and the others return 1.

Commands that return 0 on success

  • /bossbar set <id> color (blue|green|pink|purple|red|white|yellow)

  • /bossbar set <id> name <name>

  • /bossbar set <id> style (notched_10|notched_12|notched_20|notched_6|progress)

  • /bossbar set <id> visible <visible>

  • /debug start

  • /difficulty (easy|hard|normal|peaceful)

  • /forceload remove all

  • /reload

  • /scoreboard objectives modify <objective> displayname <displayName>

  • /scoreboard objectives modify <objective> rendertype (hearts|integer)

  • /scoreboard objectives setdisplay <slot> [<objective>]

  • /team modify <team> collisionRule (always|never|pushOtherTeams|pushOwnTeam)

  • /team modify <team> color <value>

  • /team modify <team> deathMessageVisibility (always|hideForOtherTeams|hideForOwnTeam|never)

  • /team modify <team> displayName <displayName>

  • /team modify <team> friendlyFire <allowed>

  • /team modify <team> nametagVisibility (always|hideForOtherTeams|hideForOwnTeam|never)

  • /worldborder center <pos>

Commands that return 1 on success

  • /attribute <target> <attribute> base set <value>

  • /attribute <target> <attribute> modifier add <uuid> <name> <value> (add|multiply|multiply_base)

  • /attribute <target> <attribute> modifier remove <uuid>

  • /data get block <targetPos>

  • /data get entity <target>

  • /data get storage <target>

  • /data merge block <targetPos> <nbt>

  • /data merge entity <target> <nbt>

  • /data merge storage <target> <nbt>

  • /execute if block <pos> <block>

  • /execute if predicate <predicate>

  • /execute if score <target> <targetObjective> < <source> <sourceObjective>

  • /execute if score <target> <targetObjective> <= <source> <sourceObjective>

  • /execute if score <target> <targetObjective> = <source> <sourceObjective>

  • /execute if score <target> <targetObjective> > <source> <sourceObjective>

  • /execute if score <target> <targetObjective> >= <source> <sourceObjective>

  • /execute if score <target> <targetObjective> matches <range>

  • /execute unless block <pos> <block>

  • /execute unless data block <sourcePos> <path>

  • /execute unless data entity <source> <path>

  • /execute unless data storage <source> <path>

  • /execute unless entity <entities>

  • /execute unless predicate <predicate>

  • /execute unless score <target> <targetObjective> < <source> <sourceObjective>

  • /execute unless score <target> <targetObjective> <= <source> <sourceObjective>

  • /execute unless score <target> <targetObjective> = <source> <sourceObjective>

  • /execute unless score <target> <targetObjective> > <source> <sourceObjective>

  • /execute unless score <target> <targetObjective> >= <source> <sourceObjective>

  • /execute unless score <target> <targetObjective> matches <range>

  • /forceload query <pos>

  • /me <action>

  • /pardon-ip <target>

  • /replaceitem block <pos> <slot> <item> [<count>]

  • /save-all

  • /save-off

  • /save-on

  • /say <message>

  • /setblock <pos> <block> [destroy|keep|replace]

  • /setworldspawn [<pos>]

  • /spectate [<target>] [<player>]

  • /stop

  • /summon <entity> [<pos>] [<nbt>]

  • /team modify <team> prefix <prefix>

  • /team modify <team> suffix <suffix>

  • /whitelist off

  • /whitelist on

  • /whitelist reload

Linked issues

Comments 1

intsuc

(Unassigned)

Confirmed

Commands

Minecraft 18w14a, Minecraft 1.13, Minecraft 18w31a, 1.15.2, 20w18a, ..., 24w33a, 1.21.4, 25w04a, 1.21.5, 25w16a

Retrieved