#Tags not working with recipes

8 messages · Page 1 of 1 (latest)

thorn dust
#

Hello! I'm trying to make a new decoration block, similar to oak planks, but it doesn't seem to work in crafting recipes - even when I tag the block with minecraft:planks. Here's my basic script, along with some images where I try to make a crafting table:

StartupEvents.registry('block', event => {
  event.create('framed_oak_planks')
    .displayName('Framed Oak Planks')
    .soundType('wood')
    .hardness(2)
    .resistance(3)
    .tagBlock('minecraft:mineable/axe')
    .tagBlock('minecraft:planks')
})

The only thing I noticed is the lack of the "diamond sword" icon on the framed oak item tag, but I don't know what it means. Any help would be appreciated.

pastel lintelBOT
#

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

brave flame
#

those are block tags, not item tags

#

recipes use item tags

thorn dust
#

Oh, I had no idea they were different. Is there a way I can assign an item tag, then?

brave flame
#

off the top of my head, its probably .tagItem(), if not, then just the tag event

#

block tags are relevant when the block is placed in the world, anywhere else (like in an inventory) blocks are items

thorn dust
#

Thank you! Sure enough, it was as simple as adding another line with .tagItem('minecraft:planks') It's all working good now.