Limit the Conditions under which the Respawn Point can be Set.
リスポーン地点を設定できる状況を制限するデータパック
- 1.19
Oh! My Dat!(https://github.com/Ai-Akaishi/OhMyDat)
Anywhere Function(https://github.com/Ai-Akaishi/AnywhereFunction)
Anywhere Teleport(https://github.com/Ai-Akaishi/AnywhereTeleport)
ベッドやリスポーンアンカーでリスポーン地点を設定させたくない状況を登録します
Enumerate to register conditions in which you do not want to use the beds or respawn anchors to set the respawn point.
> no_sleep/tags/functions/conditions.json
{
"values": [
"your_datapack:no_sleep"
]
}
> your_datapack/functions/no_sleep.mcfunction
# アドベンチャーモードだったらダメ / Not if they are in adventure mode.
execute if entity @s[gamemode=adventure]
# 通常世界以外だったらダメ / Not if they are in overworld.
execute unless entity @s[nbt={Dimension:"minecraft:overworld"}]
These codes are released under the MIT License, see LICENSE.