Arqade Asked on July 21, 2021
I’m currently working on a project that includes custom loot tables with semi-custom items. So far it’s been working perfectly with all sorts of items, but when I tried to add a written book with nbt data, things stopped working. I ran the code for the loot table through a (json editor) and it checked out but it clearly doesn’t work – Whenever the book is included in the loot table, nothing generates at all.
Here’s the snippet that causes all the issues:
(...){"type":"item","name":"minecraft:written_book","weight":1,"quality":12,"functions":[{"function":"set_nbt","tag":"{pages:['{"text":"SMITE"}'],title:"Tome of Smiting",author:"Bryuf"}"}]},(...)
(The ellipses are just to indicate that this was taken from a wider context involving the correct start and end parameters for loot tables)
Can anyone figure out what I’m missing to make this work?
In your snippet, you use three backslashes in a row () to escape the double quotes (
"
). Use 1 instead.
Correct answer by ginkgo on July 21, 2021
Get help from others!
Recent Questions
Recent Answers
© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP