跳到正文

Third Person Control

作者:barden

utils datapack to Control Entities in Third Person, with WASD, Jump and Sneak controls!

收藏

介绍

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

speclib/thirdpersoncontrol!

  • This datapack allows players to control entities in THIRD PERSON via WASD, Jump and Sneak INPUTS!
  • This datapack only works in 1.21.4 and above!

Modules:

  • Camera Interpolate

How to Use:

Third Person Control:

The Third Person Control is a part/main module of the datapack which allows players to control entities with WASD. It takes player input via the new Player Input predicates and calculates and applies Motion Vector into the Motion NBT of the entity. The datapack also allows players to spectate entities (in third person). The camera positions are initialized in tpc:gb/load. All entities seen in that function file are controllable with WASD, jump and sneak. Some entities have special controls, like the entities which can fly can gain altitude with holding down jump.

  • Spawn Entity and Control In Third Person: /function tpc:summon {entity:"armor_stand"}
  • Spectate an Entity with a Specific Tag: /function tpc:spectate {tag:"temp_tag"}
  • Spectate a Random Entity with a Specific Tag: /function tpc:spectate_random {sub_tag:"temp_tag"}
  • Unspectate Entities: /function tpc:remove

Camera Interpolate (Module):

The Camera Interpolate Module allows users to interpolate to a specific ‘X’ and ‘Y’ rotation, with a particular ‘SPEED’ value. When the command is ran, the player camera will find the shortest path to the given rotation coordinates and interpolate and the provided speed. The Module also allows players to switch from Controlling the Entity to Spectating It. When Spectating the Entity, their Camera will randomly interpolate to a random direction every 10 seconds.

  • Interpolate Camera: /function camera:interpolate {"x":10,"y":30,"speed":200} // Greater the Speed Value, Slower the Interpolation.
  • Interpolate to a Random Direction: /function camera:interpolate_random
  • Toggle from Entity Controller → Entity Spectator (and vice versa): /function camera:toggle_control

常见问题

Third Person Control 支持哪些 Minecraft 版本?

Third Person Control 支持 Minecraft Java 版 1.21.4–26.2,共 12 个版本,可用的加载器:Fabric / Forge / NeoForge / Quilt。下载时注意选择和你游戏版本一致的文件。

Third Person Control 怎么安装?

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

评论

登录后评论和评分

barden 的其他作品

查看全部 →