ModMIT
Area Light Up
Automatically places torches in dark areas to prevent mob spawning. Preview scan, survival inventory support, and grid-based placement for efficiency.
204
Downloads
1
Followers
3 months ago
Updated
📦
1
Versions
📖About Area Light Up
LightUp
Automatically places torches in dark areas within a radius around the player to prevent mob spawning. Uses an efficient grid-based placement system.
Commands
| Command | Description |
|---|---|
/lightup |
Preview with default radius (64 blocks) |
/lightup <radius> |
Preview with custom radius (8-128 blocks) |
/lightup stop |
Stop the current task |
/lightup help |
Show all commands |
Features
Preview System
Before placing any torches, the mod scans the area and shows:
- Torches needed with stack breakdown (e.g., "3840 (60 stacks)")
- Inventory comparison (survival mode)
- Crafting materials if you're short on torches
- Click [START] to begin or do nothing to cancel
Game Modes
| Mode | Who | Behavior |
|---|---|---|
| OP Mode | Players with permission level 2+ | Unlimited torches |
| Survival Mode | Regular players | Uses torches from inventory |
How It Works
- Creates a grid of positions every 12 blocks apart (torch light reaches 14 blocks, ensuring overlap)
- Places ONE torch per tick to avoid server lag (~10 torches/second)
- After grid completion, does a cleanup scan for any missed dark spots
- Progress updates every 50 torches
Torch Placement Validation
A position is valid if:
- Position is air
- Block above is air (prevents underwater placement)
- Block below is solid
- Block light level is 0 (actually dark)
Technical Details
- Minecraft: 1.21.11
- Mod Loader: Fabric
- Dependencies: Fabric API
- Source: GitHub