User Tools

Site Tools


ru:tutorial:tags

This is an old revision of the document!


Теги

Теги - это группы блоков, предметов, жидкостей, биомов или других объектов реестра, которые имеют схожие свойства. Их можно использовать в рецептах, чтобы можно было использовать несколько предметов в одном и том же рецепте взаимозаменяемо. Узнайте больше о том, какие теги находятся на Википедии Minecraft. Теги также можно использовать для группировки похожих предметов из разных модов, чтобы они были совместимы друг с другом. Они называются общими тегами.

Пример тега

Расположение файла: src/main/resources/data/examplemod/tags/blocks/example_ores.json

{
    "replace": false,
    "values": [
        "examplemod:example_ore"
    ]
}

Тег “replace” определяет, удалит ли мод все остальные предметы в теге, которые не упомянуты в этом файле. Не рекомендуется устанавливать для этого значение true, так как это может нарушить совместимость с другими модами. blocks в пути к файлу также могут быть items или fluids. Вы должны разделять слова символами подчеркивания, а теги должны быть во множественном числе.

В некоторых случаях вы можете захотеть проверить теги в коде, что потребует от вас их регистрации:

1.18.2 и выше

import net.minecraft.block.Block;
import net.minecraft.tag.TagKey;
import net.minecraft.util.Identifier;
import net.minecraft.util.registry.Registry;
 
public class BlockTags {
  public static final TagKey<Block> EXAMPLE_ORES = TagKey.of(Registry.BLOCK_KEY, new Identifier("examplemod", "example_ores"));
}

1.18.1 и ниже (Нужен Fabric API)

import net.fabricmc.fabric.api.tag.TagFactory;
import net.minecraft.block.Block;
import net.minecraft.tag.Tag;
import net.minecraft.util.Identifier;
 
public class BlockTags {
  public static final Tag<Block> EXAMPLE_ORES = TagFactory.BLOCK.create(new Identifier("examplemod", "example_ores"));
}

Общие теги vs Теги модов

Если ваш тег применяется ТОЛЬКО к предметам в вашем моде, и ни в одном другом моде, скорее всего, нет похожих предметов, или вы специально хотите включить в этот тег только предметы вашего мода, тогда используйте yourmodid:yourtaghere в приведенном выше примере. Однако, вы можете, если ваш мод добавляет предметы, которые также добавляют другие моды.

Создание новых общих тегов

Общие теги должны быть названы с синтаксисом c:yourtaghere, где c означает общий. При создании файла используйте путь к файлу src/main/resources/data/c/tags/, а затем blocks, items или fluids Вы должны разделять слова подчеркиванием, а теги должны быть множественными.

Существующие общие теги

Этот раздел был автоматически сгенерирован с помощью скрипта. Список используемых модов приведен в конце этой страницы. Если ваш предмет вписывается в один из этих тегов, вам следует добавить его в этот тег вместо того, чтобы определять свой собственный. Если вы хотите, чтобы рецепты вашего мода были совместимы с другими модами, замените предмет в рецепте на #c:tagname.

Теги предметов

ID Тега Содержащиеся IDs Определяются модом

Теги блоков

ID Тега Содержащиеся IDs Определяются модом

Теги жидкостей

ID Тега Содержащиеся IDs Определяются модом

Теги типов сущностей

ID Тега Содержащиеся IDs Определяются модом
c:bosses ender_dragon bewitchment
wither bewitchment
bewitchment:leonard bewitchment
bewitchment:baphomet bewitchment
bewitchment:lilith bewitchment
bewitchment:herne bewitchment
botania:doppleganger botania
c:pollen the_bumblezone:pollen_puff the_bumblezone

Источники

ID мода Имя Версия Ссылка
bonappetit Bon Appé´©t 0.8.5-3 curseforge.com/minecraft/mc-mods/bon-appetit-fabric
cinderscapes Cinderscapes 1.3.3 https://www.curseforge.com/minecraft/mc-mods/cinderscapes
epicurean Epicurean 2.2.4+1.15.2 None
texp Terran Expansion 1.1.2 http://www.flytre.net/
more_gems More Gems 1.2.9
adorn Adorn 3.3.1+1.18.1 https://minecraft.curseforge.com/projects/adorn
eymbra Eymbra's Prehistoric Mod 1.0.0 https://fabricmc.net/
blockus Blockus 2.3.4+1.18.1 https://www.curseforge.com/minecraft/mc-mods/blockus
resourceful_tools Resourceful Tools 1.1.4
packages Packages 1.3 https://highlysuspect.agency
refinedmachinery Refined Machinery 1.2.1 https://minecraft.curseforge.com/projects/Refined-Machinery
gravel-ores Gravel Ores 1.2.0+1.16.2 https://www.curseforge.com/minecraft/mc-mods/gravel-ores-fabric
xb Exotic Blocks 1.6.172 https://github.com/grondag/exotic-blocks
prefab Prefab 1.0.2 https://www.curseforge.com/minecraft/mc-mods/prefab
randomtech Alexis' Random Tech 0.0.8 https://github.com/alexis-evelyn
mechanix Mechanix 3.4.0 https://www.flytre.net/
veggie_way The Veggie Way 1.1.7 None
comforts Comforts 0.0.2-1.16.5 https://www.curseforge.com/minecraft/mc-mods/comforts-fabric
mechanized Mechanized 1.9.6 None
tenor Tenor 1.0.3 None
computercraft CC:T for Fabric 1.91.2 https://github.com/mystiacraft/cc-tweaked-fabric
byg BYG 1.1.5 https://bygmc.weebly.com/
flamingo_ooo Flamingo, oh, oh, oh… 1.0.4-MC1.16.3-fabric
astromine-discoveries Astromine: Discoveries 1.11.4+fabric-1.16.3 https://www.curseforge.com/minecraft/mc-mods/astromine-discoveries
flonters Flonters 1.1.1+1.16.2
indrev Industrial Revolution 1.13.6-BETA https://github.com/GabrielOlvH/Industrial-Revolution
camsbackpacks Cammie's Wearable Backpacks 2.7 https://www.curseforge.com/minecraft/mc-mods/cammies-wearable-backpacks
astromine-foundations Astromine: Foundations 1.11.4+fabric-1.16.3 https://www.curseforge.com/minecraft/mc-mods/astromine-foundations
expandedstorage Expanded Storage 7.3.6 https://www.curseforge.com/minecraft/mc-mods/expanded-storage-fabric/
mw More Weaponry 0.0.1-SNAPSHOT https://github.com/LolzDEV
astromine-technologies Astromine: Technologies 1.11.4+fabric-1.16.3 https://www.curseforge.com/minecraft/mc-mods/astromine-technologies
modern_industrialization Modern Industrialization 1.0.4 https://github.com/AztechMC/Modern-Industrialization
betterend Better End 1.0.2 https://www.curseforge.com/minecraft/mc-mods/betterend
ironchest Iron Chests 1.1.3 https://www.curseforge.com/minecraft/mc-mods/iron-chests-fabric
simple_backpack SimpleBackpack 1.1.8
unearthed Unearthed 1.1.0 https://bygmc.weebly.com/
crimson Crimson 1.0.5 None
gobber2 Gobber2 2.4.6
icarus Icarus 1.1 https://www.curseforge.com/minecraft/mc-mods/icarus-fabric
artofalchemy Art of Alchemy 1.0.0-rc2+1.16.1 https://www.curseforge.com/minecraft/mc-mods/art-of-alchemy
crookedcrooks Crooked Crooks 2.0.1+1.18.1 https://modrinth.com/mod/crooked-crooks
bno Basic Nether Ores 1.16.5-5.5.0-Fabric https://minecraft.curseforge.com/projects/basic-nether-ores
earthtojavamobs Earth2Java 1.6.0+21w05b https://www.curseforge.com/minecraft/mc-mods/earth2java-fabric
atbyw All The Blocks You Want (ATBYW) 1.3.4 https://www.curseforge.com/minecraft/mc-mods/all-the-blocks-you-want
emerald_tools Emerald Tools 1.2.3 https://www.curseforge.com/minecraft/mc-mods/simple-emerald-tools-fabric
ce_foodstuffs Common Expansion: Foodstuffs 1.1.3 None
packed Packed Storage 1.0.9 None
nafis NAFIS 1.0.0 https://schneider-oliver.de
simplequern Simple Quern 1.2.1 https://github.com/CumulusMC/Simple-Quern
cotton-resources Cotton Resources 1.7.4 https://github.com/CottonMC/CottonResources
oceancraft Oceancraft 0.1.0 https://github.com/NebelNidas/Oceancraft
slotlink slotlink 2.2.0+1.16.4 https://github.com/badasintended/slotlink
spatialharvesters Spatial Harvesters 0.11.6a https://www.curseforge.com/minecraft/mc-mods/spatial-harvesters-fabric
techreborn Tech Reborn 5.1.0-beta.5 https://www.curseforge.com/minecraft/mc-mods/techreborn
mythicmetals Mythic Metals 0.11.3 https://www.curseforge.com/minecraft/mc-mods/mythicmetals
sweed Sweed 1.1.1 https://www.curseforge.com/minecraft/mc-mods/sweed
endreborn End: Rebellion 1.8 https://github.com/EleC0TroN/ER
exnihilofabrico Ex Nihilo Fabrico 0.3+1.14.4 None
appliedenergistics2 Applied Energistics 2 8.2.0-alpha.2 https://ae-mod.info/
arcanus Arcanus 1.25 https://www.curseforge.com/minecraft/mc-mods/arcanus
ae2 Applied Energistics 2 10.0.0 https://appliedenergistics.github.io/
basicshields Basic Shields [Fabric] 1.2.1-1.18.1 None
bclib BCLib 1.3.0 https://www.curseforge.com/minecraft/mc-mods/bclib
betternether Better Nether 6.0.10 https://www.curseforge.com/minecraft/mc-mods/betternether
betteranimalsplus Better Animals Plus 1.18.1-11.0.3 https://betteranimalsplus.com/
bewitchment Bewitchment 1.18-5 https://www.curseforge.com/minecraft/mc-mods/bewitchment
botania Botania 1.18.1-427-FABRIC https://botaniamod.net
catwalksinc Catwalks Inc. 1.2.0 https://www.curseforge.com/minecraft/mc-mods/catwalks-inc
croptopia Croptopia 1.8.0 https://www.curseforge.com/minecraft/mc-mods/croptopia-fabric
dark-enchanting Dark Enchanting 0.6.3+1.18 https://github.com/frqnny/dark-enchanting
dwarfcoal Dwarf Coal 1.18.1-1.0.1 None
extragenerators Extra Generators 1.1.1-BETA+1.18 https://www.curseforge.com/minecraft/mc-mods/extra-generators
mtr Minecraft Transit Railway 1.18.1-3.0.0-beta-8 https://www.curseforge.com/minecraft/mc-mods/minecraft-transit-railway
painters_blocks Painter's Blocks 1.3.0+1.18.1 https://github.com/Juuxel/PaintersBlocks
terrarianslimes Terrarian Slimes 1.1-BETA+1.18 https://www.curseforge.com/minecraft/mc-mods/terrarian-slimes
the_bumblezone The Bumblezone - Fabric 4.2.1+1.18.1 https://www.curseforge.com/minecraft/mc-mods/the-bumblezone-fabric
valley ValleyCraft 2.1 https://github.com/l1nkl3/ValleyCraft-Wiki
croptosis Croptosis 1.4.2 https://www.curseforge.com/minecraft/mc-mods/croptosis
waystones Waystones 2.4.1 https://www.curseforge.com/minecraft/mc-mods/fabric-waystones
ru/tutorial/tags.1646682162.txt.gz · Last modified: 2022/03/07 19:42 by furnygo