時刻を調べる gameplay.timeQuery
ひとことで言うと
現在の時刻を、ゲームのティック数で取得します。
ブロックとコード
現在のゲーム時間
ブロックの文言は公式の日本語版に合わせています(形は簡易表示です)。
gameplay.timeQuery(TimeQuery.GameTime)gameplay.time_query(GAME_TIME)引数(ひきすう)
引数とは、ブロックの中で自分で選んだり入力したりする部分のことです。
| 名前 | 選べる値 | 意味 |
|---|---|---|
| query | TimeQuery | 取得する時刻の種類 |
使用例
Set the time of day in the game to the same time as real life.
JavaScript
gameplay.timeSet(gameplay.timeQuery(TimeQuery.RealLife));Python
gameplay.time_set(gameplay.time_query(REAL_LIFE))