Jcraft

Jcraft

Use the Fabric api in a Json

by
3.2K Downloads
fabriclibraryutility
Rent Server with this Mod

About this Mod

There is no mod that does this so far,at least I haven't seen any,
it may not be very useful but it seems to me that it is useful,
at least for those who have read the documentation WHICH ONLY TAKES A FEW MINUTES TO READ, today I present Jcraft (Json Craft) is a mod/library to be able to use the fabric API in Json configuration files, I would consider it a bit useless but I didn't know what to do so this occurred to me, you can add blocks and items with very little programming!, except the texture, for that use Texture Packs, I will soon solve that, and soon there will also be improvements!

How to use

jcraft creates a folder in the game directory called 'jcraft', inside this folder there are two other 'blocks' and 'items', inside these folders the json are added, it doesn't matter the name, the important thing is the structure, in the case For the items, the important thing is to add the values name and namespace, you can also add the settings and more, an example of json item would be:

{
    "name": "myItem",
    "namespace": "myMod",
    "settings":{
        "fireproof": true
    }
}

with the value fireproof: true makes it fire resistant, while name and namespace configure the basic values, such as the item name and the namespace (such as the mod name)

How to add a block

Something similar happens with the blocks, these have the name and the namespace, but apart from that they also contain the item value that adds the item of the block in addition to the block itself, in settings the easiest thing to configure is the parent , An example:

{
  "name": "myBlock",
  "namespace": "myMod",
  "settings":{
    "parent": "BEDROCK"
  }
}

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

Available Versions

Jcraft 1.0.0release
MC 1.20.4fabric
February 18, 2024

How to Install Jcraft on Your Server

1

Order Server

Order a Minecraft Java server with at least 3 GB RAM (4 GB recommended).

2

Set fabric Loader

In the panel under "Egg", select the fabric loader and matching Minecraft version (1.20.4).

3

Install Mod

Open the mod browser in the dashboard and search for "Jcraft". Click "Install" – done! Alternatively, upload the .jar via SFTP to the /mods folder.

Compatibility

Mod Loaders

fabric

Minecraft Versions

1.20.4

Server-side

Required

Recommended RAM

4 GB(min. 3 GB)

Frequently Asked Questions

Jcraft server crashes on startup – what to do?

Most common cause: wrong fabric version or insufficient RAM. Check the server log (latest.log) for "OutOfMemoryError" or "Mixin" errors. With Mado Hosting: ensure at least 3 GB RAM is allocated and the loader matches the mod version (1.20.4). You can switch loaders with one click in the panel.

Is Jcraft compatible with fabric?

Jcraft officially supports fabric for Minecraft 1.20.4. The Mado dashboard automatically detects incompatible loader combinations.

Server lagging with Jcraft – how to optimize performance?

Recommended RAM: 4 GB (per 8 players). Use /spark profiler to check if Jcraft consumes the most tick time. Common fixes: reduce server view-distance to 8-10, install "performant" or "starlight" as supplementary mods on Forge. With Mado Hosting, your server runs on NVMe SSDs with dedicated CPU cores for minimal latency.

Rent Modded Server

Install Jcraft with just one click on your server.

Recommended RAM
4 GBab €8/mo
Min. 3 GB | +1 GB pro 8 Spieler
Create Server Now
1-Click Mod Install
NVMe SSD Storage
DDoS Protection included

Details

License
MIT License
Server-side
Required

Supported Versions

1.20.4