#when i make the recipe it gives me knoeleg book and dont give my the item
1 messages · Page 1 of 1 (latest)
Make sure the advancement is revoked by doing /advancement revoke @s only ... in chat
There's a warning in give_item1 code (I'm assuming that is the first image), specifically on the second line, on the advancement revoke name. Usually this happens when you type the advancement name and path wrong, or the advancement is not in the right folder
Other than that, I'd try removing all the code in the give_item1 function and replace it with something like say item1 advancement granted , just to see if it runs at all
Just remember to revoke the advancement beforehand by typing it in the chat
which version are you on?
Okay, show the path to your achievement
Where the file is located inside the datapack folder. So like datapack_name/data/advancements/item1.json
Then the name if your advancement is item1advancement, not item1adv . That line should be advancement revoke @s only item:item1advancement
in this function you have the name item1adv written, but the achievement itself is called item1advancrmet. rename both just to item1
take another screenshot of the entire VS Code
ah, achievements should be in the "advancements" folder, you are missing the "s"
plural
Also in the achievement file: I've never seen "unlocked" inside a condition. That should definitely be "requirement"
false
Is this legacy stuff?
you can have any name there
Oh you're right, it's the criteria name. Confused with the "requirements"
..
/recipe take @s *
run the command and try to craft
can you take a screeshot of your recipes?
where did you get these item IDs? there is no fireworks item in minecraft
what kind of website generator did you use
Use the right item identifiers and everything should work fine
You could go ingame, press F3 and H, then open your inventory and hover over an item
underneath the regular name should be the id
The id is in the form of minecraft:something
VScode should also suggest you all valid possibilities while you are typing
No, hover over the ingredients, the id of a stick is minecraft:stick as you can see