[MCPE 1.21+] RR Server Guard Addon: Anti-Cheat & Creative Mode Blocker (Security Script)
Running a Minecraft Survival Multiplayer (SMP) server can be a rewarding experience, but it comes with a constant risk: Cheaters. Whether it is a close friend who secretly switches to Creative Mode to spawn diamonds, or a malicious player trying to grief your builds using fly hacks, unauthorized gamemode switching destroys the integrity of a survival world.
Traditional methods of stopping this involve constantly monitoring the chat or installing heavy plugins that lag the server. Today, I am releasing the RR Server Guard Addon. This is a lightweight, script-based security system designed specifically for Minecraft Bedrock Edition servers. It acts as an automated watchdog, instantly detecting and neutralizing any attempt to switch to Creative Mode without authorization.
In this post, I will detail the technical features of this addon, explain the Trial vs. Lifetime system, and guide you through the setup process to secure your server permanently.
How the Security System Works
RR Server Guard does not rely on simple command blocks. It uses the Minecraft Script API to monitor player states 20 times per second. It checks for specific "Tags" on every player entity.
If a player attempts to switch their gamemode to Creative (1) or Spectator (3) and they do not possess the authorized "Admin Tag," the script executes an immediate override. It forces the player back into Survival Mode within 0.1 seconds and broadcasts a public alert to the chat, exposing the cheater to everyone on the server.
This method is highly optimized. Unlike plugins that scan the entire world, this script only reacts to gamemode change events, ensuring 0% impact on your server's TPS (Ticks Per Second) or lag.
Features and Security Levels
To give server owners time to test the system before fully committing, I have implemented a unique Trial System.
1. The Trial Period (20 Minutes)
When you first apply this addon to your world, it activates a 20-minute free trial mode.
- Visual Timer: A countdown timer is displayed at the top of the screen for all players.
- Full Protection: During this time, the anti-creative protection is fully active. You can test it by trying to switch gamemodes.
- Expiration: Once the 20 minutes are up, the protection remains active, but a persistent "LICENSE EXPIRED" message will block the screen, urging you to authenticate the addon.
2. Admin Control Panel
This addon does not clutter your chat with commands. Instead, it features a modern graphical user interface (GUI) for all administrative tasks. This menu is secure and can only be opened using a specific item.
To open the admin panel:
- Type the following command to give yourself the key item:
- Hold the Recovery Compass in your hand.
- Long Press (Use Item) on the screen.
- The Security Menu will appear.
Live Demonstration: Blocking a Cheater
Here is a clip showing the system in action. Notice how the player attempts to switch to Creative Mode, and the system instantly rejects the request, forcing them back to Survival Mode.
How to Activate Lifetime License
To remove the trial timer and unlock permanent protection for your server, you must enter the Lifetime License Key in the Admin Panel. This is a one-time process.
Activation Steps:
- Open the Security Menu using the Recovery Compass.
- Select the "Enter License Key" option.
- Input the following Official Key exactly as shown:
Once you click Submit, the system will validate the key. If correct, you will see a "CONGRATULATIONS" message. The timer will disappear, and the protection will run silently in the background forever. As the owner, you can now use the "Allow Creative (Self)" button in the menu to bypass the protection for yourself while keeping it active for others.
Installation Guide
For this security script to function, it requires access to the Beta APIs. Without this setting enabled, the Admin Menu will not open, and the script will fail to detect gamemode changes.
- Download the .mcpack file from the link below.
- Import the file into Minecraft and add it to your world's Behavior Packs.
- Navigate to World Settings -> Experiments.
- Enable "Beta APIs". This is mandatory.
Screenshots Gallery
Here are additional images of the control panel and the system in operation.
Download Section
The file provided below is the latest version of RR Server Guard. It is compatible with Minecraft PE 1.21 and above.
Establishing Secure Connection...
Frequently Asked Questions
1. Can a hacker bypass this key system?
No. The key validation happens internally within the script. Even if a player guesses the key, the system checks if they have Operator (OP) permissions before granting access. A regular player cannot open the Admin Panel.
2. Will this stop players from using X-Ray?
This addon specifically blocks Gamemode switching (Creative/Spectator). It does not detect texture packs like X-Ray. However, preventing Creative Mode is the most effective way to stop items from being spawned illegally.
3. Does this work on Realms?
Yes, it works perfectly on Realms. Just ensure that the behavior pack is applied and Experimental APIs are enabled in the Realm settings.