Localised Wither Remover v1.0.0
- 创建者:Marghost
- 邮箱:marghost[@]protonmail.com
- 网站:
- 项目 GitHub:
描述
此 Minecraft 数据包旨在保护世界中的特定区域免受凋灵破坏。它允许你自动击杀来自世界特定位置的凋灵。默认情况下,它配置为保护你的世界重生点和主末地岛。
该模组以阻止玩家获得下界之星或凋灵头颅的方式处理凋灵。这有助于减少对该数据包机制的滥用。
已在 Minecraft Java 版 1.20.4 版本上测试。
安装
- 从项目发布页面下载名为
localised_wither_remover-1.0.0.zip 的 zip 文件:localised_wither_remover-1.0.0.zip
- 将
localised_wither_remover-1.0.0.zip 放入服务器的 .\world\datapack\ 目录中
- 重启服务器或运行
/reload 命令
受保护区域
主世界
此数据包的默认机制保护主世界中以 x=0 y=64 z=0 为中心、半径 300 格的区域。
这对应于大多数服务器上的重生点(SPAWN)。
末地
此数据包的默认机制保护末地中以 x=0 y=63 z=0 为中心、半径 200 格的区域。
这不仅保护了主岛屿,还防止凋灵头颅穿过末地传送门并摧毁你的世界重生点。
自定义受保护区域
如果您自定义了世界出生点坐标,请查看此部分。
默认情况下,此数据包假定您的出生点位于 x=0 y=64 z=0。如果您在服务器上修改过这些值,则需要调整此数据包以使其兼容并适配您实际的出生点位置。
如何修改出生点坐标
- 解压此数据包以便进行修改
- 打开
.\data\localisedwitherremover\functions\localisedwitherremover.mcfunction
- 通过编辑第 4 行和第 7 行来修改出生点坐标值
- 将修改后的数据包放入服务器的
\world\datapacks\ 目录中
第 4 行
execute in minecraft:overworld run tp @e[type=wither,x=<SPAWN_X_COORD>,y=<SPAWN_Y_COORD>,z=<SPAWN_Z_COORD>,distance=..<RANGE>] -15 -65 -15
第 7 行
execute in minecraft:overworld run kill @e[type=wither,x=<SPAWN_X_COORD>,y=<SPAWN_Y_COORD>,z=<SPAWN_Z_COORD>,distance=..<RANGE>]
数值说明
- <SPAWN_X_COORD>:生成 X 坐标。默认值 = 0
- <SPAWN_Y_COORD>:生成 Y 坐标。默认值 = 64
- <SPAWN_Z_COORD>:生成 Z 坐标。默认值 = 0
- < RANGE >:受保护区域的范围。默认值 = 300
额外说明
- 若要禁用出生点保护,需要在第 4 行和第 7 行的前面加上 #。
- 若要禁用末地保护,需要在第 10 行和第 13 行的前面加上 #。
- 此脚本设置为每 5 秒运行一次,你可以通过修改第 17 行的
100t 来调整以 tick 为单位的间隔时间。
许可证
GNU 通用公共许可证 v3
Localised Wither Remover v1.0.0
- Creator : Marghost
- Email : marghost[@]protonmail.com
- Website :
- Project's Github :
Description
This minecraft datapack is geared toward protecting specific areas in your world from wither grief. It will allow you to kill automaticly any wither from specific locations of your world. By default it is configured to protect your world spawn and the main end island.
This mod dispose of the wither in a way that prevent player to get Nether Star or Wither Heads. It help reduce abuse of this datapack mecanics.
Tested on minecraft java version 1.20.4.
Installation
- Download the zip file named localised_wither_remover-1.0.0.zip from the project release page : localised_wither_remover-1.0.0.zip
- Drop localised_wither_remover-1.0.0.zip in the .\world\datapack\ directory of your server
- Reboot your server or run the /reload command
Protected Areas
Overworld
The default mecanic of this datapack protect a range of 300 blocks centered on x=0 y=64 z=0 in the overworld.
This correspond to SPAWN on most servers.
The End
The default mecanic of this datapact protect a range of 200 blocks centered on x=0 y=63 z=0 in the end.
This protect the main island but also prevent wither skulls to go through the end portal and destroy your world spawn.
Protected Area Customization
Take a look at this section if you have custom world spawn coordinates.
By default this datapack take for granted that your spawn is located ad x=0 y=64 z=0. If you edited this value on your server, you need to modify this datapack to make it compatible and cover your actual spawn.
How to modify Spawn coordinates
- Unzip this datapack to make the modifications
- Open .\data\localisedwitherremover\functions\localisedwitherremover.mcfunction
- The spawn coordinate values can be modified by editing line 4 and line 7
- Drop the edited datapack in the \world\datapack\ directory of your server
Line 4
execute in minecraft:overworld run tp @e[type=wither,x=<SPAWN_X_COORD>,y=<SPAWN_Y_COORD>,z=<SPAWN_Z_COORD>,distance=..<RANGE>] -15 -65 -15
Line 7
execute in minecraft:overworld run kill @e[type=wither,x=<SPAWN_X_COORD>,y=<SPAWN_Y_COORD>,z=<SPAWN_Z_COORD>,distance=..<RANGE>]
Values description
- <SPAWN_X_COORD> : Spawn X value. Default value = 0
- <SPAWN_Y_COORD> : Spawn Y value. Default value = 64
- <SPAWN_Z_COORD> : Spawn Z value. Default value = 0
- < RANGE > : Range of the area protected. Default value = 300
EXTRA
- To disable Spawn protection you need to put a # in front of lines 4 and 7.
- To disable End protection you need to put a # in front of lines 10 and 13
- This script is made to run every 5 seconds, you can adjust this value in ticks by adjusting
100t line 17.
License
GNU GENERAL PUBLIC LICENSE v3
评论 0
登录后参与评分
还没有评论,来抢沙发吧