Deleting the world when player dies to a specific bosses

Started by rgpmc on

Topic category: Help with Minecraft modding (Java Edition)

Joined Mar 2025
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Deleting the world when player dies to a specific bosses

Is it possible with custom code? I want the world to be deleted once an entity (Thewither) kills a player

I could make the code the ban the player in multiplayer, but I need help in single player world deletion 

 

Joined Aug 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I haven't tested this but…
Sun, 04/06/2025 - 17:23

I haven't tested this but you could test when the player dies to that entity and set a logic variable to false. Then kick the player(s) with the variable set to false.

Joined Mar 2025
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I can get the logic working,…
Mon, 04/07/2025 - 07:38

I can get the logic working, but how do I kick the player?

Joined Mar 2025
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
First, make sure that this…
Mon, 04/07/2025 - 13:32

First, make sure that this is a good idea and remember to have a big disclaimer about the world ending.

Next, you can either use the procedure that crashes the current instance or do something else to make the world unplayable.