Compatibility
Minecraft: Java Edition
1.20–1.20.4
Platforms
Fabric
Supported environments
90% of ad revenue goes to creators
Support creators and Modrinth ad-free with Modrinth+Creators
Details
Licensed LGPL-3.0-only
Published 5 months ago
Updated 3 months ago
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>
- e.g.
- 1x1 crafting grid
- e.g.
<recipe_1x1;minecraft:oak_planks>
- e.g.