Texture pack Custom tag by superfeda3343
- 1.02 KB
- 1.19.3
- February 8, 2023
- February 7, 2023
- Data Packs
Name | Custom tag |
---|---|
Author | superfeda3343 |
Description | Datapack for creating your own tag |
Information | Downloads: Version: 1.19.3 Size: 1.02 KB Updated at: February 7, 2023 Created at: February 8, 2023 |
Tags | Data Packs |
Custom tag is a datapack that allows you to create your own tag for any item(s).
What is a tag for and what is it?
A tag is used to create a specific area that contains certain information. Example: a tag #minecraft:planks
(or forge:planks
) would only contain information about all planks.
It is mostly used in crafting recipes. When you view a recipe for crafting a solar panel from IC2 in JEI or REI, do you see the blocks of glass sort of shimmering? That is the tag, that is the block to which the #forge:glass
tag is assigned, and it means that the solar panel can be created from any glass, from any mod. If you create a mod that has a glass block and don't give it a tag, you can't create a solar panel of glass from your mod.
But why would you create a tag for yourself, and even more so why would you give it to an object? You may want to open portal in Twilight forest with diamond, planks and neserite. And that all of these options are available at any given moment. Almost the same example you can give for crafting recipes.
Guide:
- Download and open the archive.
- Go to: data/abobka/tags/items (The folder "abobka" can be named as you like.)
- Open the file "file.json" (you can also name it whatever you want)
- Instead of minecraft:diamond write the item you want.
In order to get the details of the item you want to replace the diamond with. This can be done by typing on your keyboard combination F3+H (when Minecraft is on), and hovering over the desired item in your inventory.
- You can add more than one item. Simply write a second, third, and so on exactly below the item you just wrote down. Don't forget the inverted commas and commas. Use Visual studio code for quicker error correction. You can also see an example code, here.
How do I recognise a tag that has just been created?
Install the CraftTweaker mod, pick up the item(s) you've added to the tag and type the command /ct hand
into chat.
After executing this command, you may get a lot of text (or little) written into your chat. You want the text that is written in blue. Among all of this, find the tag that uses the name of your folder. (In my case it's the "abobka" folder).
I recommend using OpenLoader or Paxi for easier use of datapacks in modpacks.