Sushi Bar is a lightweight library mod for Chai’s mods that provides:
.jar from CurseForge and drop it into your mods/ folder.Replace your @Modmenu annotation with:
@SushiModmenu
public final class MyMod implements ModInitializer { … }
to get:
List<Identifier> fieldsCut down on Registry.register boilerplate by using RegistrationHelper.
public static final RegistrationHelper register = new RegistrationHelper(MOD_ID);
// 1. Generic item
public static final Item ITEM_A = register.item("item_a");
// 2. Custom item class with default settings
public static final Item ITEM_B = register.item("item_b", MilkBucketItem::new);
// 3. Generic item with custom settings
public static final Item ITEM_C = register.item("item_c",
new FabricItemSettings().maxCount(1)
);
// 4. Fully custom item
public static final Item ITEM_D = register.item("item_d",
new EnderPearlItem(new FabricItemSettings().maxCount(16))
);
For comparison, registering without helper:
public static final Item ITEM_A = Registry.register(
Registries.ITEM,
new Identifier(MOD_ID, "item_a"),
new Item(new FabricItemSettings())
);
The helper handles identifier creation and settings for you!
Enable advanced in-book recipes by adding the flag to your book JSON:
{
"type": "minecraft:book",
"title": "My Handbook",
"author": "Mod Author",
"sushi_features": true,
"pages": [
{ "type": "text", "text": "Crafting recipes!" }
]
}
Then use:
<recipe_2x2;minecraft:crafting_table>
<recipe_1x1;minecraft:oak_planks>
