安装我们的扩展,即时搜索任意视频内容

Fabric Modding Tutorial - Minecraft 26.1: Custom Tags | #13
本站添加:

188 观看109:49ModdingByKaupenjoe原视频发布: 2026-05-28

Custom tags in Fabric Minecraft mods are collections of items or blocks that share common properties, allowing modders to create flexible, extensible systems where other mods can add items to the tag without modifying the original mod's code. To implement custom tags, modders create static classes in a dedicated 'tags' package with tag keys of type Block or Item, register them using Registries.BLOCK.define() or Registries.ITEM.define(), and populate them using data generators with ItemTagsProvider or BlockTagsProvider. Tags are accessed through the mod tags class (e.g., ModTags.Items.TransformableItems) and checked using the is() method, which returns true if an item belongs to the tag. This approach replaces hard-coded item lists with dynamic, modifiable collections that can be extended by other mods.

相关推荐

Re: 🗣️📍theprophedu📍2026 GST 103 CLASS (E-EXAM REVISION)

theprophedu

636 views2026-06-04

WEB TECHNOLOGIES UNIT-2 | Degree 4th sem BCOM Computers web technologies unit-2 full explanation💯✅

LearnwithSahera

1K views2026-05-29

More tests are always better? How to use AI to identify tests that bring little value

Alliance4Qualification

335 views2026-05-29

Search Algorithms Explained in 60 Seconds! 🤖💨

samarthtuliofficial

218 views2026-06-01

Making Minecraft Clone with C++ & Raylib

PecaCSLive

686 views2026-06-04

People of Game of Thrones using JavaScript DOM

AltCampus

296 views2026-05-30

Instagram accounts got PWNed

EricParker

13K views2026-06-03

Introduction to Problem Solving Part - 1 | Lecture 1 | Intermediate DSA

ascensionix

107 views2026-05-29

热门趋势

All the footage is released!

RecklessBen

2312K views2026-06-04

Why Batman Lets The Joker Live 🤨

zackdfilms

9222K views2026-05-30

They're Complete Trash

penguinz0

558K views2026-06-04

Paris is in SHAMBLES right now 😭

H1T1

4053K views2026-05-31