Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Item drops with NBT data? #5

Open
SephirothWS opened this issue Jun 20, 2018 · 0 comments
Open

Item drops with NBT data? #5

SephirothWS opened this issue Jun 20, 2018 · 0 comments

Comments

@SephirothWS
Copy link

SephirothWS commented Jun 20, 2018

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: agricraft:agri_seed.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})

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant