Started by
rgpmc
on
Topic category: Help with Minecraft modding (Java Edition)
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
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.
I can get the logic working, but how do I kick the player?
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.