Skip to content
Skills Library
Programming · Building & coding

mc-blocks-items

/mc-blocks-items

Add or change blocks, items, block entities, creative tabs, recipes, models, textures and translations in a Fabric or NeoForge mod. Use for any "add a block/item/tool/food/armor" request or when an item shows as a missing texture or "Item id not set" crash.

Author
A2M33 ↗
Repository
mixinsmith ↗
Licence
MIT
Last repository change
09.11.2026

Assessment and security

90/ 100Class: good
Format25 / 25
Frontmatter with name and description, valid name, description up to 1,024 characters, name matching the folder.
Discoverability25 / 25
Description explains when to use the skill, has a reasonable length and uses third person.
Content25 / 35
At least 150 words and at most 500 lines, headings, step lists, examples or code.
Hygiene15 / 15
No placeholders such as TODO, no Windows paths, with a licence.
Riskno signals detected in the scan
Files in this package
1
Scripts
0
HTML comments
0
URLs in SKILL.md
0
Deprecation

No signals detected. Repository changed on 09.11.2026, without references to retired models or APIs.

Licence

MIT, open: use and modify while retaining author attribution.

What it does and when to use it

Add or change blocks, items, block entities, creative tabs, recipes, models, textures and translations in a Fabric or NeoForge mod. Use for any "add a block/item/tool/food/armor" request or when an item shows as a missing texture or "Item id not set" crash.

Triggers from the description

add a block/item/tool/food/armorItem id not set
Original author description

Add or change blocks, items, block entities, creative tabs, recipes, models, textures and translations in a Fabric or NeoForge mod. Use for any "add a block/item/tool/food/armor" request or when an item shows as a missing texture or "Item id not set" crash.

How it works

  1. 1. Find the pattern in this version
  2. 2. Version cliffs to check
  3. 3. Files per new item or block
  4. 4. Verify
Original SKILL.md headings · 43 lines, 349 words
SKILL.md preview
---
name: mc-blocks-items
description: Add or change blocks, items, block entities, creative tabs, recipes, models, textures and translations in a Fabric or NeoForge mod. Use for any "add a block/item/tool/food/armor" request or when an item shows as a missing texture or "Item id not set" crash.
---

# Blocks and items

Registration code, model JSON layout and item data change across versions more than anything else.
Find the right shape for *this* project, then copy it.

## 1. Find the pattern in this version

- Read how vanilla does it: `mcsrc.py source Items` (or `Blocks`) and copy the shape of a similar
  vanilla entry, e.g. `Items#DIAMOND_SWORD`. Vanilla always matches the project's version.
- Registry access: `mcsrc.py search '^Registries$|^BuiltInRegistries$|^Registry$'`.
- NeoForge registers through `DeferredRegister`: `mcsrc.py class DeferredRegister` and its nested
  classes show the helpers this version offers.
- Settings builder: `mcsrc.py class Item.Settings` (Yarn) or `Item.Properties` (Mojang).

## 2. Version cliffs to check

| Version | Change | What breaks if you ignore it |
|---------|--------|------------------------------|
| 1.19.3 | Registries moved to `Registries` / `BuiltInRegistries` | `Registry.ITEM` no longer exists |
| 1.20.5 | Item NBT replaced by data components | `getNbt()`/`getTag()` style code fails to compile |
| 1.21 | Resource id constructor made private | use the static factory (`Identifier.of` / `ResourceLocation.fromNamespaceAndPath`) |
| 1.21.2 | Item and block settings need their registry key before construction | crash "Item id not set" / "Block id not set" at startup |
| 1.21.4 | Item model definitions in `assets/<modid>/items/<name>.json` | item renders as the purple-black missing texture |

Verify each against the project with a lookup instead of trusting the table blindly.

## 3. Files per new item or block

- Java: registration, plus the block/item class if it has behavior.
- `assets/<modid>/lang/en_us.json`: `item.<modid>.<name>` / `block.<modid>.<name>`.
- Models, blockstates and textures: `mcsrc.py files 'diamond_sword|oak_planks'` shows every file
  vanilla uses for a similar item or block in this version; `mcsrc.py cat <path>` prints each one.
  Mirror the same paths under your mod id.
- Recipes, loot tables and tags: same approach. Folder names changed between versions (`recipe/` vs
  `recipes/`), so copy the folders the `files` output shows.
- Creative tab entry, or the item is unreachable without commands.

## 4. Verify

`mcbuild.py compile`, then `mcbuild.py server` (registration errors happen at startup). Missing
textures only show in the client: ask the user to run `./gradlew runClient` and check.

Versions

The database has no other skills named mc-blocks-items.

Database snapshot: 13.11.2026 · package version ef9f5c837eff (SHA-256 digest of the entire package)

Downloads in the last 30 days: 2 · ranking

Report a problem with this skill: harmful content, incorrect descriptions or an author’s removal request.

Similar skills

  • 100mc-build-loop
    Compile, build or boot a Minecraft mod (Fabric or NeoForge) and get a short diagnosis of compile errors, mixin failures, missing dependencies and crash reports. Use after every code change to a mod, when the user reports a crash or a build failure, or when you need to prove a mod loads.
  • 100geckolib
    GeckoLib Minecraft mod animation — GeckoLib 5 (1.21+) render-state pipeline plus GeckoLib 4.4.9 (1.20.1) API for Fabric/Forge/NeoForge: setup, entities, blocks, items, armor, replaced entities, animation controllers, Molang, render layers, textures, and data syncing. Use when…
  • 90mc-entities
    Create or change entities and mob behavior in a Fabric or NeoForge mod: custom mobs, AI goals, brains, attributes, spawning, renderers and models. Use for "add a mob", "make X follow/attack/flee", or changes to how vanilla mobs behave.
  • 90minecraft-neoforge
    Build, debug, review, optimize or migrate NeoForge mods in Java or Kotlin for Minecraft 1.21.1 through 26.2. Use for neoforge.mods.toml, ModDevGradle/NeoGradle, @Mod, mod/game event buses, DeferredRegister, components, attachments, capabilities, menus, payloads, datagen and…
  • 100fabric
    Fabric mod development for Minecraft — project setup with Loom, Fabric Loader and Fabric API, registering items/blocks/entities/fluids, networking, events, commands, rendering, data generation, serialization, mixins, class tweakers, and porting. Use when writing or maintaining…
  • 90minecraft-fabric
    Build, debug, review, optimize or port Fabric mods in Java or Kotlin for Minecraft 1.21.1 through 26.2. Use for fabric.mod.json, Loom, Fabric API, entrypoints, registries, components, payload networking, rendering, datagen, Mixins, dedicated-server crashes and Yarn-to-official…

Feedback and reports

Your message goes to Bartosz Sokoliński. An email address is needed only for a reply. See the privacy policy.