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

minecraft:storage_weight_modifier

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

概览

minecraft:storage_weight_modifier 是一个物品组件:写在自定义物品的 components 对象中。 设置这个物品放进收纳袋等存储物品时占用多少空间。

字段

字段类型默认值说明
weight_in_storage_iteminteger4一个该物品在存储中的重量。设为 0 表示不能放进存储物品。范围:0 到 …

示例

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

BP/items/<name>.json
{
  "minecraft:storage_weight_modifier": {
    "weight_in_storage_item": 4
  }
}

物品: 行为包

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