sword datapack help
Hey ! Ive just started making datapacks, this being my first one ive ever made, but im having a problem. So i'm having this problem, when i craft it, it just does the knowledge book ?
This is my code for give_penetrator.mcfunction
recipe take @s minecraft:penetrator_recipe
advancement revoke @s only swords:penetrator_advancement
clear @s knowledge_book
give @s diamond_sword{CustomModelData:99,Enchantments:[{id:"minecraft:sharpness",lvl:9s},{id:"minecraft:smite",lvl:1s},{id:"minecraft:fire_aspect",lvl:5s},{id:"minecraft:looting",lvl:15s},{id:"minecraft:sweeping",lvl:5s},{id:"minecraft:unbreaking",lvl:30s},{id:"minecraft:mending",lvl:1s}],AttributeModifiers:[{AttributeName:"generic.attack_damage",Name:"generic.attack_damage",Amount:10,Operation:0,UUID:[I;-1184966654,-14663293,-1429297760,437212829]}]} 1
And when i put it into a json validator, it sent me this error.
Parse error on line 1:
recipe take @s minec
^
Expecting 'STRING', 'NUMBER', 'NULL', 'TRUE', 'FALSE', '{', '[', got 'undefined'
So i think thats the reason its doing that, but im not 100% sure, if anyone could help me that would be amazing.
Continue to help post