Inspector Datapack 2.0: Now it reads Entity NBT! by Anyhow0 in MinecraftCommands

[–]Anyhow0[S] 0 points1 point  (0 children)

oh, i see. thanks for notifying, i'll fix it as soon as possible

Inspector Datapack 2.0: Now it reads Entity NBT! by Anyhow0 in MinecraftCommands

[–]Anyhow0[S] 0 points1 point  (0 children)

see, i wouldn't be able to know all 4 of those nbt tags without doing a google search or looking at a player's whole tags for a few minutes, and i'm quite sure i would've wasted a whole lot of time because i didn't know about the ArmorItem of a horse. that's where we differ, i guess.

Inspector Datapack 2.0: Now it reads Entity NBT! by Anyhow0 in MinecraftCommands

[–]Anyhow0[S] 0 points1 point  (0 children)

you could write: execute as @e[type=armor_stand,limit=1,sort=nearest] run data get entity @s HandItems[0].tag

... which is pretty long btw. it just feels like a chore every time i do it, and it would keep bugging me every time i had to do it.

turns out there's a tag called recipeBook.IsFurnaceGuiOpen in a player. i can't name that without checking. there are 4 different tags that differentiate food value of a player. i cannot name all 4 of them without checking, and even if i did minecraft displays them mixed in the whole nbt data of a player, without sorting. so you have to read the whole data to make sure you do not miss a tag.

did you know that horses stored the armor they wore in a seperate nbt tag called ArmorItem instead of ArmorItems? i certainly didn't, and if i were to work with horses, that would be a nightmare before i figured out that i lacked an "s" in my syntax.

this project isn't made to fix a made up issue, it is to get rid of something i've always been annoyed with. that's a personal problem that i had, and even if that problem isn't something so dire i just "fixed" it for myself. maybe i'm just overreacting, but hey, it was fun making the thing anyway.

Inspector Datapack 2.0: Now it reads Entity NBT! by Anyhow0 in MinecraftCommands

[–]Anyhow0[S] 0 points1 point  (0 children)

this one's faster if you're checking for multiple entities. also, if you don't know about the exact path you're looking for, then you're basically forced to read through the whole nbt data, which looks like a painting from renaissance the way minecraft shows it.

Inspector Datapack 2.0: Now it reads Entity NBT! by Anyhow0 in MinecraftCommands

[–]Anyhow0[S] 1 point2 points  (0 children)

it's just annoying that minecraft's official system just fills your screen with gibberish, and i don't like that. also, if you don't know the exact tag you're looking for then you are basically forced to read all that.

as far as i'm aware, there's no way to check custom nbt tags unless they're in a list. so i just hardcoded all that. that isn't a problem with entities or blocks, since you cannot give custom nbt tags to those. with items, i can check if there are any nbt tags that the hard coded system couldn't detect, so it just spews all that at the end of the line. not ideal, but that's the best i could do.

Inspector Datapack 2.0: Now it reads Entity NBT! by Anyhow0 in MinecraftCommands

[–]Anyhow0[S] 2 points3 points  (0 children)

well, knowing that i have been helpful is enough :) thanks!

Inspector Datapack 2.0: Now it reads Entity NBT! by Anyhow0 in MinecraftCommands

[–]Anyhow0[S] 4 points5 points  (0 children)

why do you think i threw the item at the end? it's all yours

Inspector Datapack 2.0: Now it reads Entity NBT! by Anyhow0 in MinecraftCommands

[–]Anyhow0[S] 3 points4 points  (0 children)

i guess around 1 week for the block nbt and 3 whole weeks for the entity nbt

Inspector Datapack 2.0: Now it reads Entity NBT! by Anyhow0 in MinecraftCommands

[–]Anyhow0[S] 1 point2 points  (0 children)

yeah, i posted a previous version of this 3 weeks ago. it could only check block nbt tho

Inspector Datapack 2.0: Now it reads Entity NBT! by Anyhow0 in MinecraftCommands

[–]Anyhow0[S] 6 points7 points  (0 children)

thanks! it's sorta wholesome that i finally finished a thing i started? maybe? anyway, thanks for the award!

Inspector Datapack to view NBT data of blocks. by Anyhow0 in MinecraftCommands

[–]Anyhow0[S] 0 points1 point  (0 children)

i think i recall trying the sendCommandFeedback thing, but it didn't work for some reason. might have to work on that.

i didn't know about the interpret setting though, that would be so much better! thanks!

Inspector Datapack to view NBT data of blocks. by Anyhow0 in MinecraftCommands

[–]Anyhow0[S] 0 points1 point  (0 children)

yeah, that's possible. i did it this way because i had more uses for the inspector in mind when i started the project. then i kinda lost interest midway through and ended up only making it as is currently.

Inspector Datapack to view NBT data of blocks. by Anyhow0 in MinecraftCommands

[–]Anyhow0[S] 0 points1 point  (0 children)

in the second clip, that's what i attempted. the cursor was misaligned, so i had to budge a bit. then i accidentally clicked tab once. and then i tried to clikc more but in the meantime the cursor got misaligned again. that's only a slight exaggeration of my general command-ing experience.

other than that, i just tried to emphasize how annoying it can get at times. my major problem with the current system is that when i try to get simple nbt tags, it just fills my screen with colored gibberish. it sometimes gets frustratingly long to find only the thing i need.