-
Notifications
You must be signed in to change notification settings - Fork 1
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
3 changed files
with
40 additions
and
1 deletion.
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
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,25 @@ | ||
package net.kaupenjoe.tutorialmod.util; | ||
|
||
import net.kaupenjoe.tutorialmod.TutorialMod; | ||
import net.minecraft.block.Block; | ||
import net.minecraft.item.Item; | ||
import net.minecraft.registry.RegistryKeys; | ||
import net.minecraft.registry.tag.TagKey; | ||
import net.minecraft.util.Identifier; | ||
|
||
public class ModTags { | ||
public static class Blocks { | ||
|
||
private static TagKey<Block> createTag(String name) { | ||
return TagKey.of(RegistryKeys.BLOCK, Identifier.of(TutorialMod.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 TagKey.of(RegistryKeys.ITEM, Identifier.of(TutorialMod.MOD_ID, name)); | ||
} | ||
} | ||
} |
9 changes: 9 additions & 0 deletions
9
src/main/resources/data/tutorialmod/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,9 @@ | ||
{ | ||
"values": [ | ||
"tutorialmod:pink_garnet", | ||
"tutorialmod:raw_pink_garnet", | ||
"minecraft:coal", | ||
"minecraft:stick", | ||
"minecraft:apple" | ||
] | ||
} |