Mods
Resource Packs
Data Packs
Modpacks
Shaders
Plugins
Mods Resource Packs Data Packs Plugins Shaders Modpacks
Get Modrinth App Upgrade to Modrinth+
Sign in
ModsPluginsData PacksShadersResource PacksModpacks
Sign in
Settings
Sushi Bar

Sushi Bar

A library mod for Chai's mods

629.3k
78
Library
AboutChangelogVersions

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>

90% of ad revenue goes to creators

Support creators and Modrinth ad-free with Modrinth+

Compatibility

Minecraft: Java Edition

1.20–1.20.4

Platforms

Fabric

Supported environments

Client-side

Links

Report issues View source Visit wiki Join Discord server
Buy Me a Coffee

Creators

Chai
Chai Member

Details

Licensed LGPL-3.0-only
Published 11 months ago
Updated 8 months ago

Modrinth is open source.

main@fafd47f

© Rinth, Inc.

Company

TermsPrivacyRulesCareers

Resources

SupportBlogDocsStatus

Interact

Discord X (Twitter) Mastodon Crowdin
Get Modrinth App Settings
NOT AN OFFICIAL MINECRAFT SERVICE. NOT APPROVED BY OR ASSOCIATED WITH MOJANG OR MICROSOFT.