Newon GoogleMake CraftRank a preferred source in Google SearchAdd on Google ›
CraftRank SitesA free website and store for your server Make yours ›AshlarFree server software built on Paper, with DDoS and backdoor protection See Ashlar ›Security RadarA free check of your server's login, anti-bot and proxy settings, only with your OK See how it works ›CommunityAsk questions, share builds and find people to play with Join the forum ›
Resources / Mods / Alt F4

Alt F4

A Minecraft mod that prevents you from closing the game with Alt F4.

ModsFree1.20 – 26.x
by Wilm13 · listed from Modrinth
Download ›

Direct download from Modrinth · 6 downloads

What it does

Alt F4 is a mod made by Wilm13. A Minecraft mod that prevents you from closing the game with Alt F4.

It supports Minecraft 1.20 – 26.x. It has been downloaded 6 times on Modrinth. The last update came out on Oct 30, 2026.

Supported versions

26.x1.20

Release history

Alt F4 has had 3 releases on Modrinth since Oct 18, 2026. 3 of them came out in the past year. The newest is 1.0.0, released on Oct 30, 2026. It is made for Minecraft 26.3. It runs on NeoForge. The download is 3 KB.

VersionReleasedMinecraftType
1.0.0Oct 30, 202626.3Release
1.0.0Oct 20, 202626.3Release
1.0.0Oct 18, 20261.20.1Release
Description from the author on Modrinth

Alt F4

A small client-side mod that stops Minecraft from being closed with Alt+F4 while you are in a world or on a server.

What it does

  • Blocks Alt+F4 while you are playing in a world or on a server
  • On the main menu, Alt+F4 still closes the game normally
  • The window's X button still works
  • The Quit Game button in the main menu still works
  • It does not prevent closing via Task Manager, shutdown or crashes

What is it for?

  • Avoiding accidental closes
  • Keeps your friends from trolling you with Alt+F4

Requirements

Fabric

  • Minecraft 1.20.1 or 26.3
  • 1.20.1: Fabric Loader 0.15.0 or newer
  • 26.3: Fabric Loader 0.19.5 or newer
  • Fabric API

NeoForge

  • Minecraft 26.3

This mod is client-side only. It does not work on a server.

License

License: CC BY-NC-SA 4.0.

The mod may be freely played, streamed and shown in videos, including monetized ones.

Written by Wilm13. Read it with pictures on Modrinth.

How to install Alt F4

  1. This mod runs only on your own game. Servers do not need it, so you can use it on any server.

  2. Install Fabric and NeoForge for Minecraft 1.20 – 26.x.

  3. Download the .jar file from Modrinth and put it in the mods folder of your .minecraft directory.

  4. Start Minecraft with the Fabric profile.

  5. Easier: in Prism Launcher or the Modrinth App, search for Alt F4 in your instance's mods and click Install. It adds the loader and the mods it needs for you.

Full guide: How to install Minecraft mods

Compatibility

Minecraft versions
26.x, 1.20
Runs on
Fabric, NeoForge
Where it runs
Client only (your game)
Edition
Java
Needs
Nothing else
License
CC BY
Price
Free
Upkeep
Actively updated (Nov 16, 2026)

Alt F4 compared with similar ones Compare all alternatives

ResourceDownloadsVersionsLast updatePrice
Alt F4the one you looked at61.20 – 26.x16 days agoFree
Monsters in the ClosetMinenash8.1M1.16 – 1.21Oct 2, 2025Free
AltHaltGoodrichDev1926.xSep 16, 2026Free
Beds Need HomesSDArthur121.2116 days agoFree

Questions

Does Alt F4 work on Minecraft 26.x?

Yes. Alt F4 supports Minecraft 26.x. All supported versions: 26.x, 1.20.

Is Alt F4 free?

Yes. Alt F4 is free to download from Modrinth.

Is Alt F4 client-side or server-side?

Client-side. Alt F4 goes in your own mods folder and works on any server, including servers without mods.

Is Alt F4 still updated?

Yes. The last update came out in the past day.

What are the best alternatives to Alt F4?

The closest ones are Monsters in the Closet, AltHalt and Beds Need Homes. Compare all alternatives

Alternatives to Alt F4

AltHaltMods · 26.x

AltHalt is a client-side Fabric mod that helps prevent accidental server joins with the wrong account or a previously shared public IP.

Free19 downloads
Beds Need HomesMods · 1.21

Adds a little more difficulty to the start of the game by requiring beds to be built inside a closed space.

Free12 downloads
Compare all alternatives ›

Reviews

–★★★★★
0 reviews
50
40
30
20
10

Log in to leave a review.