TheAwesomeGem / BlockDropsTweaker

Repository for the mod BlockDropsTweaker
Apache License 2.0
1 stars 0 forks source link

Item drops with NBT data? #5

Open SephirothWS opened 6 years ago

SephirothWS commented 6 years ago

So call me old school, but trying to get a drop set up with proper NBT tags, and trying to get it to work properly. I'm modifying the dead bush block's drops, and for the most part my drops work, except for one, which needs NBT data assigned to it. The one drop is an Agricraft seed, .. well Agricraft uses a single item but customizes it based on NBT data. In my JSON (This is a partial copy/pasta)

      {
        "id": "agricraft:agri_seed",
        "metadata": 0,
        "toolsBlacklist": true,
        "tools": [],
        "fortunechancemap": {
          "0": 5,
          "1": 5,
          "2": 5,
          "3": 5
        },
        "fortunequantitymap": {
          "0": {
            "minquantity": 1,
            "maxquantity": 1
          },
          "1": {
            "minquantity": 1,
            "maxquantity": 1
          },
          "2": {
            "minquantity": 1,
            "maxquantity": 1
          },
          "3": {
            "minquantity": 1,
            "maxquantity": 1
          }
        },
        "biomeBlacklist": true,
        "biomes": [],
        "minYLevel": 0,
        "maxYLevel": 256,
        "minExp": 0,
        "maxExp": 0,
        "gamestageBlacklist": true,
        "gamestageAll": true,
        "gameStageList": [],
        "modifierBlacklist": true,
        "modifierList": [],
        "traitBlacklist": true,
        "traitList": [],
        "enchantmentBlacklist": true,
        "enchantmentList": [],
        "nbtBlacklist": true,
        "nbtList": [
          "agri_analyzed:0",
          "agri_strength:1",
          "agri_gain:1",
          "agri_seed:carrot_plant",
          "agri_growth:1"
        ],
        "exclusive": true
      }

Is there a specific format that needs to be used for the nbtList section to have BlockDropTweaker assign the proper NBT data? I am getting the agricraft:agri_seed item to drop, but it drops with NO NBT data applied to it.

Crafttweaker format for the item in question: .withTag({agri_analyzed: 0 as byte, agri_strength: 1 as byte, agri_gain: 1 as byte, agri_seed: "carrot_plant", agri_growth: 1 as byte})