Help with custom tooltips
barraIhsan opened this issue ยท 9 comments
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)
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
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
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?
I have started coding the new version and this will work then (I tested it on a buried treasure map)
code
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"
It still doesnt work, also do you have a discord acc to communicate better?
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)