generated from NeoForgeMDKs/MDK-1.21.1-ModDevGradle
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
34 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
package fr.celyanrbx.coreforge.util; | ||
|
||
import fr.celyanrbx.coreforge.Coreforge; | ||
import net.minecraft.resources.ResourceLocation; | ||
import net.minecraft.tags.BlockTags; | ||
import net.minecraft.tags.ItemTags; | ||
import net.minecraft.tags.TagKey; | ||
import net.minecraft.world.item.Item; | ||
import net.minecraft.world.level.block.Block; | ||
|
||
public class ModTags { | ||
public static class Blocks { | ||
|
||
private static TagKey<Block> createTag(String name) { | ||
return BlockTags.create(ResourceLocation.fromNamespaceAndPath(Coreforge.MOD_ID, name)); | ||
} | ||
} | ||
|
||
public static class Items { | ||
public static final TagKey<Item> TRANSFORMABLE_ITEMS = createTag("transformable_items"); | ||
|
||
private static TagKey<Item> createTag(String name) { | ||
return ItemTags.create(ResourceLocation.fromNamespaceAndPath(Coreforge.MOD_ID, name)); | ||
} | ||
} | ||
} |
8 changes: 8 additions & 0 deletions
8
src/main/resources/data/coreforge/tags/item/transformable_items.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
{ | ||
"values": [ | ||
"coreforge:steel", | ||
"minecraft:coal", | ||
"minecraft:stick", | ||
"minecraft:compass" | ||
] | ||
} |