利用灵魂之火实现反怪物保护
完美适用于无需丑陋照明即可更安全的地基。
- 灵魂火把创建小型安全区域
- 灵魂灯笼创建较大范围的安全区域
- 敌对生物无法在光照范围内生成
- 进入该区域的生物会被平滑地排斥出去
- 完全服务端运行,并针对性能进行了优化
# 功能介绍
反怪物光照区域
灵魂光源会创建无形的保护区域:
方块 | 范围 | 效果
灵魂火把 | 可配置 | 防止生成 + 排斥生物
灵魂灯笼 | 更大范围 | 更强的保护效果
✔ 敌对生物无法在内部生成
✔ 现有生物会被推出区域
✔ 支持火把上方和下方的垂直范围
✔ 多个火把可合并形成更大的安全区域
智能排斥系统
- 平滑推力 — 无瞬移或拉扯现象
- 防止生物卡在墙里
- 若将生物推入方块中,会自动将其抬起
- 适用于所有危险生物(僵尸、苦力怕等)
- 忽略首领生物(末影龙、凋灵、监守者)
无卡顿设计
专为服务器构建:
- 基于区块索引的火把查找(无需扫描整个世界)
- 仅检查玩家附近的生物
- 火把放置/移除即时更新
- 多个火把合并为单一保护场
可选视觉反馈
当生物撞击边界时显示可配置的粒子效果:
可配置选项
config/better-soul-torches.json
- 火把与灯笼的范围
- 排斥力度
- 防止自然生成的开关
- 是否影响愤怒的中立生物
- 粒子效果开关
- 客户端配置同步
使用场景
✔ 无需大量照明即可确保安全的地基
✔ 受保护的村庄与城镇
✔ 无生物干扰的农场与存储区
✔ 冒险地图与整合包
性能表现
专为多人在线服务器设计:
Anti-Mob Protection Using Soul Fire
perfect for safer bases without ugly lighting.
- Soul Torches create small safe zones
- Soul Lanterns create larger safe zones
- Hostile mobs cannot spawn inside the light
- Mobs entering the zone are smoothly repelled
- Fully server-side & optimized for performance
# What It Does
Anti-Mob Light Zones
Soul lights create invisible protection zones:
Block | Range | Effect
Soul Torch | Configurable | Prevents spawns + repels mobs
Soul Lantern | Larger range | Stronger protection
✔ Hostile mobs cannot spawn inside
✔ Existing mobs are pushed out
✔ Works above & below the torch (vertical range)
✔ Multiple torches combine into larger safe areas
Smart Repel System
- Smooth push — no teleporting or rubber-banding
- Prevents mobs getting stuck in walls
- Lifts mobs if pushed into blocks
- Works on all dangerous mobs (zombies, creepers, etc.)
- Ignores bosses (Ender Dragon, Wither, Warden)
Lag-Free Design
Built for servers:
- Chunk-indexed torch lookup (no world scans)
- Only checks mobs near players
- Torch placement/removal updates instantly
- Multiple torches merge into one protection field
Optional Visual Feedback
Configurable particles when mobs hit the border:
- Low-spam
- Only triggers on impact
- Can be disabled
Configurable Options
config/better-soul-torches.json
- Torch & lantern range
- Repel strength
- Prevent natural spawns toggle
- Affect angry neutral mobs
- Particle effects toggle
- Client config sync
Use Cases
✔ Safe bases without lighting spam
✔ Protected villages & towns
✔ Mob-free farms & storage areas
✔ Adventure maps & modpacks
Performance
Designed for multiplayer servers:
- No heavy loops
- No tick lag
- Scales with player count
Notes
- Soul campfires are unchanged (purely cosmetic)
- Does not affect passive mobs or players
- Boss mobs are ignored for balance
评论 0
登录后参与评分
还没有评论,来抢沙发吧