Advanced NBT Tooltips

Advanced NBT Tooltips

28.9k Downloads

Help with custom tooltips

barraIhsan opened this issue ยท 9 comments

commented

this is the explorer_map.json

{
	"text": {
		"id": "formatted",
		"color": "gray",
		"text": {
			"id": "mix",
			"texts": [
				"X : ",
				{
					"id": "nbt",
					"tag": "Decorations[].x"
				},
				" Z : ",
				{
					"id": "nbt",
					"tag": "Decorations[].z"
				}
			]
		}
	},
	"condition": {
		"id": "and",
		"conditions": [
			{
				"id": "is_item",
				"items": [
					"minecraft:filled_map"
				]
			},
			{
				"id": "tag_matches",
				"tag": "Decorations"
			}
		]
	}
}

But it didn't work and there is a bunch of error in log

(also very nice if you have discord server to ask something like this)

commented

You have to specify an index at Decorations like Decorations[0].x or something like this. I plan to eventually change that so that it would then look at every element in the list but I need to rewrite some stuff to change that. Next update, I hope

commented

Wait, to reload custom tooltips, you just reload resourcepack (F3 + T) right?

commented

the error is also from the tag_matches condition. "tag_matches" is for checking for a specific value the condition you were looking for is "has_tag"

oh ok

commented

explorer_map.json
Its still not working, oh also I modified the compass and it also doesn't work
compass.json
(Doesnt put ! to make sure it doesn't fill out the entire issues chat)
Is it still in beta, so a lot of it doesn't work?

commented

I have started coding the new version and this will work then (I tested it on a buried treasure map)
code

commented

the error is also from the tag_matches condition. "tag_matches" is for checking for a specific value the condition you were looking for is "has_tag"

commented

It still doesnt work, also do you have a discord acc to communicate better?

commented

I do have a discord account but it didnt work because I didnt release the patch yet. I plan to release it today (I had kinda lost motivation the last few weeks)

commented

There's also now a better way to do this now but I hope I can update the demonstration resource packs today