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

minecraft:bundle_interaction

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

概览

minecraft:bundle_interaction 是一个物品组件:写在自定义物品的 components 对象中。 让物品拥有收纳袋的行为:特殊的打开/关闭操作,以及显示里面装了什么的提示框。物品还需要 minecraft:storage_item 才能装东西。

这是实验性功能:只有在开启了对应实验性玩法的世界中才能生效,并且在以后的版本中可能会改变。

字段

字段类型默认值说明
num_viewable_slotsinteger12提示框一次显示多少个已存放的物品,范围 1 到 64。范围:1 到 64

示例

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

BP/items/<name>.json
{
  "minecraft:bundle_interaction": {
    "num_viewable_slots": 12
  }
}

物品: 行为包

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