More Tag Related Changes
This commit is contained in:
parent
ecc792ed9a
commit
0e1627958a
4 changed files with 9 additions and 1 deletions
|
@ -132,6 +132,9 @@ public class PostInitAPI {
|
|||
if (block instanceof AddMineableSword) {
|
||||
TagAPI.addBlockTags(block, NamedMineableTags.SWORD);
|
||||
}
|
||||
if (block instanceof AddMineableHammer) {
|
||||
TagAPI.addBlockTags(block, NamedMineableTags.HAMMER);
|
||||
}
|
||||
}
|
||||
if (block instanceof TagProvider) {
|
||||
TagProvider.class.cast(block).addTags(blockTags, itemTags);
|
||||
|
|
|
@ -10,4 +10,5 @@ public class NamedMineableTags {
|
|||
public static final TagLocation<Block> SHEARS = new TagLocation<>("fabric", "mineable/shears");
|
||||
public static final TagLocation<Block> SHOVEL = new TagLocation<>("mineable/shovel");
|
||||
public static final TagLocation<Block> SWORD = new TagLocation<>("fabric", "mineable/sword");
|
||||
public static final TagLocation<Block> HAMMER = new TagLocation<>("c", "mineable/hammer");
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue