跳到正文

Jockey API

作者:AvatarKage

Jockey is a lightweight API designed to simplify the implementation of custom entity jockeys using data tags.

收藏

介绍

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

Jockey is a lightweight API designed to simplify the implementation of custom entity jockeys using data tags. On valid match, the entity will pathfind to the target then mount it.

FOR DEVELOPERS

The API dynamically loads entity_type tags from datapacks. For it to work, both tags must contain the same identifier. An identifier can be anything you want, but try to make them unique to your pack to prevent cross-matches with other mods unless that is your intention. Optionally, adding baby_ or adult_ at the start of the ID will force the jockey entity to be either a baby or an adult to ride. Below is an example!

  • jockey_api:<ID>_jockeys (the entities who will ride)
  • jockey_api:<ID>_targets (the entities who will be ridden)

常见问题

Jockey API 支持哪些 Minecraft 版本?

Jockey API 支持 Minecraft Java 版 1.20–1.21.8,共 12 个版本,可用的加载器:Forge / NeoForge。下载时注意选择和你游戏版本一致的文件。

Jockey API 怎么安装?

先用 PCL2 或 HMCL 启动器安装对应版本的 Forge / NeoForge,再把下载的 .jar 文件放进游戏目录的 mods 文件夹,重新启动游戏即可。开启了版本隔离的,mods 文件夹在 versions/版本名 下面。运行环境:仅服务端。

评论

登录后评论和评分

AvatarKage 的其他作品

查看全部 →