Skip to content

Commit

Permalink
add tags for mining tool
Browse files Browse the repository at this point in the history
closes #67
  • Loading branch information
MelanX committed Apr 17, 2024
1 parent aa5f1f2 commit c41611b
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 2 deletions.
@@ -1,5 +1,14 @@
{
"values": [
"botanicalmachinery:mana_emerald_block"
"botanicalmachinery:alfheim_market",
"botanicalmachinery:industrial_agglomeration_factory",
"botanicalmachinery:mana_battery",
"botanicalmachinery:mana_battery_creative",
"botanicalmachinery:mana_emerald_block",
"botanicalmachinery:mechanical_apothecary",
"botanicalmachinery:mechanical_brewery",
"botanicalmachinery:mechanical_daisy",
"botanicalmachinery:mechanical_mana_pool",
"botanicalmachinery:mechanical_runic_altar"
]
}
Expand Up @@ -6,6 +6,7 @@
import net.minecraft.tags.BlockTags;
import net.minecraft.tags.TagKey;
import net.minecraft.world.item.Item;
import net.minecraft.world.level.block.Block;
import net.minecraftforge.common.Tags;
import org.moddingx.libx.datagen.DatagenContext;
import org.moddingx.libx.datagen.provider.tags.CommonTagsProviderBase;
Expand All @@ -22,7 +23,11 @@ public CommonTags(DatagenContext context) {
public void setup() {
this.item(MECHANICAL_APOTHECARY_CATALYSTS).addTag(Tags.Items.SEEDS);

this.block(BlockTags.MINEABLE_WITH_PICKAXE).add(ModBlocks.manaEmeraldBlock);
this.block(BlockTags.NEEDS_IRON_TOOL).add(ModBlocks.manaEmeraldBlock);
}

@Override
public void defaultBlockTags(Block block) {
this.block(BlockTags.MINEABLE_WITH_PICKAXE).add(block);
}
}

0 comments on commit c41611b

Please sign in to comment.