Fabric API

Fabric API

108M Downloads

Datagen tags doesn't work with TagKey<Block>

matthewperiut opened this issue ยท 2 comments

commented

When attempting to use the function "getOrCreateTagBuilder" on BlockTags.PICKAXE_MINEABLE I expected to be able to .addBlock(BLOCK_NAME) but getOrCreateTagBuilder doesn't work with BlockTags.PICKAXE_MINEABLE.

Intellij informs me:
Required type:
TagKey
Provided:
TagKey

How would I add the mineable/pickaxe tag to a block with datagen if there is one? Sorry for opening an issue if this is already implemented but help would be appreciated!

commented

I figured it out, I apologize for the unnecessary issue.
extends FabricTagProvider<Item>
needs to be replaced with
extends FabricTagProvider<Block>

commented

TURNS OUT THE WIKI IS WRONG TOO,
I actually needed FabricTagProvider.BlockTagProvider
Plus FabricTagProvider.ItemTagProvider for regular items, so I'll update the wiki