Skip to content

Commit

Permalink
Bowls are now returned after consumption; Mochi are now always edible
Browse files Browse the repository at this point in the history
  • Loading branch information
LeLoomi committed Mar 9, 2024
1 parent 8780445 commit 6d4cb80
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,6 @@ public class ModFoodComponents
.build();
public static final FoodComponent MOCHI = (new FoodComponent.Builder()).hunger(2).saturationModifier(0.3F)
.statusEffect(new StatusEffectInstance(StatusEffects.REGENERATION, 60), 1f)
.alwaysEdible()
.build();
}
5 changes: 3 additions & 2 deletions src/main/java/net/leloomi/vanillarice/item/ModItems.java
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
import net.leloomi.vanillarice.block.ModBlocks;
import net.minecraft.item.AliasedBlockItem;
import net.minecraft.item.Item;
import net.minecraft.item.StewItem;
import net.minecraft.registry.Registries;
import net.minecraft.registry.Registry;
import net.minecraft.util.Identifier;
Expand All @@ -18,13 +19,13 @@ public class ModItems
new Item(new FabricItemSettings()));

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

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

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

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

0 comments on commit 6d4cb80

Please sign in to comment.