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

minecraft:projectile

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

概览

minecraft:projectile 是一个物品组件:写在自定义物品的 components 对象中。 把物品标记为射击类物品(比如弓)可以发射的弹药,并指定飞出去的实体。

字段

字段类型默认值说明
minimum_critical_powernumber0射击至少要蓄力多少才可能造成暴击。
projectile_entityEntity Reference无发射出去的实体,例如 "minecraft:arrow"。

示例

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

BP/items/<name>.json
{
  "minecraft:projectile": {
    "minimum_critical_power": 0,
    "projectile_entity": {}
  }
}

物品: 行为包

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