Area Light Up
Automatically places torches in dark areas to prevent mob spawning. Preview scan, survival inventory support, and grid-based placement for efficiency.
介绍
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
常见问题
Area Light Up 支持哪些 Minecraft 版本?
Area Light Up 支持 Minecraft Java 版 1.21.11,可用的加载器:Fabric。下载时注意选择和你游戏版本一致的文件。
Area Light Up 怎么安装?
先用 PCL2 或 HMCL 启动器安装对应版本的 Fabric,再把下载的 .jar 文件放进游戏目录的 mods 文件夹,重新启动游戏即可。开启了版本隔离的,mods 文件夹在 versions/版本名 下面。运行环境:仅服务端。
评论
登录后评论和评分