Raid alerts
Raid alerts turn an account parked inside your base into a lookout that pings your Discord. Three webhooks on the same server profile cover the three signs of a raid: a player you haven't listed comes into view, TNT is lit nearby, or the blocks around the bot start breaking. Each post can carry a picture of what the bot saw, so you know at a glance whether to log on.
Check your server's rules first
Some factions servers forbid exactly this. Minecadia's Factions rules count "AFKing walls", an account left at your walls to catch a raid, as an offence, punished with a faction strike and a 7-day ban for the AFK player when we last checked. Read your server's rules before you park a lookout, and where it is not allowed, keep your accounts at farms and grinders instead.
What you need
- Tier 3. Webhooks, and the events below, are Tier 3.
- A Discord channel and its webhook URL. Get a URL from Discord shows where to copy it.
- An account parked inside the base, where it can see the way in and is within 32 blocks of the walls you care about. The bot only notices what happens in the chunks it has loaded, the same as a player standing there.
- Auto reconnect on, so a restart doesn't leave the base unwatched.
A player comes into view
- Visit minecraftafk.com/dashboard/servers/, open the server profile, and open its Webhooks page.
- Click Add webhook, name it Raider spotted, and paste your channel's URL under Send to.
- Under Runs when pick Player appears. Put your faction under Never fire for these players, and leave Ignore my own accounts ticked.
- Untick Smart trigger. While it's ticked, the event holds back while 5 or more other players are in sight at once, and a raiding party is often that big.
- Under Attach, tap POV, so the post shows who it saw.
- Under Tag roles, add your faction's role, or switch on Tag @here, so the post wakes people up.
TNT is lit
Add a second webhook on Sound plays. Pick entity.tnt.primed from the list, the hiss of TNT being lit, and set Within (blocks) to 32. It fires for TNT the bot can hear, whoever lit it. Add entity.generic.explode as another webhook if you also want to hear about explosions, and give either one a cooldown of a minute or so under Don't post again for, because a cannon lights a lot of TNT.
Your walls break
Add a third webhook on Block broken. Leave Block empty for any block, or pick the one your walls are made of, such as obsidian, and set Within (blocks) up to 32. It fires whoever broke the block, a raider's pickaxe or an explosion, so give it a cooldown as well.
Test it
Press the test button on each webhook to see the post land in your channel before any raid. Test it explains what a test post carries: no pictures, since there is no live bot behind it.
Good to know
- It only watches. A webhook posts and does nothing else. To have the bot act as well, mining your spawners and logging out before a raider can take them, see Spawner protection.
- Sounds on old versions. Sound plays doesn't work on 1.7, 1.8 or 1.9 to 1.9.2. MinecraftAFK joins on a newer version wherever the server takes one, so this only matters on a server that takes nothing newer.
- Your own phone. Tick My devices under Send to for a push notification as well as the Discord post. See Push notifications.
- Don't only AFK. An account that only ever stands guard is the kind some servers ban. See Can I get banned for only AFKing?
Triggers and Pictures in the webhooks guide, and Event settings in the macros guide, have the details.
Still stuck?
If an account won't connect, Fix connection problems covers every status and warning. Otherwise ask in our Discord, where the team and other players answer, or email support and we will get back to you.