シュルカーボックスの中身を調べる方法
実現したいことはこれです https://discord.com/channels/545926404785569793/587090563074097199/1072855822121570324
1.20.5以降 NBT の仕様が変更され、従来の方法である「 "tag;BlockEntityTag;Items" を利用したアイテムの取り出し」が動かなくなりました。
代替案として以下のコードを書いたのですが、この後このNBTをどのようにアイテムとして取り出すかが不明なため質問させてもらいました。
どちらかというとskriptというよりMinecraftのNBTについての話になってしまいますが回答よろしくお願いします。
書いたコード
⇩上のコードを使用して得た「テスト」と書かれた石ブロックのNBT https://gyazo.com/6eeacb672bf77c0324cb344b28b74fea
Gyazo
Gyazo
6 Replies
PR環境ですか?
はい
parsed as Item
とかではいけないですかね
試したんですが無理でした
これ使えませんか?
https://skripthub.net/docs/?id=10691
Skript Hub - Documentation
NBT - Item from NBT (Expression) - SkBee
This expression allows you to grab an item from NBT compounds.
This can be useful when wanting to grab items from file nbt, or nbt of an entity or an inventory holding block (like a chest or furnace).
It can also be useful for creating your own serializing system.
NOTE: Items previously serialized in MC versions 1.20.4 and below, will properly u...
できました! ありがとうございます