跳到正文

Pathway

作者:CJDev

Library in aid of controlling entities

收藏

介绍

中文介绍正在准备中,下面暂时显示原文。

There are still a few issues, so feel free to open pull requests to help improve this project! 😁

✅ Features

  • Automatic Movement of Entities to their Destination

📖 Usage

Add the pathway tag to an entity and set the destination by setting data.pathway.target to a list with three doubles, e.g., Player’s Position

Config

Defined by attributes, except:\
scoreboard players set @s pathway.maxDistance <any> — default: unset — maximum distance it will pathfind at once — Change at your own discretion. Recommended: 100\
scoreboard players set @s pathway.maxStepHeight <any> — default: unset — maximum blocks to step up at once

Example usage

#code:loop.mcfunction:

execute as @e[tag=my_entity] at @s run data modify entity @s data.pathway.target set from entity @p[distance=..50] Pos

常见问题

Pathway 支持哪些 Minecraft 版本?

Pathway 支持 Minecraft Java 版 1.21–26.1.2,共 15 个版本,可用的加载器:Fabric / Forge / NeoForge / Quilt。下载时注意选择和你游戏版本一致的文件。

Pathway 怎么安装?

新建世界时在「数据包」里把下载的 .zip 拖进去;已有的存档,把文件放进存档目录下的 datapacks 文件夹,进游戏输入 /reload 即可生效。服务器同样放在世界目录的 datapacks 里。

评论

登录后评论和评分

CJDev 的其他作品

查看全部 →