跳到正文

ClientCommands

作者:Malaclord

Various client-side utilities in command form.

收藏

介绍

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

ClientCommands

Adds a couple client utilities in the form of commands.

Curent tools

All commands are subcommands of /client
|Command|Description|Example|
|—|—|—|
|give <item> [amount]|Creative only (alias: /cive)
Gives the player any itemstack, with any NBT. Vanilla syntax.|give apple{display:{Name:'{"text":"abc"}'}} 1|
|rename <name> [customName]|Creative only
Renames the item the player is currently holding. Simple syntax for quick renaming of items. Set customName to true to mimic anvil rename behavior.|rename "Cool Sword" false|
|rename json <name>|Same as above, but accepts any valid text component(s).|rename json {"text":"Cool Sword","color":"gold"}|
|enchant add <enchantment> <level>|Creative only
Puts the desired enchantment on the player’s currently held item. Does not have the limitations the vanilla command has.|enchant add minecraft:depth_strider 10|
|enchant clear|Creative only
Clears all enchantments on held item.|enchant clear|
|enchant remove <enchantment>|Creative only
Removes enchantment from player’s currently held item.|enchant remove minecraft:depth_strider|
|modifier list|Lists attribute modifiers on player’s currently held item.|modifier list|
|potion create <type> <effect> [<amplifier>] [infinite\|<duration>] [<hideParticles>]|Creative only
Creates potion item of type (normal/splash/linger) with specified effect.|potion create linger minecraft:blindness 0 infinite|
|potion modify color (<color>\|hex) [<colorHex>]|Creative only
Modify the color of the held potion to one of the 16 Minecraft colors or to a custom hexadecimal color|potion modify color hex ffaa00|
|potion modify effect set <effect> <amplifier> (infinite\|<duration>) [<hideParticles>]|Creative only
Set the details of a potion effect in the held potion.|potion modify effect set minecraft:glowing 0 100|
|potion modify effect remove <effect>|Creative only
Completely removes potion effect from held potion.|potion modify effect remove minecraft:haste|
|potion modify type <type>|Creative only
Changes the potion’s type (normal/splash/linger)|potion modify type linger|
|modifier add <attribute> <operation> <value> <slot>|Creative only
Add attribute modifier to held item.|modifier add minecraft:generic.armor_toughness add_multiplied_base 2 armor|
|modifier remove <uuid>|Creative only
Remove attribute modifier from held item.|modifier remove bae7d9d5-6221-45e3-9d14-4956229557f2|
|modifier modify <uuid> <attribute\|operation\|value\|slot\|> <value>|Creative only
Lists attribute modifiers on player’s currently held item.|modifier modify bae7d9d5-6221-45e3-9d14-4956229557f2 slot hand|
|components set|Creative Only
Set item components for held item.|components set [food={saturation:1,nutrition:10}]|
|components merge|Creative only
Merge item components into held item.|components merge [unbreakable={}]|
|components get|Get item components of held item.|components get|

Additional features

  • Long (32K) character limit on chat messages

Translators

  • Latvian: @Foxytisy

常见问题

ClientCommands 支持哪些 Minecraft 版本?

ClientCommands 支持 Minecraft Java 版 1.20–26.2,共 14 个版本,可用的加载器:Fabric。下载时注意选择和你游戏版本一致的文件。

ClientCommands 怎么安装?

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

评论

登录后评论和评分

Malaclord 的其他作品

查看全部 →