1. Wiki
  2. /物品
  3. /minecraft:interact_button

minecraft:interact_button

不想手写?在 GodCraft 里打开一个开关,就能帮你设置好 minecraft:interact_button。Get GodCraft

概览

minecraft:interact_button 是一个物品组件:写在自定义物品的 components 对象中。 在触屏设备上手持该物品时显示一个操作按钮。设为 true 显示标准的“使用物品”文字,或者填入文本显示你自己的文字。

示例

写在 BP/items/<name>.json 的 components 对象中(值为默认值或占位值):

BP/items/<name>.json
{
  "minecraft:interact_button": true
}

物品: 行为包

We use cookies to improve your experience and analyse site traffic. Learn more