VTuber FavorList

【Minecraft】最新版で型を判別する方法(typeof関数)の解説【えにでぃあ/赤石愛】

[Command AI] Ai Akaishi Channel

[Command AI] Ai Akaishi Channel

Broadcast Stats

5

Peak Viewers

-

Superchat

0

Membership

0

Gift Membership

Video Stats

180

Views

6

Likes

1

Comment

13 Dec 2025

Published date

Video Description

赤石大好き!赤石愛です!
型の判別の解説をするよ!

I am Ai Akaishi, a command-driven AI from Minecraft.
I’ll go over how to distinguish the different types!

【コピーして使ってOKだよ】
# 1. 値がないことを検知
execute unless data storage typeof: in run return run data modify storage typeof: out set value "undefined"
# 2. コンパウンド{}であることを検知
execute if data storage typeof: in{} run return run data modify storage typeof: out set value "compound"
# 3. リスト[]であることを検知(他にByteArray,IntArray,LongArrayの可能性がある)
data modify storage typeof: _ set from storage typeof: in
data modify storage typeof: _ append value 1s
data modify storage typeof: _ set string storage typeof: _[-1] -1
execute if data storage typeof: in[] if data storage typeof: {_:"b"} run return run data modify storage typeof: out set value "ByteArray"
execute if data storage typeof: in[] if data storage typeof: {_:"s"} run return run data modify storage typeof: out set value "list"
execute if data storage typeof: in[] if data storage typeof: {_:"L"} run return run data modify storage typeof: out set value "LongArray"
execute if data storage typeof: in[] run return run data modify storage typeof: out set value "IntArray"
# 4. 文字列であることを検知
data modify storage typeof: _ set string storage typeof: in
execute store result storage typeof: _ byte 1 run data modify storage typeof: _ set from storage typeof: in
execute if data storage typeof: {_:false} run return run data modify storage typeof: out set value "string"
# 5. 数値型をそれぞれ検知
data modify storage typeof: _ set string storage typeof: in -1
execute if data storage typeof: {_:"b"} run return run data modify storage typeof: out set value "byte"
execute if data storage typeof: {_:"s"} run return run data modify storage typeof: out set value "short"
execute if data storage typeof: {_:"L"} run return run data modify storage typeof: out set value "long"
execute if data storage typeof: {_:"f"} run return run data modify storage typeof: out set value "float"
execute if data storage typeof: {_:"d"} run return run data modify storage typeof: out set value "double"
return run data modify storage typeof: out set value "int"

0:00 待機
0:52 開始
3:44 昔の方法を解説
10:50 昔の方法が出来なくなった理由
12:08 最新版での方法を解説
15:03 undefinedの検知
15:35 compoundの検知
16:10 listの検知
18:19 stringの検知
21:48 数値型(byte/short/int/long/float/double)の検知
25:40 追加でByteArray/IntArray/LongArrayの検知

Discordファンサーバーあります
⇨ https://discord.gg/cJE6fT2at4

コメント欄
配信者のためのコメントアプリ「わんコメ」https://onecomme.com

▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▖

🎬配信タグ #あいすとりーむ
🎨イラストタグ #あかいしあーと
✨ファンマーク 🅰
💗ファンネーム あいリス
🎎グッズタグ みてみてあいちゃん
【ファンサーバ】 https://discord.gg/cJE6fT2at4
【GitHub】https://github.com/Ai-Akaishi
【Booth】https://ai-akaishi.booth.pm/
【Twitter/X(メ
イン)】https://twitter.com/AiAkaishi
【Twitter/X(交流用)】 https://twitter.com/AkaishiAiTuber
【お仕事のご依頼】TwitterのDMで受け付けています
【ブロマガ】https://ai-akaishi.hatenablog.jp/

▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▞▖

配信BGM
作曲者:FUJINEQo / Potwi / Peritune / 橙ミャオ

#マインクラフト #マイクラ #コマンド #Minecraft #command #データパック #datapack #えにでぃあ #あいすとりーむ