Page 1 of 1

Customising shopItems.json - items with multiple variants

PostPosted: 23 Jun 2022 11:57
by LtAden
Hi, wanted to make all items sellable. But i have a question about items with "itemData" parameter: can I add all of them with a single JSON object? Example:

Code: Select all{
      "name": "minecraft:dye",
      "itemData": [0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15],
      "sell": 5
   },


I wanted to use an array to cover all types of dyes in one object, but this just caused dyes not to be sellable at all. Not having itemData parameter causes only dye with 0 value (ink sack) to be sellable.

Is there any way to make it easier, or do i have to make a separate object for each item variant?