mojira.dev
MCPE-187646

Parity issue: Command blocks that are attempting to be used to change gamemode in hardcore mode won't work

The Bug:

Neither command blocks can change a player's gamemode in hardcore mode nor you can use chat commands to switch gamemode in hardcore mode with cheats somehow enabled one way or another, being inconsistent with Java Edition.Β 

Steps to Reproduce:

For this bug to work, you must either have a release version of at least 1.21.40, or you can use the latest preview.

1. Download the attached world. The map starts in creative, default gamemode is creative, and the map is in hardcore mode, and cheats are also enabled, which is normally impossible. This world was created to test this bug. Cheats were activated via another method other than external editors, and were not activated via MCPE-180404.

2. Use the lever to your right. That will attempt to change gamemode to survival hardcore from creative hardcore, but the gamemode won't change at all.

3. This step is optional. Since the attached world in creative hardcore mode will also have cheats enabled without using MCPE-180404Β to activate cheats, you can also try to run /gamemode survival @p

4. Whether you tried step 2 or step 3, gamemode switching is unsuccessful, because even though this attached world somehow had cheats and is a hardcore world, gamemode changing with commands did not work.Β 

Expected Results:

Command blocks will change a player's gamemode in hardcore mode with cheats somehow enabled one way or another, just like Java Edition.

Observed Results:

Command blocks are unable to change a player's gamemode in hardcore, inconsistent with Java Edition.

Notes:

This bug report does not not talk about how cheats were activated in the attached world, as I did not use MCPE-180404 to enable cheats on this now creative hardcore world, even though cheats are present. This glitch does not occur on non-hardcore worlds as far as I know.

  • Even if cheats can't work on hardcore at all, because it is a creative hardcore world there are still command blocks that can be used in the test world to try to change the player's gamemode without success.

  • In the test world, using the left lever will attempt to change the player's gamemode to creative from the left command block. (the player already starts in creative)

  • In the test world, using the right lever will attempt to change the player's gamemode to survival from the right command block. Because the test world is a creative hardcore world, the attempt will fail, and that is covered in the reproduction steps.

Parity criteria met:

  • Hardcore mode exists in the latest release of both Java and Bedrock. (Java 1.21.2 and Bedrock 1.21.40)

  • Hardcore mode was added in Preview Bedrock in the first 1.21.0 preview, and was added to release Bedrock in 1.21.40 (Bundles of Bravery).

  • Somehow in hardcore worlds with cheats enabled one way or another, commands from chat as well as command blocks both can't change a player's gamemode in Bedrock. In Java, hardcore worlds with cheats enabled one way or another can use commands from chat and command blocks to change a player's gamemode.

Attachments

Comments 8

This issue is not specific to the attached world, this also occurs when using Simburbia from the Marketplace in hardcore mode and you try to use and start creative gameplay, only to find out your gamemode is still in hardcore adventure mode. This is where I first noticed this issue.

Hardcore mode is a legitimate choice an adventure map creator can make. All other command blocks run perfectly fine, only changing the game mode silently fails. Cheats are irrelevant, the player is never able to run commands of their own, but command blocks and functions can.

Interesting, thank you for the correction. I'll retract my statements, my apologies.

I 100% agree with tryashtar that command blocks should be able to execute commands considered cheats on hardcore mode, however, I still believe that the question you should be asking yourself here is: why would an adventure map creator go out of their way to create a map in hardcore mode just to at some point arbitrarily revert the user's game mode to anything but hardcore mode? I can see a legitimate application for being able to change the difficulty, but not the game mode.

The entire point of hardcore mode is to give the player a single chance; else they have to restart. Having a command block that can forcibly update the player's game mode makes having an adventure map in hardcore mode redundant, as you can easily cheat death and avoid the map and your progress being reset. The only reasonable application for changing your game mode in a hardcore world would probably be (for some reason) wanting to have the user have the capabilities of creative mode at some point (why?), or because you only want a certain portion of the map to be completed in hardcore mode (again, why? you can easily emulate this by teleporting them to a previous checkpoint.)

The hardcore status is independent of the game mode. In a map I made for example, the player is swapped between adventure mode in special areas so they can't break blocks, and survival mode in the main area so they can. The intent would be to keep them in hardcore in both cases. Spectator mode temporarily for brief cutscenes also makes sense.

Thank you for your report!

However, this issue has been temporarily closed as Awaiting Response.

I can not reproduce the issue. Is this still an issue in the latest version? If yes, could you please attach a video with this issue?

This ticket will automatically reopen when you reply.

Quick Links:
πŸ““ Issue Guidelines – πŸ’¬ Mojang Support – πŸ““ Project Summary – πŸ“§ Suggestions – πŸ“– Minecraft Wiki

@unknown , This is still an issue in the latest release (1.21.51). You just have to download the attached world, open it, and once you load the world, use the lever to your right, and the bug will occur.

(The attached hardcore world starts in creative for this purpose.)

TheMightyDark

(Unassigned)

1362342

Confirmed

Multiple

/gamemode, chat-commands, command-block, command-block-bug, gamemode, gamemodes, hardcore, java-parity, unintended-behaviour, vanilla-parity

1.21.50.25 Preview, 1.21.50.24 Preview, 1.21.40, 1.21.41 Hotfix, 1.21.51 Hotfix

Retrieved