Uploaded image for project: 'Minecraft: Java Edition'
  1. Minecraft: Java Edition
  2. MC-182368

Inconsistent constant results of commands

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • None
    • Minecraft 18w14a, Minecraft 1.13, Minecraft 18w31a, 1.15.2, 20w18a, 20w19a, 20w20b, 1.16 Pre-release 5, 1.16.1, 1.16.2 Pre-release 1, 1.16.2, 1.16.3, 1.16.4 Pre-release 1, 1.16.4, 20w45a, 20w46a, 20w48a, 20w49a, 20w51a, 21w03a, 1.16.5, 21w05b, 21w06a, 21w08b, 21w10a, 21w11a, 21w13a, 21w15a, 21w16a, 21w19a, 21w20a, 1.17 Pre-release 1, 1.17, 1.17.1, 21w37a, 1.18.1, 22w03a, 22w05a, 1.18.2 Pre-release 1, 1.18.2, 22w11a, 22w12a, 22w16b, 1.19, 1.19.1, 1.19.2, 1.19.3 Release Candidate 1, 1.19.3 Release Candidate 2, 1.19.3, 23w03a, 23w05a, 1.19.4 Pre-release 3, 1.19.4, 23w12a, 23w18a, 1.20.1, 23w31a, 1.20.2, 24w03a
    • None
    • Confirmed
    • 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

            Unassigned Unassigned
            intsuc intsuc
            Votes:
            11 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated:
              CHK: