Jcraft
by k3nder
Jcraft is a Fabric library that lets other mod developers define blocks and items through JSON files rather than Java code.
What it does
Blocks and items are declared in JSON, with a namespace that keeps each entry apart from entries added by other mods. A new block or item is registered by giving it a name and a value, and a parent entry can be named so the new block inherits the configuration of a block that is already set up. Properties such as fire resistance, for example a fireproof flag set to true, can be configured in the same file.
Jcraft is aimed at developers who want to add content without writing registration code, and at pack makers who need small custom blocks. It requires Fabric API. Client and server both need it, so a multiplayer server and every player must run the same build. The code is released under the MIT License and is open source, with public source code, an issue tracker and a wiki. Files target 1.20.4 only, and the latest build is 1.0.0, published on 2024-02-18.
Key features
JSON block definitions
Blocks are described in JSON files, so a new block needs no Java class of its own.
Parent inheritance
A block can name a parent that is already configured, and it takes over that block's settings.
Namespaced entries
Each item and block sits under a namespace, so entries from different mods do not collide.
Fire resistance flag
A fireproof value set to true makes the block resistant to fire.
Compatibility
Latest build for each game version and loader.
Only full game releases are shown. This mod publishes no snapshot builds.
Requirements
Dependencies declared by the latest file for each loader.
Required 1
Use cases
Adding simple blocks
A developer can add a block with a few lines of JSON and no registration code.
Building variants
A new block can inherit from an existing one, so a variant only changes the values it needs.
Who it’s for: Mod developers who prefer data files over code, and pack makers who need custom blocks with small settings changes. Players do not need to configure it beyond installing the required files.
Questions
Does Jcraft need Fabric API?
Does Jcraft have to be installed on a server?
Which game version does Jcraft support?
In the catalog
Jcraft is one of 3,514 Library mods on ModsFinder, and one of 2,348 Library mods for Fabric. 13,907 mods support Minecraft 1.20.4.
More from k3nder
Similar mods
What the author says
The parent does what it inherits the configuration of the block that has already been configured, it is important to put it in capitals as in this case the BEDROCK
Official listing
- Modrinth page
- modrinth.com/mod/jcraft
- Owner
- k3nder
- Published
- 2024-02-18
- Updated on Modrinth
- 2024-02-18
- Facts verified
- 2026-10-15
