What are you searching for?

Sushi Bar

Sushi Bar

A library mod for Chai's mods

download 1.2M Downloads · favorite 107 Followers · Updated 1 year ago
Fabric Library 1.20 1.20.1 1.20.2 1.20.3 1.20.4

Versions

inventory_2
Sushi Bar 0.2.2+1.20

0.2.2+1.20 · 1 year ago · 92.02 KB

Release download
Fabric 1.20 1.20.1 1.20.2
inventory_2
Sushi Bar 0.2.2+1.20.3

0.2.2+1.20.3 · 1 year ago · 92.20 KB

Release download
Fabric 1.20.3 1.20.4
inventory_2
Sushi Bar 0.2.1+1.20

0.2.1+1.20 · 1 year ago · 91.83 KB

Release download
Fabric 1.20 1.20.1 1.20.2
inventory_2
Sushi Bar 0.2.1+1.20.3

0.2.1+1.20.3 · 1 year ago · 92.01 KB

Release download
Fabric 1.20.3 1.20.4
inventory_2
Sushi Bar 0.2.0

0.2.0 · 1 year ago · 94.51 KB

Release download
Fabric 1.20 1.20.1 1.20.2

About

Sushi Bar

Sushi Bar is a library mod for Chai's mods.


Improved owo-config

You can use an improved version of owo-lib's config screen by replacing the @Modmenu annotation with @SushiModmenu, it currently features:

  • List<Identifier> support

Item Registration Helper

You can reduce the boilerplate of registering items with Sushi Bar's own registration helper class. You first create an instance of RegistrationHelper using your mod's ID, then register items using its helper functions.

public static final RegistrationHelper register = new RegistrationHelper(MOD_ID);

// Generic item
public static final Item ITEM_A = register.item("item_a");
// Custom item with generic item settings
public static final Item ITEM_B = register.item("item_b", MilkBucketItem::new);
// Generic item with custom item settings
public static final Item ITEM_C = register.item("item_c", new FabricItemSettings().maxCount(1));
// Custom item
public static final Item ITEM_D = register.item("item_d", new EnderPearlItem(new FabricItemSettings().maxCount(16)));

For comparison, here it is without the registration helper.

public static final Item ITEM_A = Registry.register(Registries.ITEM, new Identifier(MOD_ID, "item_a"), new Item(new FabricItemSettings()));

public static final Item ITEM_B = Registry.register(Registries.ITEM, new Identifier(MOD_ID, "item_b"), new MilkBucketItem(new FabricItemSettings()));

public static final Item ITEM_C = Registry.register(Registries.ITEM, new Identifier(MOD_ID, "item_c"), new Item(new FabricItemSettings().maxCount(1)));

public static final Item ITEM_D = Registry.register(Registries.ITEM, new Identifier(MOD_ID, "item_d"), new EnderPearlItem(new FabricItemSettings().maxCount(16)));

Lavender Extensions

You can extend Lavender with new markdown features by adding "sushi_features": true to your book definition, it currently features:

  • 2x2 crafting grid
    • e.g. <recipe_2x2;minecraft:crafting_table>
  • 1x1 crafting grid
    • e.g. <recipe_1x1;minecraft:oak_planks>
open_in_new View on Modrinth
Categories
Compatibility
Client: Required Server: Unsupported
gavel LGPL-3.0-only

Conversation

What are your thoughts?

Related projects

Library
Fabric API
Fabric API

by modmuss50

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

download 127.9M
favorite 27,365
Library
Cloth Config API
Cloth Config API

by shedaniel

Configuration Library for Minecraft Mods

download 94.0M
favorite 13,653
Library Management Utility
YetAnotherConfigLib (YACL)
YetAnotherConfigLib (YACL)

by isxander

A builder-based configuration library for Minecraft!

download 65.8M
favorite 7,589
Library
Architectury API
Architectury API

by shedaniel

An intermediary api aimed to ease developing multiplatform mods.

download 60.8M
favorite 6,641
lock Cookie consent

SkinMC uses cookies to provide functionality and features.