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
- Download the latest Sushi Bar
.jar from CurseForge and drop it into your mods/ folder.
- Run your game with Fabric Loader 0.14.0+ or Quilt Loader 1.22.0+.
- 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:
<recipe_2x2;minecraft:crafting_table>
<recipe_1x1;minecraft:oak_planks>
