Skip to content

Mineflow/Examples

Repository files navigation

MineflowExamples

How To Use

jsonファイルをmineflow/importsフォルダに入れて/mineflowコマンドで読みこんでください
Put the json file in the mineflow/imports folder and import it with /mineflow command

videos

https://www.youtube.com/watch?v=w7foeznrqd0&list=PL2poTI_Jv_RgIrAT62jWQ55KSfonOxW6X

/id コマンドで手に持っているアイテムのidを表示する
Send ID of the item in player's hand with the command /id.

触ったブロックの情報をtip欄に送る
Send info about the block you touched to the tip field.

/clankコマンドでお金を1000消費してガチャを引く
Draw a lottery with the command "/clank".

config: clank.yml

cost: <price>
items:
- id: <item id>
  count: <item count>
language: <jpn or eng>

殴ったエンティティが追いかけてくる(ジャンプはしません)
The entity you attacked will track you down.

checkCoolDownの使用例
Example for checkCoolDown

functions

指定した時間以内に呼び出すとfalseをそれ以外はtrueを返す
使用方法:

  1. スクリプト > ほかのレシピを呼び出すでにaieuo/function/checkCoolDownを、に秒数を入力
  2. スクリプト > もし...」を追加する
  3. もしの条件にスクリプト > 文字列を比較するを追加して{result}trueが等しいか調べる

使用例: BlockPlaceCoolDown

Returns false if it is executed within the specified interval or less, and true otherwise.
How to use:

  1. Enter aieuo/function/checkCoolDown in and seconds in of Script > Call Other Recipes
  2. Add the action Script > if
  3. Add script > compare strings to the condition and check if {result} is equal to true

Examples: BlockPlaceCoolDown

Custom trigger

プレイヤーが特定のブロックに乗ったときにカスタムトリガーを発火します.
初期値では石ブロックに乗ったときにwalk_on_stoneという名前のカスタムトリガーが呼ばれます. ブロックを変更するにはcustom_trigger/walk_on_specific_block/initを編集してください.
使用するにはプレイヤーが動いた時サーバーが開始したときのイベントトリガーが有効になっている必要があります

Fires a custom trigger when a player walks on a specific block.
By default, a custom trigger named walk_on_stone is called when the player walks on a stone block. To change the block and trigger name, you can edit the custom_trigger/walk_on_specific_block/init recipe.
Note: Make sure that the When a player moves and When the server start event triggers are enabled.