创建禁战区域,在该区域内战斗、伤害、投射物和敌对生物均被禁用!
此数据包经过重度性能优化,确保即使在低端服务器上也能流畅运行。
轻量版具有略好的性能,但功能稍少。
功能
创建6种不同大小的球形安全区:
- 尺寸 1,半径为15格
- 尺寸 2,半径为31格
- 尺寸 3,半径为47格
- 尺寸 4,半径为63格
- 尺寸 5,半径为79格
- 尺寸 C,默认半径为45格 - 用于在 数据包文件中进行自定义。
查看下方的命令以了解如何创建安全区以及其他操作。
在安全区内,适用以下规则:
- 处于生存模式与冒险模式的玩家无法受到伤害或造成伤害。
- 敌对生物会立即消失且不掉落任何战利品。
- 大多数投射物会被立即删除。例外情况包括末影珍珠、玩家投掷的旋风棒电荷和雪球。
- 三叉戟会立即掉落在地上。
- 安全区内部免受爆炸和闪电引发的火灾影响。
但请注意,如果边界处的方块允许蔓延,来自安全区外的火焰可能会蔓延到内部。
附加功能
- 允许特定敌对生物进入安全区
- 冻结特定生物的移动
- 使生物免受生存模式与冒险模式玩家的伤害
- 显示/隐藏安全区的中心点
- 许多额外的用户体验(QoL)命令
视觉效果
- 投射物撞击魔法屏障后会反弹,产生蓝色火花和高音碎裂声效。
- 敌对生物在进入安全区时被吸入地下,灵魂随之消散。
- 所有安全区命令均提供额外反馈,以便更容易理解。
兼容性
Safezones 还会阻止使用 Incendium 和 Spellbound Weapons 中的武器。
命令
通用命令
/function safezone:cmd/help
- 显示所有可用安全区命令的列表。
/function safezone:cmd/create/size[1-5]
- 创建指定尺寸的安全区。
/function safezone:cmd/move/safezone
- 将最近的安全区移动到您的位置。
/function safezone:cmd/tp/safezone
- 传送至最近的安全区。
/function safezone:cmd/delete/nearest
- 删除最近的安全区。
/function safezone:cmd/delete/nearby
- 删除100格范围内的所有安全区。
/function safezone:cmd/delete/all
- 删除所有当前加载的安全区。
使安全区可见
当安全区变为可见时,一旦您进入其范围,其中心会出现灵魂火焰粒子。这有助于更直观地了解其范围并帮助定位它们。
/function safezone:cmd/show/nearest
- 显示最近安全区的中心。
/function safezone:cmd/show/nearby
- 显示100格范围内所有安全区的中心。
/function safezone:cmd/show/all
- 显示所有当前加载的安全区的中心。
/function safezone:cmd/hide/nearest
- 隐藏最近安全区的中心。
/function safezone:cmd/hide/nearby
- 隐藏100格范围内所有安全区的中心。
/function safezone:cmd/hide/all
- 隐藏所有当前加载的安全区的中心。
针对出生区块内安全区的防破坏机制
为了节省服务器性能,安全区仅在附近有玩家时才激活。
如果安全区位于始终加载的出生区块内,且附近没有玩家,某些实体可能会破坏出生点区域。
为防止这种情况,将其设为出生点安全区:
/function safezone:cmd/add/spawn
- 为最近的安全区启用始终激活的防破坏机制。
/function safezone:cmd/remove/spawn
- 为最近的安全区恢复常规防破坏机制。
/function safezone:cmd/move/safezone
- 将最近的出生点安全区移动到您的位置。
/function safezone:cmd/tp/safezone
- 传送至最近的出生点安全区。
使实体免受生存模式与冒险模式玩家伤害
/function safezone:cmd/add/invulnerable
- 使最近的实体变得无敌。
/function safezone:cmd/remove/invulnerable
- 使最近的实体重新可受伤害。
/function safezone:cmd/move/invulnerable
- 将最近的无敌实体安全区移动到您的位置。
/function safezone:cmd/tp/invulnerable
- 传送至最近的无敌实体。
允许特定实体进入安全区
/function safezone:cmd/add/allowed
- 允许最近的实体进入安全区。
/function safezone:cmd/remove/allowed
- 禁止最近的实体进入安全区。
/function safezone:cmd/move/allowed
- 将最近的允许进入的实体移动到您的位置。
/function safezone:cmd/tp/allowed
- 传送至最近的允许进入的实体。
冻结特定实体的移动
/function safezone:cmd/add/frozen
- 冻结最近实体的移动。
/function safezone:cmd/remove/frozen
- 解冻最近实体的移动。
/function safezone:cmd/move/frozen
- 将最近的冻结实体移动到您的位置。
/function safezone:cmd/tp/frozen
- 传送至最近的冻结实体。
使安全区内所有实体无敌
/function safezone:cmd/add/entity_resistance
- 最近安全区内的实体不再受到伤害。
/function safezone:cmd/remove/entity_resistance
- 最近安全区内的实体现在可以受到伤害。
使安全区内所有实体不造成近战伤害
/function safezone:cmd/add/entity_weakness
- 最近安全区内的实体不再造成近战伤害。
/function safezone:cmd/remove/entity_weakness
- 最近安全区内的实体现在可以造成近战伤害。
轻量版中不包含:
使所有玩家在安全区内无敌
默认开启。
/function safezone:cmd/add/player_resistance
- 处于最近安全区内的玩家不再受到伤害。
/function safezone:cmd/remove/player_resistance
- 处于最近安全区内的玩家现在会受到伤害。
使所有玩家在安全区内无法造成近战伤害
默认开启。
/function safezone:cmd/add/player_weakness
- 处于最近安全区内的玩家不再造成近战伤害。
/function safezone:cmd/remove/player_weakness
- 处于最近安全区内的玩家现在可以造成近战伤害。
安装
与任何数据包一样,将 SafeZone.zip 放入世界的 datapacks 文件夹后,使用 /reload 命令即可激活它。
卸载
运行 /function safezone:cmd/delete/all 以删除所有当前加载的安全区。
反馈
欢迎在我的 Discord 服务器 上提交错误报告、功能建议或其他反馈。
Create Zones in which combat, damage, projectiles and hostile mobs are disabled!
This datapack is heavily performance optimized to ensure it runs well even on low-end servers.
The light version features slightly better performance, but slightly fewer features.
Features
Create spherical safezones of 6 different sizes:
- Size 1 with a 15 block radius
- Size 2 with a 31 block radius
- Size 3 with a 47 block radius
- Size 4 with a 63 block radius
- Size 5 with a 79 block radius
- Size C with a 45 block radius by default - This is here to be customized within the Datapack files.
Check the Commands below to learn how to create safezones among many other things.
Inside a safezone, these rules apply:
- Players in survival & adventure mode cannot take or deal damage.
- Hostile mobs will disappear instantly without dropping loot.
- Most projectiles are instantly deleted. Exceptions are ender pearls, player-thrown breeze charges and snowballs.
- Tridents will instantly drop to the ground.
- The area inside is safe from explosions and fire from lightning strikes.
But beware, a fire from outside a safezones could spread inside if the blocks along its border allow it.
Additional features
- Allow certain hostile mobs inside safezones
- Freeze the movement of certain mobs
- Make mobs invulnerable to damage from players in survival & adventure mode
- Show & hide the center of a safezone
- Many additional QoL commands
Presentation
- Projectiles bounce off a magic barrier, creating blue sparks and a high-pitch shattering sound.
- Hostile mobs have their soul drained from them as they are pulled underground upon entering a safezone.
- All safezone commands have additional feedback to make understanding them easier.
Compatability
Safezones also block the usage of weapons from Incendium and Spellbound Weapons.
Commands
General Commands
/function safezone:cmd/help
- Displays a list of all available safezone commands.
/function safezone:cmd/create/size[1-5]
- Creates a safezone of a designated size.
/function safezone:cmd/move/safezone
- Moves the nearest safezone to your position.
/function safezone:cmd/tp/safezone
- Teleport to the nearest safezone.
/function safezone:cmd/delete/nearest
- Deletes nearest safezone.
/function safezone:cmd/delete/nearby
- Deletes all safezones within 100 blocks.
/function safezone:cmd/delete/all
- Deletes all currently loaded safezones.
Make safezones visible
When a safezone is made visible, soulflame particles will appear at its center once you are within its range.This makes understanding their range easier and can help locating them.
/function safezone:cmd/show/nearest
- Shows the center of the nearest safezone.
/function safezone:cmd/show/nearby
- Shows the center of all safezones within 100 blocks.
/function safezone:cmd/show/all
- Shows the center of all currently loaded safezones.
/function safezone:cmd/hide/nearest
- Hides the center of nearest safezone.
/function safezone:cmd/hide/nearby
- Hides the center of all safezones within 100 blocks.
/function safezone:cmd/hide/all
- Hides the center of all currently loaded safezones.
Anti-Grief for safezones inside spawnchuncks
To save server performance, safezones are only active if players are nearby.
If a safezone is inside always loaded spawnchunks, certain entities could grief the spawn area, if there are no players nearby.
To prevent this, make it a spawn safezone:
/function safezone:cmd/add/spawn
- Always active Anti-Grief for the nearest safezone.
/function safezone:cmd/remove/spawn
- Regular Anti-Grief for the nearest safezone.
/function safezone:cmd/move/safezone
- Moves the nearest spawn safezone to your position.
/function safezone:cmd/tp/safezone
- Teleport to the nearest spawn safezone.
Make Entities invulnerable to players in survival & adventure mode
/function safezone:cmd/add/invulnerable
- Makes the nearest entity invulnerable.
/function safezone:cmd/remove/invulnerable
- Makes the nearest entity vulnerable.
/function safezone:cmd/move/invulnerable
- Moves the nearest invulnerable entity safezone to your position.
/function safezone:cmd/tp/invulnerable
- Teleport to the nearest invulnerable entity.
Allow certain entities inside safezones
/function safezone:cmd/add/allowed
- Allows nearest entity inside safezones.
/function safezone:cmd/remove/allowed
- Disallows nearest entity inside safezones.
/function safezone:cmd/move/allowed
- Moves the nearest allowed entity to your position.
/function safezone:cmd/tp/allowed
- Teleport to the nearest allowed entity.
Freeze the movement of certain entities
/function safezone:cmd/add/frozen
- Freezes movement of nearest entity.
/function safezone:cmd/remove/frozen
- Unfreezes movement of nearest entity.
/function safezone:cmd/move/frozen
- Moves the nearest frozen entity to your position.
/function safezone:cmd/tp/frozen
- Teleport to the nearest frozen entity.
Make all entities invulnerable inside safezones
/function safezone:cmd/add/entity_resistance
- Entities in the nearest safezone no longer take damage.
/function safezone:cmd/remove/entity_resistance
- Entities in the nearest safezone now take damage.
Make all entities deal no melee damage inside safezones
/function safezone:cmd/add/entity_weakness
- Entities in the nearest safezone no longer deal melee damage.
/function safezone:cmd/remove/entity_weakness
- Entities in the nearest safezone now deal melee damage.
Excluded from light version:
Make all players invulnerable inside safezones
This is on by default.
/function safezone:cmd/add/player_resistance
- Players in the nearest safezone no longer take damage.
/function safezone:cmd/remove/player_resistance
- Players in the nearest safezone now take damage.
Make all players deal no melee damage inside safezones
This is on by default.
/function safezone:cmd/add/player_weakness
- Players in the nearest safezone no longer deal melee damage.
/function safezone:cmd/remove/player_weakness
- Players in the nearest safezone now deal melee damage.
Installing
As with any datapack, use /reload after placing SafeZone.zip in the datapacks folder of your world to activate it.
Uninstalling
Run /function safezone:cmd/delete/all to delete all currently loaded safezones.
Feedback
Feel free to give me bug reports, feature ideas or other feedback on my Discord Server.
下载 Safe Zone
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Safe Zone
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Safe Zone
下载 Safe Zone
下载 Safe Zone
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Safe Zone
下载 Safe Zone
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Safe Zone
下载 Safe Zone
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Safe Zone
暂无更新日志
关于这个资源的讨论、问题反馈与使用心得
还没有讨论,来发第一帖吧
你是这个资源的作者?登录后可认领此资源。
相似资源
数据包
此数据包添加了属于阿瓦里海盗的独特结构,将他们的独特风格带入你的 Minecraft 世界!兼容性:1.20 至 26.3
数据包
一个 Minecraft 光线投射库,能够精确检测玩家正在查看的方块,包括像台阶和楼梯这样的特殊方块形状。
数据包
此数据包添加了新的“祝福模式”难度。
数据包
允许服务器管理员方便地禁用 Xaero's Map 系列模组中的实体雷达、小地图等功能,使竞技游戏更加公平。
数据包
使用原版/生存友好的方法更改青蛙的变种类型。支持原版(寒冷、温带、温暖)以及可选的“More Frogs 2”变种:深红、末影、地狱、毒镖、紫珀、幽匿、灵魂、诡异和木头。
数据包
手持潜影盒时可直接打开,无需将其放置在地面上。只需按住 Shift 并右键点击即可访问你的潜影盒。
评论 0
登录后参与评分
还没有评论,来抢沙发吧