jhuckaby / magic-sorting-system

A data pack for Minecraft 1.13, 1.14 and 1.15 (Java) for automatically sorting every item in the game.
39 stars 15 forks source link

Group item cant be empty #19

Closed thegamerx1 closed 4 years ago

thegamerx1 commented 4 years ago

If you leave any group items empty the datapack wont work and will throw and error on compile. But adding random:random fixes it i would like that adding random:random to not be necesary for this

Error

"items": []

OK

"items": [
"notminecraft:empty"
]
jhuckaby commented 4 years ago

I'm sorry, but you cannot have any empty groups, especially not the misc catch-all group. Doing so may cause the datapack to malfunction.

You can remove any groups you don't like, but the final "misc" group is required, as it serves as the universal fallback.

If you don't want a universal fallback for some reason, and would prefer that overflow items teleport back to you (the nearest player), then simply do not craft a carrot-on-a-stick item frame.

thegamerx1 commented 4 years ago

i want the misc group but i dont want having the carrot on a stick teleporting to the misc chest as of i prefer it in the tools chest but just adding a random id its fine. Having the items array empty makes it look clearer