-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Add a blade inside the blender
- Loading branch information
1 parent
318f512
commit 679a949
Showing
6 changed files
with
76 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
20 changes: 20 additions & 0 deletions
20
shared/src/main/java/net/blay09/mods/forbiddensmoothies/client/ModModels.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
package net.blay09.mods.forbiddensmoothies.client; | ||
|
||
import net.blay09.mods.balm.api.DeferredObject; | ||
import net.blay09.mods.balm.api.client.rendering.BalmModels; | ||
import net.blay09.mods.forbiddensmoothies.ForbiddenSmoothies; | ||
import net.minecraft.client.resources.model.BakedModel; | ||
import net.minecraft.resources.ResourceLocation; | ||
|
||
public class ModModels { | ||
public static DeferredObject<BakedModel> blenderBlade; | ||
|
||
public static void initialize(BalmModels models) { | ||
blenderBlade = models.loadModel(id("block/blender_blade")); | ||
} | ||
|
||
private static ResourceLocation id(String path) { | ||
return new ResourceLocation(ForbiddenSmoothies.MOD_ID, path); | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
24 changes: 24 additions & 0 deletions
24
shared/src/main/resources/assets/forbiddensmoothies/models/block/blender_blade.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
{ | ||
"credit": "Made with Blockbench", | ||
"parent": "block/block", | ||
"render_type": "cutout", | ||
"textures": { | ||
"1": "forbiddensmoothies:block/blender_frame", | ||
"particle": "forbiddensmoothies:block/blender_frame" | ||
}, | ||
"elements": [ | ||
{ | ||
"name": "blade", | ||
"from": [7.5, 2, 7.5], | ||
"to": [8.5, 14, 8.5], | ||
"faces": { | ||
"north": {"uv": [0, 2, 1, 14], "texture": "#1"}, | ||
"east": {"uv": [0, 2, 1, 14], "texture": "#1"}, | ||
"south": {"uv": [0, 2, 1, 14], "texture": "#1"}, | ||
"west": {"uv": [0, 2, 1, 14], "texture": "#1"}, | ||
"up": {"uv": [0, 13, 1, 14], "texture": "#1"}, | ||
"down": {"uv": [0, 2, 1, 3], "texture": "#1"} | ||
} | ||
} | ||
] | ||
} |
Binary file modified
BIN
+37 Bytes
(100%)
...d/src/main/resources/assets/forbiddensmoothies/textures/block/blender_frame.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.