ModsFinder

Jcraft

by k3nder

Jcraft is a Fabric library that lets other mod developers define blocks and items through JSON files rather than Java code.

FabricClient and serverMIT LicenseOpen source1.20.4

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

  1. JSON block definitions

    Blocks are described in JSON files, so a new block needs no Java class of its own.

  2. Parent inheritance

    A block can name a parent that is already configured, and it takes over that block's settings.

  3. Namespaced entries

    Each item and block sits under a namespace, so entries from different mods do not collide.

  4. Fire resistance flag

    A fireproof value set to true makes the block resistant to fire.

Compatibility

Latest build for each game version and loader.

1.20.41.0.0
ReleaseBetaAlphaNot available

Only full game releases are shown. This mod publishes no snapshot builds.

Requirements

Dependencies declared by the latest file for each loader.

Required 1

Fabric APILightweight and modular API providing common hooks and intercompatibility measures utilized by mods using the Fabric toolchain.
Required

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?

Yes. Fabric API is a required dependency, and Jcraft is only published for the Fabric loader.

Does Jcraft have to be installed on a server?

Yes. Servers that run it need every player to install it too.

Which game version does Jcraft support?

Jcraft has files for 1.20.4 only, with 1.0.0 as the latest file released on 2024-02-18.

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

All projects

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
k3nder, on the Modrinth page

Official listing

Owner
k3nder
Published
2024-02-18
Updated on Modrinth
2024-02-18
Facts verified
2026-10-15

Tags