CustomHUD icon indicating copy to clipboard operation
CustomHUD copied to clipboard

Block and entity NBT information support

Open ghost opened this issue 2 years ago • 7 comments

e.g. crop maturity, biological health, horse speed and jumping height, etc

ghost avatar Jun 20 '23 20:06 ghost

something like {nbt:<path>} I assume? That sounds cool

Edit: or {target_block_nbt:<path>} and {item:<slot>:nbt:<path>}

Minenash avatar Jun 22 '23 17:06 Minenash

I think it can be like {target_block:nbt:<path>}, other attributes can also be changed to this. Just like {target_block:id} and {target_block:x}.

ghost avatar Jun 22 '23 18:06 ghost

It's {target_block_id}not {target_block:id} rn, but yeah. : is usually used for dynamic stuff, like slots, settings, time.

Unless you meant the _ should be replaced with the :. In that case, I've thought about, but that would require extra parsing, especially when the old version would be kept for compatibility, and the short versions are useful

Minenash avatar Jun 22 '23 22:06 Minenash

I just think this object-oriented representation is better. If implementation is difficult, {target_block_nbt:<path>} and {item:<slot>:nbt:<path>} are also good choices.

ghost avatar Jun 22 '23 22:06 ghost

It's definitely better organizationly, and probably should've been the way I designed it in the beginning, but having two sets of things do the same thing is kinda meh, especially since the short versions would still be used. It also makes the documentation harder as it would have to convey both

Minenash avatar Jun 22 '23 23:06 Minenash

These can be completed slowly. I think more features are needed now.

Perhaps you can refactor in v4.0. lol

ghost avatar Jun 23 '23 10:06 ghost