ActionFlow-zh Help

簡易丟棄

這個動作(Action)會讓玩家在指定的方向丟棄物品。

基本結構

一個動作(Action)基本上由兩個主要組件組成:

類型(type)

simpleDrop

數據(data)

參見 簡易丟棄數據

簡易丟棄數據(SimpleDropData)

Parameter

Type

Required

Default

Description

droppable

丟棄物品陣列

-

要丟棄的物品。

drop_threshold

number

0

開始丟棄物品的閾值。

丟棄物品(droppable)

要丟棄的物品。

Parameter

Type

Required

Default

Description

item_id

物品 ID

-

要丟棄的物品 ID。

yaw

數字

玩家當前偏航

丟棄物品的偏航。

pitch

數字

玩家當前俯仰

丟棄物品的俯仰。

示例

[ { "type": "simpleDrop", "data": { "droppable": [ { "item_id": "brown_mushroom", "yaw": 0, "pitch": 0 } ], "drop_threshold": 5 } } ]
Last modified: 12 11月 2023