
ClientCommands
各种客户端实用工具的命令形式。
ClientCommands
以命令形式添加了一些客户端实用工具。
当前工具
所有命令都是 /client 的子命令
| 命令 | 描述 | 示例 |
|---|---|---|
give <item> [amount] |
仅限创造模式(别名:/cive)给予玩家任意物品堆叠,支持任意 NBT。原版语法。 |
give apple{display:{Name:'{"text":"abc"}'}} 1 |
rename <name> [customName] |
仅限创造模式 重命名玩家当前手持的物品。用于快速重命名物品的简单语法。将 customName 设为 true 以模拟铁砧重命名行为。 |
rename "Cool Sword" false |
rename json <name> |
同上,但接受任何有效的文本组件。 | rename json {"text":"Cool Sword","color":"gold"} |
enchant add <enchantment> <level> |
仅限创造模式 为玩家当前手持的物品添加所需的附魔。没有原版命令的限制。 |
enchant add minecraft:depth_strider 10 |
enchant clear |
仅限创造模式 清除手持物品上的所有附魔。 |
enchant clear |
enchant remove <enchantment> |
仅限创造模式 从玩家当前手持的物品上移除附魔。 |
enchant remove minecraft:depth_strider |
modifier list |
列出玩家当前手持物品上的属性修饰符。 | modifier list |
potion create <type> <effect> [<amplifier>] [infinite|<duration>] [<hideParticles>] |
仅限创造模式 创建指定类型(normal/splash/linger)并带有指定效果的药水物品。 |
potion create linger minecraft:blindness 0 infinite |
potion modify color (<color>|hex) [<colorHex>] |
仅限创造模式 将手持药水的颜色修改为 16 种 Minecraft 颜色之一或自定义十六进制颜色 |
potion modify color hex ffaa00 |
potion modify effect set <effect> <amplifier> (infinite|<duration>) [<hideParticles>] |
仅限创造模式 设置手持药水中药水效果的详细信息。 |
potion modify effect set minecraft:glowing 0 100 |
potion modify effect remove <effect> |
仅限创造模式 从手持药水中完全移除药水效果。 |
potion modify effect remove minecraft:haste |
potion modify type <type> |
仅限创造模式 更改药水的类型(normal/splash/linger) |
potion modify type linger |
modifier add <attribute> <operation> <value> <slot> |
仅限创造模式 为手持物品添加属性修饰符。 |
modifier add minecraft:generic.armor_toughness add_multiplied_base 2 armor |
modifier remove <uuid> |
仅限创造模式 从手持物品上移除属性修饰符。 |
modifier remove bae7d9d5-6221-45e3-9d14-4956229557f2 |
modifier modify <uuid> <attribute|operation|value|slot|> <value> |
仅限创造模式 列出玩家当前手持物品上的属性修饰符。 |
modifier modify bae7d9d5-6221-45e3-9d14-4956229557f2 slot hand |
components set |
仅限创造模式 设置手持物品的物品组件。 |
components set [food={saturation:1,nutrition:10}] |
components merge |
仅限创造模式 将物品组件合并到手持物品中。 |
components merge [unbreakable={}] |
components get |
获取手持物品的物品组件。 | components get |
附加功能
- 聊天消息支持长(32K)字符限制
翻译者
- 拉脱维亚语:@Foxytisy
正在加载版本记录…
正在加载评论…
评论在新手盒子客户端中发表,这里同步展示。