Tag not working Bug

Published by Hidan on
Status
Works as designed
Issue description

In relation to forum topic,
tags don't really work with procedures
or I'm just stupid and doing something wrong xD
 

There should be test environment included too with map
but if not than just place one of blocks from this list:

Coal Block
Lapiz Block
Iron Block
Gold Block
Diamond Block
Emerald Block
Quartz Block

Above blue planks
Note: I made 2 tags, 1. Forge version and 2. Mod version but they both are included in my procedure and have same set of blocks

Issue comments

Thank you for easily understandable minimal reproducible example :)

You need to use the items tag category as this procedure block will check for items, not for blocks. You convert your block to item type using block to item procedure block.

TLDR: Use items tag category for use with said procedure block.

So same thing as I have made before but
my tag will be set to namespace: mod and type to item
than just type modname:txblocks ?

If that is the correct way than its working, however, by stupid accident I have discovered that adding lots of blocks to my tag makes it useless and its not considering it for some odd reason, I have tested that by making 2 tags, 
1. With all Rail blocks only
2. With all not full blocks such as wall's fences's glass panels, carpets etc

and that bigger one ignores all of them 
I thought for the first time that it might be because I used Shift+CTRL+LMB but used same method to select all rail blocks at once and they all work just fine :L

So same thing as I have made before but
my tag will be set to namespace: mod and type to item
than just type modname:txblocks ?

Yes

If that is the correct way than its working, however, by stupid accident I have discovered that adding lots of blocks to my tag makes it useless and its not considering it for some odd reason, I have tested that by making 2 tags, 
1. With all Rail blocks only
2. With all not full blocks such as wall's fences's glass panels, carpets etc

May I get a workspace example of this?

Very nice example workspace, I was able to isolate the problem easily with your demo.

Couldn't read item tag list tagbug:txblocks2 from tagbug:tags/items/txblocks2.json in data pack main
com.google.gson.JsonParseException: Unknown value 'minecraft:piston_head'
   at net.minecraft.tags.Tag$Builder.lambda$fromJson$0(Tag.java:156 ) ~[?:?] {re:classloading}

Based on this log and some checks in MC code, it seems that you can not use piston_head with item tags as piston can not exist as an item, only as a block.

I do plan to add an actual check for block tag, not only check for item tag procedure block but for now, avoid using piston_head in items tags.

I have removed Piston head and extension and tested but it did not work
so I checked the log and find that there are other blocks that can cause this
here is the list:

Wall version of blocks such as:
Heads
Torches
Signs
Banners


Tripwire
Redstone
Sweet Berry Bush "idk why"
Cocoa
Potted plants "does not involve flower pots"
Bamboo Sapling

 

Generally, only items that can exist in the player's inventory in said version can be tagged under the items tag.