Sushi Bar [Unofficial]

Quick rating

Community listing page, reviews here may not be monitored by the author.

Sushi Bar [Unofficial]

No reviews yet

A library mod for Chai's mods

Mod Loaders
Minecraft

About

Description

Sushi Bar

Sushi Bar is a lightweight library mod for Chai’s mods that provides:

  • An improved owo-config screen integration
  • A convenient item–registration helper to cut boilerplate
  • Extensions for Lavender’s in-game books

🔧 Installation

  1. Download the latest Sushi Bar .jar from CurseForge and drop it into your mods/ folder.
  2. Run your game with Fabric Loader 0.14.0+ or Quilt Loader 1.22.0+.
  3. Make sure you have owo-lib and Mod Menu installed.

🛠 Features

1. Improved owo-config

Replace your @Modmenu annotation with:

@SushiModmenu
public final class MyMod implements ModInitializer { … }

to get:

  • Full support for List<Identifier> fields
  • Automatic generation of sliders, dropdowns, toggles, and textboxes
  • Seamless integration with Mod Menu’s “Config” screen

2. Item Registration Helper

Cut 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!


3. Lavender Extensions

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:

  • 2×2 crafting grid:
  <recipe_2x2;minecraft:crafting_table>
  • 1×1 crafting grid:
  <recipe_1x1;minecraft:oak_planks>

description_e814969d-548f-4725-8ff8-a77d3b5b2b5d.png

Bento Box

Bento Box is a modular library with expressive GUIs, declarative configs, and more down the road!

For developers

Thanks to Bento Box being modular, you can depend on just the modules you need without pulling in everything else.

Bento modules include:

  • Bento Config, a declarative configuration system built using Bento GUI. It aims to be simple yet powerful, with no magic pre-processors or arbitrary limitations.

  • Bento GUI, an expressive GUI library that makes building dynamic screens fast and easy. It is a replacement for Minecraft’s UI widgets that is inspired by HTML and CSS, and uses the builder pattern for building GUI elements.

  • Bento Util, a general utility library that other Bento modules tend to make use of. It has a few things here you might find useful yourself!

Bento Box is documented in-code with JavaDocs and on my wiki.

For users

If you have multiple Bento modules (i.e. Bento Config, Bento GUI) in your mod list, you can replace them all with just Bento Box.