优化模型代码

This commit is contained in:
17146 2024-07-29 23:35:35 +08:00
parent 9ce5fab6b9
commit 70be8b397c
3 changed files with 38 additions and 37 deletions

View file

@ -1,4 +1,3 @@
package net.mcreator.superbwarfare.client.model.entity;
import com.mojang.blaze3d.vertex.PoseStack;
@ -11,10 +10,12 @@ import net.minecraft.client.model.geom.PartPose;
import net.minecraft.client.model.geom.builders.*;
import net.minecraft.resources.ResourceLocation;
import net.minecraft.world.entity.Entity;
@SuppressWarnings("unused")
public class ModelHandGrenade<T extends Entity> extends EntityModel<T> {
// This layer location should be baked with EntityRendererProvider.Context in the entity renderer and passed into this model's constructor
public static final ModelLayerLocation LAYER_LOCATION = new ModelLayerLocation(new ResourceLocation(ModUtils.MODID, "model_hand_grenade_Converted"), "main");
private final ModelPart group;
public static final ModelLayerLocation LAYER_LOCATION = new ModelLayerLocation(new ResourceLocation(ModUtils.MODID, "model_hand_grenade"), "main");
public final ModelPart group;
public ModelHandGrenade(ModelPart root) {
this.group = root.getChild("group");

View file

@ -1,7 +1,7 @@
{
"credit": "Made with Blockbench",
"textures": {
"1": "superbwarfare:item/handgrenade"
"1": "superbwarfare:item/hand_grenade"
},
"elements": [
{