skylinerw / guides

Creative Commons Attribution 4.0 International
166 stars 29 forks source link

Enchanted Book? Question #24

Open RealCottonCandyPimp opened 4 years ago

RealCottonCandyPimp commented 4 years ago

If I want to make a custom recipe for feather falling or riptide or any enchantment, how do I need to write the code in a .json file? I have two problems that say that the code doesn't work.

Example: .... } }, "result": { "item": "minecraft:enchanted_book", "count": 1 "StoredEnchantments:[{id:featherfalling,lvl:1s}]" } }

Have tried making it a bit simple but I get the error codes

Expected comma Colon Expected

Don't know why they are occurring, help would be much appreciated Skärmavbild 2020-06-04 kl  10 21 50

simon511000 commented 4 years ago

hi @RealCottonCandyPimp you forgot a comma here "count": 1 and there is a problem here : "StoredEnchantments:[{id:featherfalling,lvl:1s}]" it should be : "StoredEnchantments": [{id:featherfalling,lvl:1s}] I advise you to use a site like https://jsonformatter.curiousconcept.com/ to check your files

RealCottonCandyPimp commented 4 years ago

Thanks and thanks for letting me know about that website