User avatar
By Riberto
#212188 Hello,

I have used the new day care and even customize rules with datapack and have some suggestions to improve it. (But describing only one in this ticket as is recommended to split).
If we customize daycare requirement with datapack and setup multiple file that can apply in same time with same item requirement it will show multiple line. (One per requirement that are met)

What I have in mind
Merge all requirement that are met and display only one line per item.

Example
Rocks.json
Code: Select all{
  "spec": "type1:ROCK",
  "durations": [
    {
      "type": "add",
      "amount": 20,
      "unit": "MINUTES"
    }
  ],
  "requirements": [
    {
      "type": "itemstack",
      "error_message": "5x Boulder",
      "items": [
        {
          "item": "pixelmon:boulder",
          "amount": 5
        }
      ]
    },
    {
      "type": "itemstack",
      "error_message": "5x Granite",
      "items": [
        {
          "item": "minecraft:granite",
          "amount": 5
        }
      ]
    },
    {
      "type": "itemstack",
      "error_message": "4x Stone",
      "items": [
        {
          "item": "minecraft:stone",
          "amount": 4
        }
      ]
    }
  ]
}

Rocks_iv_atk_31.json
Code: Select all{
  "spec": "type1:ROCK ivatk:31",
  "durations": [
    {
      "type": "add",
      "amount": 10,
      "unit": "MINUTES"
    }
  ],
  "requirements": [
    {
      "type": "itemstack",
      "error_message": "1x Stone",
      "items": [
        {
          "item": "minecraft:stone",
          "amount": 1
        }
      ]
    }
  ]
}

And so one for each iv...
Assuming all requirement are met, instead of displaying 9 lines :
  • 5x Boulder
  • 5x Granite
  • 4x Stone
  • 1x Stone
  • 1x Stone
  • 1x Stone
  • 1x Stone
  • 1x Stone
  • 1x Stone

Display 3 lines merging all the line for the stone :
  • 5x Boulder
  • 5x Granite
  • 10x Stone

Pro & Cons
  • It would be more user friendly to use
  • Message must be auto generated in one way or another
One way could be my other suggestion :
https://pixelmonmod.com/viewtopic.php?f=146&t=30780

Best regards,
Riberto

JOIN THE TEAM