_____ _ _ _____ _
/ ____| | (_) / ____| | |
| | | | __ _ _ _ __ ___ ___| (___ _ _ ___| |_ ___ _ __ ___
| | | |/ _` | | '_ ` _ \/ __|\___ \| | | / __| __/ _ \ '_ ` _ \
| |____| | (_| | | | | | | \__ \____) | |_| \__ \ || __/ | | | | |
\_____|_|\__,_|_|_| |_| |_|___/_____/ \__, |___/\__\___|_| |_| |_|
__/ |
|___/
A powerful territory claiming system for Minecraft Bedrock Edition that automatically manages player gamemodes based on territory ownership.
A Minecraft Bedrock Edition script that implements a territory claiming system with automatic gamemode switching. Players can claim territories and receive creative mode privileges within their claimed areas while other players are restricted to adventure mode.
- Territory claiming using special claim blocks
- Automatic gamemode switching based on territory ownership:
- Creative mode in your own territory
- Adventure mode in others' territories
- Survival mode in unclaimed areas
- Anti-overlap protection for claims
- Persistent storage of claims
- In-game commands for managing claims
!claim_anchor- Receive a claim block!claims- Display all current territory claims!clear-claims- Remove all claims (use with caution)
- Use the
!claim_anchorcommand to get a claim block - Place the claim block to create a territory
- A 100x100 area (50 blocks radius) will be claimed around the block
- Claims cannot overlap with existing territories
- Only the owner can break their claim block
- Claims are automatically saved and persist between server restarts
- The system continuously monitors player positions and updates gamemodes accordingly
Players will automatically switch between different gamemodes:
- Creative Mode: When in your own territory
- Adventure Mode: When in someone else's territory
- Survival Mode: When in unclaimed areas
- Uses the Minecraft Bedrock Edition scripting API
- Implements persistent storage using dynamic properties
- Runs position checks every 2 seconds (40 ticks)
- Claims are stored as coordinates with owner information and radius
- Includes error handling and debugging messages
- Download both .mcpack files from the latest release:
- ClaimBlock_BP.mcpack (Behavior Pack)
- ClaimBlock_RP.mcpack (Resource Pack)
- Double-click each .mcpack file to automatically install them in Minecraft
- Create a new world or edit an existing one and activate both packs in the world settings
- Minecraft Bedrock Edition
The script includes French language messages. Update the messages in the code to change the language.
The script includes comprehensive error handling and will log errors to the console while attempting to maintain functionality.
Feel free to submit issues and pull requests to help improve the system.
This project is licensed under the MIT License - see the LICENSE file for details.