Download Sushi Bar — Minecraft Mods — MetaMods

Sushi Bar

Active

Downloads

8

Last update

1 year ago

Versions

1.20 — 1.20.4
Client
Fabric
Libraries

Sushi Bar

Sushi Bar is a library mod specifically designed for Chai's projects. This tool offers developers several useful extensions that significantly simplify the process of creating Minecraft modifications.

Enhanced owo Configuration

The library provides an improved version of the configuration screen from owo-lib. To activate this feature, simply replace the standard @Modmenu annotation with @SushiModmenu. Currently implemented is support for identifier lists of type List<Identifier>.

Item Registration Helper

One of the key features of Sushi Bar is simplifying the process of registering game items. Instead of cumbersome standard code, you can use a special helper class:

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

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

For comparison, here's what the equivalent code looks like without using 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

Sushi Bar also adds new capabilities for working with markdown markup in the Lavender modification. To activate these features, you need to add the parameter "sushi_features": true to the book definition. Available extensions include:

  • Display of 2x2 crafting grid (e.g.: <recipe_2x2;minecraft:crafting_table>)
  • Display of 1x1 crafting grid (e.g.: <recipe_1x1;minecraft:oak_planks>)
Project members
Chai

Chai

Developer

Project8gbDeRam

Project8gbDeRam

Created: 8 Jun 2024

ID: 2337