[1.21.1] components.minecraft\:lore not working properly or im a dumbass
Martinnicchi opened this issue ยท 6 comments
The issue
This is the code im trying to make work and lore is the problem. I might be using ipattern wrong, I don't know. Tried already multiple fixes, nothing works. Using regular custom_data.id works perfectly fine.
items=minecraft:golden_hoe
texture=fungi_cutter_brown
components.minecraft\:lore=ipattern:"*Brown Mushrooms*"
components.minecraft\:custom_data.id=FUNGI_CUTTER
How to reproduce
- create resource pack
- have .properties file with
components.minecraft\:lore=
- give yourself an item matching .properties file
- see the texture staying default
Logs
Checklist
- I checked the issues(both open and closed) and could not find a duplicate of my issue
- I am using the latest version of CIT Resewn for my Minecraft version
- I have disabled Broken Paths and the issue persists
- I am running the mod using Fabric Loader
lore
is a list, not a single line as custom_name
. U need to specify with element of this list should match, add .x
replacing x with needed index starting from 0 as first, use asteric to specify that index does not matter.
It will be something like components.minecraft\:lore.*=ipattern:"*Brown Mushrooms*"
Here is optifine docs with example
Also, im not sure should be there quotes or not, i would remove them
Please show exactly what you tried and the logs that came out of it. HiWord is right here in saying that lore is a list of texts rather than a single text like custom name.
Here's a short video, hope it helps, if you need anything more ask away.
The space. U made it depend on space at the begining by adding the space char at the begining of pattern. U basically set it to match "space, then any text, then 'arachno', and then any text", which is not the case here as space is missing. Remove space after :
and it should work. Also im not sure about the quotes so i'd remove them too.
Also i see u tried it with 'blazing' lore at first line using index 1, it wont work cause indexes start at 0, 0 is first and 1 is second and so on.
That's about lore, i dont know anything about custom data so make sure to check it is correct.