數據類型
Action 模組中使用的數據類型。
位置(Position)
方塊或是實體的位置。
Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
x | 數字 | 是 | - | 位置的 x 座標。 |
y | 數字 | 是 | - | 位置的 y 座標。 |
z | 數字 | 是 | - | 位置的 z 座標。 |
方塊屬性(BlockProps)
方塊的屬性。 每個方塊都有一個名稱和一組屬性。
Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
name | 字串 | 是 | - | 方塊的名稱。 |
properties | 物件 | 否 | - | 方塊的屬性。 |
物品 ID(Item ID)
物品的 ID。
- Item ID
物品的 ID。可以是數字或是字串。
偏航(Yaw)
實體的偏航。
南: 0
西: 90
北: 180
東: -90
俯仰(Pitch)
實體的俯仰。
向下: 90
向上: -90
直立: 0
範圍(Bound)
一個由兩個位置組成的範圍。
- Bound
一個由兩個位置組成的範圍陣列。
結果參考(ResultReference)
ResultReference 作為一個動作結果的唯一標識符。
- ResultReference
參考 ID,字串。
Last modified: 12 11月 2023