-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Is my syntax correct for modifying drops? It's not working. #11
Comments
ah, yes it's invalid. You added drops for the tiers, but it's commented out at the top: You instead put your drops into the commented example. There were also missing brackets, for each "items" array within each "drops" object. Also, Strings within Strings need to have the quotation marks escaped using ''. I also noticed you have all the weights set to in order from 1-8. Weights are relative, so if you want all the items to drop at the same rate, put them to the same weight, like "1". If you intended to make them from rare to common like that, then that's fine. I'd suggest you use a better text editor if possible that has support for json5, such as Visual Studio Code. I fixed it for you here though: https://gist.github.com/spoorn/fec99b87bc6a34a2ddf93cd4dc71e355 Another thing, I noticed you're adding NBT tags to the item drops: |
I just added support for NBT data. Update to the latest SpoornBountyMobs for 1.18+, and copy paste the gist I linked above and it should work. Let me know if there are still problems! |
Hey, I really appreciate all of the help. I used your fixed config file, and updated to 2.6.4 1.18.2, but unfortunately I got an error and crashed. Here's the crash report: ---- Minecraft Crash Report ---- Time: 6/23/22, 4:43 PM java.lang.RuntimeException: [SpoornBountyMobs] [SpoornBountyEntityRegistry] Item regex {minecraft:enchanted_book{StoredEnchantments:[{id:"minecraft:blast_protection",lvl:2s}]}} is not in a valid format. Please check the config file at config/spoornbountymobs.json5 for acceptable formats. A detailed walkthrough of the error, its code path and all known details is as follows:-- System Details -- |
@Ricenami I think when I copied and pasted it, the formatting got messed up. Try this? https://gist.github.com/spoorn/fec99b87bc6a34a2ddf93cd4dc71e355 Also, as a tip, when you copy and paste stuff, put it on https://gist.github.com/ or https://pastebin.com/. Sometimes formatting gets messed up when putting them directly into github comments, and it makes it harder to scroll since the page gets so long. Some people are extremely nitpicky when it comes to this and may outright deny helping you because of it 😞 |
Oh okay thanks for the heads up, I just signed up for github a few days ago. Really appreciate how easy-going you are. And everything is working perfectly, thank you so much again. Take care. |
no problem! let me know if you need more help |
The text was updated successfully, but these errors were encountered: