概览
minecraft:interact_button 是一个物品组件:写在自定义物品的 components 对象中。 在触屏设备上手持该物品时显示一个操作按钮。设为 true 显示标准的“使用物品”文字,或者填入文本显示你自己的文字。
示例
写在 BP/items/<name>.json 的 components 对象中(值为默认值或占位值):
BP/items/<name>.json
{
"minecraft:interact_button": true
}minecraft:interact_button 是一个物品组件:写在自定义物品的 components 对象中。 在触屏设备上手持该物品时显示一个操作按钮。设为 true 显示标准的“使用物品”文字,或者填入文本显示你自己的文字。
写在 BP/items/<name>.json 的 components 对象中(值为默认值或占位值):
{
"minecraft:interact_button": true
}物品: 行为包
We use cookies to improve your experience and analyse site traffic. Learn more