Skip to content

Commit

Permalink
添加:锅铲材质
Browse files Browse the repository at this point in the history
  • Loading branch information
MCZME committed Aug 20, 2024
1 parent 4bb4443 commit 5d1994e
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
// 1.21 2024-08-18T21:30:07.1396541 Item Models: lingshi
// 1.21 2024-08-20T17:21:47.1347182 Item Models: lingshi
bad0cb5e093fa42331c2d4a1157d1a7b5b3fc588 assets/lingshi/models/item/chopping_board.json
249957a6811e300efca306db358e468855851d73 assets/lingshi/models/item/iron_knife.json
b767fc7952daf0eff3485fe4d8c06c5bba930c22 assets/lingshi/models/item/oil_bucket.json
496d711c2d4af0f851d40f859b102da69188089d assets/lingshi/models/item/rice.json
abe8ae1523c26af167289fe958382b2477d96ea1 assets/lingshi/models/item/rice_of_ear.json
57cfb1f90de649ab0f56f107cb56e1d0d2f87ae6 assets/lingshi/models/item/rice_seedling.json
cff85c127954ba63ac8129929c0d7346bf8f305d assets/lingshi/models/item/skillet.json
da8fb27d7e9b15fbd96ca8a49b328776550bb2b3 assets/lingshi/models/item/spatula.json
3 changes: 1 addition & 2 deletions src/main/java/mczme/lingshi/client/screen/CookingHud.java
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
import mczme.lingshi.common.datamap.ingredient.CookingFoodData;
import mczme.lingshi.common.registry.BlockEntityTypes;
import mczme.lingshi.common.registry.ModFluids;
import mczme.lingshi.common.registry.ModItems;
import mczme.lingshi.lingshi;
import net.minecraft.client.DeltaTracker;
import net.minecraft.client.Minecraft;
Expand Down Expand Up @@ -52,7 +51,7 @@ public void render(@NotNull GuiGraphics pGuiGraphics, @NotNull DeltaTracker pDel
int j = 0;
if (!result.isEmpty()) {
pGuiGraphics.renderItem(result, X - 18, Y);
pGuiGraphics.renderItem(new ItemStack(ModItems.SPATULA.get()), X, Y);
pGuiGraphics.blit(HUD_Sprite, X, Y , 16, 16, 0, 36,16,16, 64, 64);
pGuiGraphics.drawCenteredString(Minecraft.getInstance().font, String.valueOf(stirFryCount), X + 24, Y + 6, 0xffffff);
if (!container.isEmpty()) {
pGuiGraphics.renderItem(container, X + 36, Y);
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/mczme/lingshi/common/data/ItemModels.java
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ protected void registerModels() {
withExistingParent(String.valueOf(ModItems.CHOPPING_BOARD.get()), modLoc("block/chopping_board"));
withExistingParent(String.valueOf(ModItems.SKILLET.get()), modLoc("block/skillet"));
withExistingParent(String.valueOf(ModItems.IRON_KNIFE.get()),mcLoc("item/handheld")).texture("layer0", modLoc("item/iron_knife"));

withExistingParent(String.valueOf(ModItems.SPATULA.get()),mcLoc("item/handheld")).texture("layer0", modLoc("item/spatula"));

}
}
Binary file modified src/main/resources/assets/lingshi/textures/gui/cooking_hud.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 5d1994e

Please sign in to comment.