#Using tags in datapacks

23 messages · Page 1 of 1 (latest)

uncut socket
#

Trying to edit the recipes of Bean's Backpacks and have to do it through datapack instead of using KubeJS and can't seem to get any tags like #minecraft:planks for example in the datapack. Is it not possible?

minor heathBOT
#

Once your ticket has been resolved, please close it with </ticket close:1054771505520717835> command!

uncut socket
#

for example, this:

  "type": "minecraft:crafting_shaped",
  "category": "equipment",
  "pattern": [
    "ABA",
    "ACA",
    "DDD"
  ],
  "key": {
    "A": {
      "item": "supplementaries:rope"
    },
    "B": {
      "item": "supplementaries:sack"
    },
    "C": {
      "item": "#c:chests/wooden"
    },
    "D": {
      "item": "minecraft:leather"
    }
  },
  "result": {
    "item": "beansbackpacks:backpack",
    "count": 1
  }
}```
Just deletes the recipe from the game
#

Hoever if I replace "#c:chests/wooden" with "minecraft:chest" it works

#

so can you not use tags in datapacks?

ivory maple
#
-     "item": "#c:chests/wooden"
+     "tag": "c:chests/wooden"
uncut socket
#

omg

#

😭

#

thank you

#

wait hmm

#

now the recipe loads but the tag item isnt showing up

#

🤔

ivory maple
#

ty forge:chests/wooden?

uncut socket
#

same result i fear

#

OH

#

just opened up a recipe from another mod

#

i need a dif formatting

#
  "type": "minecraft:crafting_shaped",
  "pattern": [
    "pcp",
    "pcp",
    "wpw"
  ],
  "key": {
    "p": {
      "tag": "minecraft:planks"
    },
    "c": {
      "tag": "forge:chests/wooden"
    },
    "w": {
      "item": "astikorcarts:wheel"
    }
  },
  "result": {
    "item": "astikorcarts:supply_cart"
  }
}```
#

i didnt have a "tag":

#

ayy we back

#

ayy it even works with tags i added nice

#

@ivory maple thank you for the help🙏 closing thread