Lite_items - Azlagor322/LiteCore GitHub Wiki

Lite Item

Lite Item - a text data model that allows you to describe Minecraft items.
You can create an item in two types.

{
  "lite_item":
  {
    "amount": 1,
    "data": "rO0ABXNyABpvcmcuYnVra2l0LnV0aWwuaW8uV3JhcHBlcvJQR+zxEm8FAgABTAADbWFwdAAPTGphdmEvdXRpbC9NYXA7eHBzcgA1Y29tLmdvb2dsZS5jb21tb24uY29sbGVjdC5JbW11dGFibGVNYXAkU2VyaWFsaXplZEZvcm0AAAAAAAAAAAIAAkwABGtleXN0ABJMamF2YS9sYW5nL09iamVjdDtMAAZ2YWx1ZXNxAH4ABHhwdXIAE1tMamF2YS5sYW5nLk9iamVjdDuQzlifEHMpbAIAAHhwAAAAA3QAAj09dAABdnQABHR5cGV1cQB+AAYAAAADdAAeb3JnLmJ1a2tpdC5pbnZlbnRvcnkuSXRlbVN0YWNrc3IAEWphdmEubGFuZy5JbnRlZ2VyEuKgpPeBhzgCAAFJAAV2YWx1ZXhyABBqYXZhLmxhbmcuTnVtYmVyhqyVHQuU4IsCAAB4cAAADnR0AAxXQVRFUl9CVUNLRVQ\u003d"
  }
}

Data - allows you to encode an item into a set of characters. This approach allows you to save all internal NBT data.

    {
      "lite_item":
      {
        "amount": 64,
        "material": "OAK_LOG",
        "display_name":"§aMy log",
        "lore":[
          "Hello!",
          "This is my log =)"
        ],
        "head_url": "f2f52f927efffd5d6cdb4ee6b78f9b54adbd02fe723445609d939b92523b6f67",
        "custom_model_data": "1001"
      }
    }

Compare

The comparison occurs with all the fields you specified. For example, if you specified material: "OAK_LOG" then all items with this material will be confirmed.
If you specified the material: "OAK_LOG", and display_name: "My log" then all items with this material and display name including color will be confirmed.