Skip to content

Commit

Permalink
Hotfix to make food actually edible again
Browse files Browse the repository at this point in the history
  • Loading branch information
LeLoomi committed Feb 9, 2024
1 parent b9329dc commit 8780445
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 10 deletions.
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ org.gradle.jvmargs=-Xmx2G


# Mod Properties
mod_version = 0.1.2-1.20
mod_version = 0.1.3-1.20
maven_group = net.leloomi
archives_base_name = vanillarice

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,13 @@

public class ModFoodComponents
{
public static final FoodComponent RICE_BOWL = (new FoodComponent.Builder()).hunger(3).saturationModifier(0.6F).build();
public static final FoodComponent MAKI_SUSHI = (new FoodComponent.Builder()).hunger(5).saturationModifier(0.6F).build();
public static final FoodComponent FRIED_RICE = (new FoodComponent.Builder()).hunger(5).saturationModifier(0.6F).build();
public static final FoodComponent MOCHI = (new FoodComponent.Builder()).hunger(2).saturationModifier(0.3F).statusEffect(new StatusEffectInstance(StatusEffects.REGENERATION, 60), 1f).build();

public static final FoodComponent RICE_BOWL = (new FoodComponent.Builder()).hunger(3).saturationModifier(0.6F)
.build();
public static final FoodComponent MAKI_SUSHI = (new FoodComponent.Builder()).hunger(5).saturationModifier(0.6F)
.build();
public static final FoodComponent FRIED_RICE = (new FoodComponent.Builder()).hunger(5).saturationModifier(0.6F)
.build();
public static final FoodComponent MOCHI = (new FoodComponent.Builder()).hunger(2).saturationModifier(0.3F)
.statusEffect(new StatusEffectInstance(StatusEffects.REGENERATION, 60), 1f)
.build();
}
8 changes: 4 additions & 4 deletions src/main/java/net/leloomi/vanillarice/item/ModItems.java
Original file line number Diff line number Diff line change
Expand Up @@ -18,16 +18,16 @@ public class ModItems
new Item(new FabricItemSettings()));

public static final Item RICE_BOWL = registerItem("rice_bowl",
new Item(new FabricItemSettings()));
new Item(new FabricItemSettings().food(ModFoodComponents.RICE_BOWL)));

public static final Item MAKI_SUSHI = registerItem("maki_sushi",
new Item(new FabricItemSettings()));
new Item(new FabricItemSettings().food(ModFoodComponents.MAKI_SUSHI)));

public static final Item FRIED_RICE = registerItem("fried_rice",
new Item(new FabricItemSettings()));
new Item(new FabricItemSettings().food(ModFoodComponents.FRIED_RICE)));

public static final Item MOCHI = registerItem("mochi",
new Item(new FabricItemSettings()));
new Item(new FabricItemSettings().food(ModFoodComponents.MOCHI)));

public static final Item RICE_BAG = registerItem("rice_bag",
new Item(new FabricItemSettings()));
Expand Down

0 comments on commit 8780445

Please sign in to comment.