Manual:Minecraft:projectile (物品组件):修订间差异

来自Minecraft基岩版开发Wiki
添加的内容 删除的内容
无编辑摘要
标签移动版编辑 移动版网页编辑 高级移动版编辑
(文本替换 - 替换“<syntaxhighlight>”为“<syntaxhighlight lang="text">”)
 
(未显示同一用户的1个中间版本)
第1行: 第1行:
{{lowercase c|minecraft:projectile|minecraft:projectile}}
{{Pagenav|数据驱动|数据驱动/物品|title=minecraft:projectile}}{{lowercase c|minecraft:projectile|minecraft:projectile}}{{Infobox component
{{About|一种物品组件|同名实体组件|Manual:minecraft:projectile (实体组件)}}
| title = minecraft:projectile
| domain = item
| type = component
| api = dd
| format-version = 1.16.100
| added = 1.16.100.56
}}{{About|一种物品组件|同名实体组件|Manual:Minecraft:projectile_(实体组件){{!}}minecraft:projectile}}允许物品作为弹射物的物品形式。


===结构===
==模式==
<syntaxhighlight lang="text">
object "minecraft:projectile" : opt
{
string "projectile_entity"
float "minimum_critical_power"
}
</syntaxhighlight>

==结构==
<div class="treeview">
<div class="treeview">
* {{json|object|minecraft:projectile}}:根对象。
* {{json|object|minecraft:projectile}}:根对象。
** {{json|string|projectile_entity}}:作为弹射物所发射的实体。
** {{json|string|projectile_entity}}:作为弹射物所发射的实体。
** {{json|int|minimum_critical_power}}:要使弹射物命中时暴击,所必须蓄力的时间。
** {{json|float|minimum_critical_power}}:要使弹射物命中时暴击,所必须蓄力的时间。{{info needed}}
</div>
</div>


===效果===
==示例==
<syntaxhighlight lang="json" line>
允许物品作为弹射物的物品形式。
"minecraft:projectile": {
"projectile_entity" : "minecraft:thrown_trident",
"minimum_critical_power" : 1.0
}
</syntaxhighlight>

==历史==
{{History|Bedrock}}
{{History||1.16.100|snap=1.16.100.56|加入了{{samp|minecraft:projectile}}。}}
{{History|foot}}

==漏洞==
{{issue list|minecraft:projectile|style=s}}

2022年12月30日 (五) 05:25的最新版本

数据驱动 物品 > minecraft:projectile
minecraft:projectile
附加包组件
组件所属
组件类型
1.16.100
加入版本

允许物品作为弹射物的物品形式。

模式[编辑]

object "minecraft:projectile" : opt
{
	string "projectile_entity"
	float "minimum_critical_power"
}

结构[编辑]

  •  minecraft:projectile:根对象。
    •  projectile_entity:作为弹射物所发射的实体。
    •  minimum_critical_power:要使弹射物命中时暴击,所必须蓄力的时间。‌[需要更多信息]

示例[编辑]

"minecraft:projectile": {
	"projectile_entity" : "minecraft:thrown_trident",
	"minimum_critical_power" : 1.0
}

历史[编辑]

基岩版
1.16.1001.16.100.56加入了minecraft:projectile

漏洞[编辑]

关于minecraft:projectile的漏洞在国际版中由漏洞追踪器维护,请在此报告漏洞。