メインコンテンツまでスキップ
バージョン: 1.x

form

formを使ってプレイヤーにフォームを送信します

使用例

フォームを送信する

/tag @s add "form:{buttons=[{text=ボタン}]}"
image
/tag @s add "form:{title=タイトル,body=ボディ,buttons=[{text=ボタン1,textures=textures/blocks/dirt,tag=タグ1},{text=ボタン2,textures=textures/blocks/diamond_block,tag=タグ2}]}"
image

「ボタン1」をクリックしたときにNotchにつくタグ : タグ1
「ボタン2」をクリックしたときにNotchにつくタグ : タグ2


/tag @s add "form:{title=ルール,body='1.スパムをしない。{nl}2.暴言を言わない。{nl}3.不正行為をしない。{nl}{nl}{nl}{nl}{nl}{nl}{nl}',buttons=[{text=同意する,textures=textures/ui/realms_green_check.png,tag=agree},{text=同意しない,textures=textures/ui/realms_red_x.png}]}"
image

「同意する」をクリックしたときにNotchにつくタグ : agree

変数

変数 を使用することができます