这是一个简单的数据包,用于检测玩家是否掉入虚空,并在他们受到任何伤害之前将他们传送出去。
为了保持沉浸感,该数据包会将玩家传送到主世界中完全相同的坐标位置,但高度增加 400 格(即在空中)。
在下落过程中会施加抗性提升 V 效果,因此不会致命。
你可以自定义传送位置或下落是否致命:
更改传送位置:
若要更改玩家的传送目的地(例如世界出生点或“羞耻盒”),请找到 tp_player.mcfunction 文件(解压数据包后,路径为 data/vtp/function/tp_player.mcfunction)。使用任意文本编辑器打开它。
将第 3 行命令末尾的坐标替换为以下内容:
execute if entity @s[y=-64,dy=-9999] in minecraft:overworld run tp @s ~ 400 ~
改为匹配
execute if entity @s[y=-64,dy=-9999] in minecraft:overworld run tp @s [X-coord] [Y-coord] [Z-coord]
使下落变为致命:
如果你希望考验玩家在坠落时的操作能力,请按上述方法找到 tp_player.mcfunction 文件。然后只需删除第 2 行:
execute if entity @s[y=-50,dy=-9999] run effect give @s minecraft:resistance 8 4 true
完成任何修改后,请务必保存文件(Ctrl+S / Cmd+S),并在游戏中禁用原始的数据包版本(或者直接从数据包文件夹中删除 .zip 文件,只保留你创建的已解压版本)。
This is a simple datapack that detects when players have fallen in the void and teleports them out before they take any damage.
To retain immersion, this teleports them to their exact coordinates in the overworld, but 400 blocks in the sky.
Resistance V is applied for the duration of the fall so it is not fatal
You may customise the teleport location or fatality of the fall:
Change TP location:
To change the location that players are teleported to (like world spawn, or a shame box), find the tp_player.mcfunction file (Unzip the datapack, then data/vtp/function/tp_player.mcfunction. Open it in any text editor.
replace the coordinates at the end of this command (line 3):
execute if entity @s[y=-64,dy=-9999] in minecraft:overworld run tp @s ~ 400 ~
to match
execute if entity @s[y=-64,dy=-9999] in minecraft:overworld run tp @s [X-coord] [Y-coord] [Z-coord]
Make the fall fatal:
In the case that you want to skill check players' ability to clutch a fall, find the tp_player.mcfunction file as above. Then simply remove line 2:
execute if entity @s[y=-50,dy=-9999] run effect give @s minecraft:resistance 8 4 true
After making any changes, make sure to save the file ctrl+S/cmd+S, and disable the original datapack version in-game (or just delete the .zip file from the datapack folder and only keep the unzipped one that you have created)
下载 No Void Death
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 No Void Death
下载 No Void Death
下载 No Void Death
下载 No Void Death
下载 No Void Death
下载 No Void Death
首次发布
关于这个资源的讨论、问题反馈与使用心得
还没有讨论,来发第一帖吧
你是这个资源的作者?登录后可认领此资源。
相似资源
数据包
此数据包添加了属于阿瓦里海盗的独特结构,将他们的独特风格带入你的 Minecraft 世界!兼容性:1.20 至 26.3
数据包
此数据包添加了新的“祝福模式”难度。
数据包
使用原版/生存友好的方法更改青蛙的变种类型。支持原版(寒冷、温带、温暖)以及可选的“More Frogs 2”变种:深红、末影、地狱、毒镖、紫珀、幽匿、灵魂、诡异和木头。
数据包
手持潜影盒时可直接打开,无需将其放置在地面上。只需按住 Shift 并右键点击即可访问你的潜影盒。
数据包
所有我原创内容的合集。
数据包
粉色方块中的千种可能!
评论 0
登录后参与评分
还没有评论,来抢沙发吧