Forum rules: Do not post bugs or feature requests here! Report bugs to our Issue Tracker and suggestions to Suggest a Feature.

This site is not for solicitation of services or 'purchasing' development. Please do not post requesting side mods/plugins and so on. Your thread will be removed, and you will receive a warning.
By LtAden
#211774 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?

JOIN THE TEAM