Detect if player is in hardcore mode

Started by AGNAB on

Topic category: Help with Minecraft modding (Java Edition)

Joined Aug 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Detect if player is in hardcore mode

for my mod, one of the items requires you to die with an item equipped to get another item that is vital to accessing other parts of the mod. i would love it if someone could show me how to detect if a player is in hardcore mode so it could unlock a seperate crafting recipe or something so they aren't locked out of some parts of the mod!

Joined Mar 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
have you look in "world data…
Tue, 05/30/2023 - 18:00

have you look in "world data" ? I think the block 8 can help you ;-)

Joined Aug 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
ah i see what you mean, but…
Wed, 05/31/2023 - 01:40

ah i see what you mean, but there's nothing related to hardcore in there

Joined Mar 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
The block I'm thinking of is…
Wed, 05/31/2023 - 17:58

The block I'm thinking of is the one who say "If the gamemode is set on PEACFULL".
You can click on "PEACFULL" and it will show you the different gamemodes.You just have to select HARCORE and it's done.