[Changes] Added c:ores
-Tag to the BaseOreBlock
. (quiqueck/BetterNether#94)
This commit is contained in:
parent
da6e3c6559
commit
251925ac08
2 changed files with 4 additions and 0 deletions
|
@ -4,6 +4,7 @@ import org.betterx.bclib.interfaces.BlockModelProvider;
|
|||
import org.betterx.bclib.interfaces.TagProvider;
|
||||
import org.betterx.bclib.util.LootUtil;
|
||||
import org.betterx.bclib.util.MHelper;
|
||||
import org.betterx.worlds.together.tag.v3.CommonBlockTags;
|
||||
import org.betterx.worlds.together.tag.v3.MineableTags;
|
||||
|
||||
import net.minecraft.client.renderer.block.model.BlockModel;
|
||||
|
@ -135,6 +136,8 @@ public class BaseOreBlock extends DropExperienceBlock implements BlockModelProvi
|
|||
|
||||
@Override
|
||||
public void addTags(List<TagKey<Block>> blockTags, List<TagKey<Item>> itemTags) {
|
||||
blockTags.add(CommonBlockTags.ORES);
|
||||
|
||||
if (this.miningLevel == Tiers.STONE.getLevel()) {
|
||||
blockTags.add(BlockTags.NEEDS_STONE_TOOL);
|
||||
} else if (this.miningLevel == Tiers.IRON.getLevel()) {
|
||||
|
|
|
@ -19,6 +19,7 @@ public class CommonBlockTags {
|
|||
public static final TagKey<Block> NETHER_PORTAL_FRAME = TagManager.BLOCKS.makeCommonTag("nether_pframe");
|
||||
public static final TagKey<Block> NETHER_STONES = TagManager.BLOCKS.makeCommonTag("nether_stones");
|
||||
public static final TagKey<Block> NETHER_ORES = TagManager.BLOCKS.makeCommonTag("nether_ores");
|
||||
public static final TagKey<Block> ORES = TagManager.BLOCKS.makeCommonTag("ores");
|
||||
public static final TagKey<Block> END_ORES = TagManager.BLOCKS.makeCommonTag("end_ores");
|
||||
public static final TagKey<Block> SAPLINGS = TagManager.BLOCKS.makeCommonTag("saplings");
|
||||
public static final TagKey<Block> SOUL_GROUND = TagManager.BLOCKS.makeCommonTag("soul_ground");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue