跳到正文

Clickable Entities

作者:virtualengi

Adds the "entityclick" command to add or remove left and right click functionality.

收藏

介绍

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

Clickable Entities

Adds left and right click functionality to entities with the entityclick command

For what would I use this mod?

If you have a server with npc’s and you want an interactable npc that executes a command when it is clicked, you can bind a command with this mod to the entity. Just like big servers such as Hypixel.
You can pair this mod with something like proxycommand for velocity to change between servers

How does the /entityclick command work?

The entityclick command is divided in 2 categories

Add a command binding:

/entityclick add hand entity command
  • hand: the mouse button the player has to press, can be left or right
  • entity: the entity the command will be bound to, can be a UUID or a selector
  • command: the command that will be executed, doesn’t necessarily need the / prefix

Remove a command binding:

/entityclick remove hand entity
  • hand: the mouse button the player has to press, can be left or right
  • entity: the entity the command will be bound to, can be a UUID or a selector

Command Examples

To add a command when the player right-clicks the nearest armor stand

/entityclick add right @e[type=minecraft:armor_stand, limit=1, sort=nearest] tp @p 100 100 100

To remove a command when the player right-clicks the nearest armor stand

/entityclick remove right @e[type=minecraft:armor_stand, limit=1, sort=nearest]

Data Location

Data about the entities is stored under config/clickable-entities/RegisteredEntities.yaml

常见问题

Clickable Entities 支持哪些 Minecraft 版本?

Clickable Entities 支持 Minecraft Java 版 1.20.4–1.21.1,共 5 个版本,可用的加载器:Fabric。下载时注意选择和你游戏版本一致的文件。

Clickable Entities 怎么安装?

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

评论

登录后评论和评分

virtualengi 的其他作品

查看全部 →