diff --git a/src/main/java/io/github/realyusufismail/tutorialmod/TutorialMod.java b/src/main/java/io/github/realyusufismail/tutorialmod/TutorialMod.java index 823b70d..3a7a4e8 100644 --- a/src/main/java/io/github/realyusufismail/tutorialmod/TutorialMod.java +++ b/src/main/java/io/github/realyusufismail/tutorialmod/TutorialMod.java @@ -1,6 +1,6 @@ package io.github.realyusufismail.tutorialmod; -import io.github.realyusufismail.tutorialmod.client.TutorialModShieldItemRendererProvider; +import io.github.realyusufismail.tutorialmod.client.shield.TutorialModShieldItemRendererProvider; import io.github.realyusufismail.tutorialmod.data.DataGenerators; import io.github.realyusufismail.tutorialmod.events.Events; import io.github.realyusufismail.tutorialmod.init.*; diff --git a/src/main/java/io/github/realyusufismail/tutorialmod/client/render/TutorialModShieldItemRenderer.java b/src/main/java/io/github/realyusufismail/tutorialmod/client/render/shield/TutorialModShieldItemRenderer.java similarity index 94% rename from src/main/java/io/github/realyusufismail/tutorialmod/client/render/TutorialModShieldItemRenderer.java rename to src/main/java/io/github/realyusufismail/tutorialmod/client/render/shield/TutorialModShieldItemRenderer.java index e1e7a07..4669a2a 100644 --- a/src/main/java/io/github/realyusufismail/tutorialmod/client/render/TutorialModShieldItemRenderer.java +++ b/src/main/java/io/github/realyusufismail/tutorialmod/client/render/shield/TutorialModShieldItemRenderer.java @@ -1,8 +1,9 @@ -package io.github.realyusufismail.tutorialmod.client.render; +package io.github.realyusufismail.tutorialmod.client.render.shield; import com.mojang.blaze3d.vertex.PoseStack; import com.mojang.blaze3d.vertex.VertexConsumer; import io.github.realyusufismail.tutorialmod.TutorialMod; +import io.github.realyusufismail.tutorialmod.client.render.ModBlockEntityWithoutLevelRenderer; import io.github.realyusufismail.tutorialmod.init.ItemInit; import io.github.realyusufismail.tutorialmod.items.ModShieldItem; import io.github.realyusufismail.tutorialmod.material.ShieldMaterial; diff --git a/src/main/java/io/github/realyusufismail/tutorialmod/client/render/trident/TutorialModTridentItemRenderer.java b/src/main/java/io/github/realyusufismail/tutorialmod/client/render/trident/TutorialModTridentItemRenderer.java new file mode 100644 index 0000000..222baf1 --- /dev/null +++ b/src/main/java/io/github/realyusufismail/tutorialmod/client/render/trident/TutorialModTridentItemRenderer.java @@ -0,0 +1,50 @@ +package io.github.realyusufismail.tutorialmod.client.render.trident; + +import com.mojang.blaze3d.vertex.PoseStack; +import com.mojang.blaze3d.vertex.VertexConsumer; +import com.mojang.math.Axis; +import io.github.realyusufismail.tutorialmod.TutorialMod; +import net.minecraft.client.model.TridentModel; +import net.minecraft.client.model.geom.ModelLayers; +import net.minecraft.client.renderer.MultiBufferSource; +import net.minecraft.client.renderer.entity.EntityRenderer; +import net.minecraft.client.renderer.entity.EntityRendererProvider; +import net.minecraft.client.renderer.entity.ItemRenderer; +import net.minecraft.client.renderer.texture.OverlayTexture; +import net.minecraft.resources.ResourceLocation; +import net.minecraft.util.Mth; +import net.minecraft.world.entity.projectile.ThrownTrident; +import org.jetbrains.annotations.NotNull; + +public class TutorialModTridentItemRenderer extends EntityRenderer { + + private final TridentModel tridentModel; + + public TutorialModTridentItemRenderer(EntityRendererProvider.Context context) { + super(context); + tridentModel = new TridentModel(context.bakeLayer(ModelLayers.TRIDENT)); + } + + @Override + public void render(ThrownTrident pEntity, float pEntityYaw, float pPartialTick, PoseStack pPoseStack, MultiBufferSource pBuffer, int pPackedLight) { + pPoseStack.pushPose(); + pPoseStack.mulPose( + Axis.YP.rotationDegrees(Mth.lerp(pPartialTick, pEntity.yRotO, pEntity.getYRot()) - 90.0f)); + pPoseStack.mulPose( + Axis.ZP.rotationDegrees(Mth.lerp(pPartialTick, pEntity.xRotO, pEntity.getYRot()) + 90.0f)); + VertexConsumer vertexConsumer = + ItemRenderer.getFoilBufferDirect( + pBuffer, + tridentModel.renderType(getTextureLocation(pEntity)), + false, + pEntity.isFoil()); + tridentModel.renderToBuffer(pPoseStack, vertexConsumer, pPackedLight, OverlayTexture.NO_OVERLAY); + pPoseStack.popPose(); + super.render(pEntity, pEntityYaw, pPartialTick, pPoseStack, pBuffer, pPackedLight); + } + + @Override + public @NotNull ResourceLocation getTextureLocation(ThrownTrident pEntity) { + return ResourceLocation.fromNamespaceAndPath(TutorialMod.MOD_ID, "entity/trident/example_trident"); + } +} diff --git a/src/main/java/io/github/realyusufismail/tutorialmod/client/TutorialModShieldItemRendererProvider.java b/src/main/java/io/github/realyusufismail/tutorialmod/client/shield/TutorialModShieldItemRendererProvider.java similarity index 83% rename from src/main/java/io/github/realyusufismail/tutorialmod/client/TutorialModShieldItemRendererProvider.java rename to src/main/java/io/github/realyusufismail/tutorialmod/client/shield/TutorialModShieldItemRendererProvider.java index 4a8d5c4..b0e9637 100644 --- a/src/main/java/io/github/realyusufismail/tutorialmod/client/TutorialModShieldItemRendererProvider.java +++ b/src/main/java/io/github/realyusufismail/tutorialmod/client/shield/TutorialModShieldItemRendererProvider.java @@ -1,6 +1,6 @@ -package io.github.realyusufismail.tutorialmod.client; +package io.github.realyusufismail.tutorialmod.client.shield; -import io.github.realyusufismail.tutorialmod.client.render.TutorialModShieldItemRenderer; +import io.github.realyusufismail.tutorialmod.client.render.shield.TutorialModShieldItemRenderer; import net.neoforged.neoforge.client.event.RegisterClientReloadListenersEvent; import net.neoforged.neoforge.client.extensions.common.IClientItemExtensions; import org.jetbrains.annotations.NotNull; diff --git a/src/main/java/io/github/realyusufismail/tutorialmod/client/trident/TutorialModTridentRendererISTER.java b/src/main/java/io/github/realyusufismail/tutorialmod/client/trident/TutorialModTridentRendererISTER.java new file mode 100644 index 0000000..8c9637f --- /dev/null +++ b/src/main/java/io/github/realyusufismail/tutorialmod/client/trident/TutorialModTridentRendererISTER.java @@ -0,0 +1,33 @@ +package io.github.realyusufismail.tutorialmod.client.trident; + +import com.mojang.blaze3d.vertex.PoseStack; +import io.github.realyusufismail.tutorialmod.TutorialMod; +import io.github.realyusufismail.tutorialmod.client.render.ModBlockEntityWithoutLevelRenderer; +import io.github.realyusufismail.tutorialmod.init.ItemInit; +import net.minecraft.client.model.TridentModel; +import net.minecraft.client.model.geom.ModelLayers; +import net.minecraft.client.renderer.MultiBufferSource; +import net.minecraft.client.resources.model.ModelResourceLocation; +import net.minecraft.resources.ResourceLocation; +import net.minecraft.server.packs.resources.ResourceManager; +import net.minecraft.world.item.ItemDisplayContext; +import net.minecraft.world.item.ItemStack; + +public class TutorialModTridentRendererISTER extends ModBlockEntityWithoutLevelRenderer { + + private TridentModel tridentModel; + private final ModelResourceLocation modelResourceLocation = + new ModelResourceLocation(ResourceLocation.fromNamespaceAndPath("tutorialmod", "example_trident"), "example_trident"); + private final ResourceLocation textureLocation = + ResourceLocation.fromNamespaceAndPath(TutorialMod.MOD_ID, "entity/trident/example_trident"); + + @Override + public void onResourceManagerReload(ResourceManager pResourceManager) { + tridentModel = new TridentModel(this.entityModelSet.bakeLayer(ModelLayers.TRIDENT)); + } + + @Override + public void renderByItem(ItemStack pStack, ItemDisplayContext pDisplayContext, PoseStack pPoseStack, MultiBufferSource pBuffer, int pPackedLight, int pPackedOverlay) { + + } +} diff --git a/src/main/java/io/github/realyusufismail/tutorialmod/items/ModShieldItem.java b/src/main/java/io/github/realyusufismail/tutorialmod/items/ModShieldItem.java index 18161ec..81a08d5 100644 --- a/src/main/java/io/github/realyusufismail/tutorialmod/items/ModShieldItem.java +++ b/src/main/java/io/github/realyusufismail/tutorialmod/items/ModShieldItem.java @@ -1,6 +1,6 @@ package io.github.realyusufismail.tutorialmod.items; -import io.github.realyusufismail.tutorialmod.client.TutorialModShieldItemRendererProvider; +import io.github.realyusufismail.tutorialmod.client.shield.TutorialModShieldItemRendererProvider; import net.minecraft.world.item.ItemStack; import net.minecraft.world.item.ShieldItem; import net.minecraft.world.item.Tier; diff --git a/src/main/java/io/github/realyusufismail/tutorialmod/material/ShieldMaterial.java b/src/main/java/io/github/realyusufismail/tutorialmod/material/ShieldMaterial.java index d98b398..471060e 100644 --- a/src/main/java/io/github/realyusufismail/tutorialmod/material/ShieldMaterial.java +++ b/src/main/java/io/github/realyusufismail/tutorialmod/material/ShieldMaterial.java @@ -12,5 +12,4 @@ public class ShieldMaterial { public static final Material SHIELD_BASE_GRAPHITE_NO_PATTERN = new Material( net.minecraft.client.renderer.Sheets.SHIELD_SHEET, ResourceLocation.fromNamespaceAndPath("tutorialmod", "entity/shield/shield_base_nopattern")); - } diff --git a/src/main/resources/assets/tutorialmod/textures/entity/trident/example_trident.png b/src/main/resources/assets/tutorialmod/textures/entity/trident/example_trident.png new file mode 100644 index 0000000..9da54f0 Binary files /dev/null and b/src/main/resources/assets/tutorialmod/textures/entity/trident/example_trident.png differ diff --git a/src/main/resources/assets/tutorialmod/textures/item/example_trident.png b/src/main/resources/assets/tutorialmod/textures/item/example_trident.png new file mode 100644 index 0000000..cbf0075 Binary files /dev/null and b/src/main/resources/assets/tutorialmod/textures/item/example_trident.png differ diff --git a/src/main/resources/assets/tutorialmod/textures/models/trident/Trident.bbmodel b/src/main/resources/assets/tutorialmod/textures/models/trident/Trident.bbmodel deleted file mode 100644 index 12d276f..0000000 --- a/src/main/resources/assets/tutorialmod/textures/models/trident/Trident.bbmodel +++ /dev/null @@ -1 +0,0 @@ -{"meta":{"format_version":"4.5","model_format":"java_block","box_uv":false},"name":"Trident","parent":"","ambientocclusion":true,"front_gui_light":false,"visible_box":[1,1,0],"variable_placeholders":"","variable_placeholder_buttons":[],"unhandled_root_fields":{},"resolution":{"width":16,"height":16},"elements":[{"name":"cube","box_uv":false,"rescale":false,"locked":false,"render_order":"default","allow_mirror_modeling":true,"from":[7,0,7],"to":[8,6,8],"autouv":0,"color":1,"origin":[0,0,0],"faces":{"north":{"uv":[4,0,5,6],"texture":0},"east":{"uv":[5,0,6,6],"texture":0},"south":{"uv":[6,0,7,6],"texture":0},"west":{"uv":[4,6,5,12],"texture":0},"up":{"uv":[9,5,8,4],"texture":0},"down":{"uv":[9,5,8,6],"texture":0}},"type":"cube","uuid":"eae1f7e2-cdd4-bdd9-3bde-3168711c7ec0"},{"name":"cube","box_uv":false,"rescale":false,"locked":false,"render_order":"default","allow_mirror_modeling":true,"from":[7,6,7],"to":[8,7,8],"autouv":0,"color":1,"origin":[0,0,0],"faces":{"north":{"uv":[9,6,10,7],"texture":0},"east":{"uv":[7,9,8,10],"texture":0},"south":{"uv":[9,7,10,8],"texture":0},"west":{"uv":[8,9,9,10],"texture":0},"up":{"uv":[10,9,9,8],"texture":0},"down":{"uv":[10,9,9,10],"texture":0}},"type":"cube","uuid":"f65c4ace-58f6-096f-eeaf-3aff1baf9dae"},{"name":"cube","box_uv":false,"rescale":false,"locked":false,"render_order":"default","allow_mirror_modeling":true,"from":[7,7,7],"to":[8,17,8],"autouv":0,"color":1,"origin":[0,0,0],"faces":{"north":{"uv":[0,0,1,10],"texture":0},"east":{"uv":[1,0,2,10],"texture":0},"south":{"uv":[2,0,3,10],"texture":0},"west":{"uv":[3,0,4,10],"texture":0},"up":{"uv":[1,11,0,10],"texture":0},"down":{"uv":[11,0,10,1],"texture":0}},"type":"cube","uuid":"c2674072-9374-b95d-1ee2-cab82dc44e12"},{"name":"cube","box_uv":false,"rescale":false,"locked":false,"render_order":"default","allow_mirror_modeling":true,"from":[7,17,7],"to":[8,20,8],"autouv":0,"color":1,"origin":[0,0,0],"faces":{"north":{"uv":[5,6,6,9],"texture":0},"east":{"uv":[6,6,7,9],"texture":0},"south":{"uv":[7,0,8,3],"texture":0},"west":{"uv":[7,3,8,6],"texture":0},"up":{"uv":[2,11,1,10],"texture":0},"down":{"uv":[11,1,10,2],"texture":0}},"type":"cube","uuid":"5b610bcb-7a45-9b12-27e2-bf893c14df47"},{"name":"cube","box_uv":false,"rescale":false,"locked":false,"render_order":"default","allow_mirror_modeling":true,"from":[7,20,8],"to":[8,21,9],"autouv":0,"color":1,"origin":[0,0,0],"faces":{"north":{"uv":[10,5,11,6],"texture":0},"east":{"uv":[6,10,7,11],"texture":0},"south":{"uv":[10,6,11,7],"texture":0},"west":{"uv":[7,10,8,11],"texture":0},"up":{"uv":[11,8,10,7],"texture":0},"down":{"uv":[9,10,8,11],"texture":0}},"type":"cube","uuid":"ad01a00a-ba6d-4e85-e3fd-7b9c1119b87e"},{"name":"cube","box_uv":false,"rescale":false,"locked":false,"render_order":"default","allow_mirror_modeling":true,"from":[7,20,6],"to":[8,21,7],"autouv":0,"color":1,"origin":[0,0,0],"faces":{"north":{"uv":[10,8,11,9],"texture":0},"east":{"uv":[9,10,10,11],"texture":0},"south":{"uv":[10,9,11,10],"texture":0},"west":{"uv":[10,10,11,11],"texture":0},"up":{"uv":[1,12,0,11],"texture":0},"down":{"uv":[12,0,11,1],"texture":0}},"type":"cube","uuid":"16d10b6f-eb03-03d2-522d-3e9ee914bf4c"},{"name":"cube","box_uv":false,"rescale":false,"locked":false,"render_order":"default","allow_mirror_modeling":true,"from":[7,21,6],"to":[8,22,7],"autouv":0,"color":1,"origin":[0,0,0],"faces":{"north":{"uv":[7,6,8,7],"texture":0},"east":{"uv":[7,7,8,8],"texture":0},"south":{"uv":[8,0,9,1],"texture":0},"west":{"uv":[8,1,9,2],"texture":0},"up":{"uv":[9,3,8,2],"texture":0},"down":{"uv":[9,3,8,4],"texture":0}},"type":"cube","uuid":"111805be-69e2-c35b-253f-0418aa616407"},{"name":"cube","box_uv":false,"rescale":false,"locked":false,"render_order":"default","allow_mirror_modeling":true,"from":[7,21,7],"to":[8,22,8],"autouv":0,"color":1,"origin":[0,0,0],"faces":{"north":{"uv":[1,11,2,12],"texture":0},"east":{"uv":[11,1,12,2],"texture":0},"south":{"uv":[2,11,3,12],"texture":0},"west":{"uv":[11,2,12,3],"texture":0},"up":{"uv":[4,12,3,11],"texture":0},"down":{"uv":[12,3,11,4],"texture":0}},"type":"cube","uuid":"22d527fa-0d9c-a5b1-800e-683375a1d493"},{"name":"cube","box_uv":false,"rescale":false,"locked":false,"render_order":"default","allow_mirror_modeling":true,"from":[7,21,8],"to":[8,22,9],"autouv":0,"color":1,"origin":[0,0,0],"faces":{"north":{"uv":[11,4,12,5],"texture":0},"east":{"uv":[5,11,6,12],"texture":0},"south":{"uv":[11,5,12,6],"texture":0},"west":{"uv":[6,11,7,12],"texture":0},"up":{"uv":[12,7,11,6],"texture":0},"down":{"uv":[8,11,7,12],"texture":0}},"type":"cube","uuid":"aeaa1717-233e-54f4-742b-2e0aa0e97393"},{"name":"cube","box_uv":false,"rescale":false,"locked":false,"render_order":"default","allow_mirror_modeling":true,"from":[7,21,9],"to":[8,22,10],"autouv":0,"color":1,"origin":[0,0,0],"faces":{"north":{"uv":[11,7,12,8],"texture":0},"east":{"uv":[8,11,9,12],"texture":0},"south":{"uv":[11,8,12,9],"texture":0},"west":{"uv":[9,11,10,12],"texture":0},"up":{"uv":[12,10,11,9],"texture":0},"down":{"uv":[11,11,10,12],"texture":0}},"type":"cube","uuid":"bf98ef61-bc42-8be2-9681-8941b3afaaa4"},{"name":"cube","box_uv":false,"rescale":false,"locked":false,"render_order":"default","allow_mirror_modeling":true,"from":[7,21,5],"to":[8,22,6],"autouv":0,"color":1,"origin":[0,0,0],"faces":{"north":{"uv":[11,10,12,11],"texture":0},"east":{"uv":[11,11,12,12],"texture":0},"south":{"uv":[0,12,1,13],"texture":0},"west":{"uv":[12,0,13,1],"texture":0},"up":{"uv":[2,13,1,12],"texture":0},"down":{"uv":[13,1,12,2],"texture":0}},"type":"cube","uuid":"352a545e-0be7-8b4e-0eb7-0043a1d2a816"},{"name":"cube","box_uv":false,"rescale":false,"locked":false,"render_order":"default","allow_mirror_modeling":true,"from":[7,22,5],"to":[8,23,6],"autouv":0,"color":1,"origin":[0,0,0],"faces":{"north":{"uv":[2,12,3,13],"texture":0},"east":{"uv":[12,2,13,3],"texture":0},"south":{"uv":[3,12,4,13],"texture":0},"west":{"uv":[12,3,13,4],"texture":0},"up":{"uv":[5,13,4,12],"texture":0},"down":{"uv":[13,4,12,5],"texture":0}},"type":"cube","uuid":"fa218f8c-1da2-16a0-e564-13c08b415b07"},{"name":"cube","box_uv":false,"rescale":false,"locked":false,"render_order":"default","allow_mirror_modeling":true,"from":[7,23,5],"to":[8,24,6],"autouv":0,"color":1,"origin":[0,0,0],"faces":{"north":{"uv":[5,12,6,13],"texture":0},"east":{"uv":[12,5,13,6],"texture":0},"south":{"uv":[6,12,7,13],"texture":0},"west":{"uv":[12,6,13,7],"texture":0},"up":{"uv":[8,13,7,12],"texture":0},"down":{"uv":[13,7,12,8],"texture":0}},"type":"cube","uuid":"312d9214-f331-3925-6cb7-3867ebf2a2ad"},{"name":"cube","box_uv":false,"rescale":false,"locked":false,"render_order":"default","allow_mirror_modeling":true,"from":[7,22,7],"to":[8,23,8],"autouv":0,"color":1,"origin":[0,0,0],"faces":{"north":{"uv":[8,12,9,13],"texture":0},"east":{"uv":[12,8,13,9],"texture":0},"south":{"uv":[9,12,10,13],"texture":0},"west":{"uv":[12,9,13,10],"texture":0},"up":{"uv":[11,13,10,12],"texture":0},"down":{"uv":[13,10,12,11],"texture":0}},"type":"cube","uuid":"6560f507-cbe5-08bd-4483-334d9b32cac4"},{"name":"cube","box_uv":false,"rescale":false,"locked":false,"render_order":"default","allow_mirror_modeling":true,"from":[7,23,7],"to":[8,24,8],"autouv":0,"color":1,"origin":[0,0,0],"faces":{"north":{"uv":[11,12,12,13],"texture":0},"east":{"uv":[12,11,13,12],"texture":0},"south":{"uv":[12,12,13,13],"texture":0},"west":{"uv":[0,13,1,14],"texture":0},"up":{"uv":[14,1,13,0],"texture":0},"down":{"uv":[2,13,1,14],"texture":0}},"type":"cube","uuid":"1320a559-93ff-ec97-ba97-3fc0e8a0e9f5"},{"name":"cube","box_uv":false,"rescale":false,"locked":false,"render_order":"default","allow_mirror_modeling":true,"from":[7,24,7],"to":[8,25,8],"autouv":0,"color":1,"origin":[0,0,0],"faces":{"north":{"uv":[13,1,14,2],"texture":0},"east":{"uv":[2,13,3,14],"texture":0},"south":{"uv":[13,2,14,3],"texture":0},"west":{"uv":[3,13,4,14],"texture":0},"up":{"uv":[14,4,13,3],"texture":0},"down":{"uv":[5,13,4,14],"texture":0}},"type":"cube","uuid":"74c0f148-0b93-7280-07d7-f2d55d7be160"},{"name":"cube","box_uv":false,"rescale":false,"locked":false,"render_order":"default","allow_mirror_modeling":true,"from":[7,22,9],"to":[8,23,10],"autouv":0,"color":1,"origin":[0,0,0],"faces":{"north":{"uv":[13,4,14,5],"texture":0},"east":{"uv":[5,13,6,14],"texture":0},"south":{"uv":[13,5,14,6],"texture":0},"west":{"uv":[6,13,7,14],"texture":0},"up":{"uv":[14,7,13,6],"texture":0},"down":{"uv":[8,13,7,14],"texture":0}},"type":"cube","uuid":"56785044-f29c-68a4-e0ca-df10efd2d6e4"},{"name":"cube","box_uv":false,"rescale":false,"locked":false,"render_order":"default","allow_mirror_modeling":true,"from":[7,23,9],"to":[8,24,10],"autouv":0,"color":1,"origin":[0,0,0],"faces":{"north":{"uv":[13,7,14,8],"texture":0},"east":{"uv":[8,13,9,14],"texture":0},"south":{"uv":[13,8,14,9],"texture":0},"west":{"uv":[9,13,10,14],"texture":0},"up":{"uv":[14,10,13,9],"texture":0},"down":{"uv":[11,13,10,14],"texture":0}},"type":"cube","uuid":"1a1f2f75-62b6-50ba-11d2-5f21348256b8"},{"name":"cube","box_uv":false,"rescale":false,"locked":false,"render_order":"default","allow_mirror_modeling":true,"from":[7,24,5],"to":[8,25,6],"autouv":0,"color":1,"origin":[0,0,0],"faces":{"north":{"uv":[0,14,1,15],"texture":0},"east":{"uv":[14,0,15,1],"texture":0},"south":{"uv":[1,14,2,15],"texture":0},"west":{"uv":[14,1,15,2],"texture":0},"up":{"uv":[3,15,2,14],"texture":0},"down":{"uv":[15,2,14,3],"texture":0}},"type":"cube","uuid":"21f2f0f1-4dbf-b5e3-a2fd-6c003da8646a"},{"name":"cube","box_uv":false,"rescale":false,"locked":false,"render_order":"default","allow_mirror_modeling":true,"from":[7,20,7],"to":[8,21,8],"autouv":0,"color":1,"origin":[0,0,0],"faces":{"north":{"uv":[3,14,4,15],"texture":0},"east":{"uv":[14,3,15,4],"texture":0},"south":{"uv":[4,14,5,15],"texture":0},"west":{"uv":[14,4,15,5],"texture":0},"up":{"uv":[6,15,5,14],"texture":0},"down":{"uv":[15,5,14,6],"texture":0}},"type":"cube","uuid":"27444eac-eb6c-0b82-05ba-94663b8eccb4"},{"name":"cube","box_uv":false,"rescale":false,"locked":false,"render_order":"default","allow_mirror_modeling":true,"from":[7,24,9],"to":[8,25,10],"autouv":0,"color":1,"origin":[0,0,0],"faces":{"north":{"uv":[13,10,14,11],"texture":0},"east":{"uv":[11,13,12,14],"texture":0},"south":{"uv":[13,11,14,12],"texture":0},"west":{"uv":[12,13,13,14],"texture":0},"up":{"uv":[14,13,13,12],"texture":0},"down":{"uv":[14,13,13,14],"texture":0}},"type":"cube","uuid":"30880959-5328-b406-1b96-ccb2ca61ac51"},{"name":"cube","box_uv":false,"rescale":false,"locked":false,"render_order":"default","allow_mirror_modeling":true,"from":[7,25,7],"to":[8,26,8],"autouv":0,"color":1,"origin":[0,0,0],"faces":{"north":{"uv":[13,1,14,2],"texture":0},"east":{"uv":[2,13,3,14],"texture":0},"south":{"uv":[13,2,14,3],"texture":0},"west":{"uv":[3,13,4,14],"texture":0},"up":{"uv":[14,4,13,3],"texture":0},"down":{"uv":[5,13,4,14],"texture":0}},"type":"cube","uuid":"c36cfb1f-ee48-7934-ea27-e4772c39bb97"}],"outliner":["eae1f7e2-cdd4-bdd9-3bde-3168711c7ec0","f65c4ace-58f6-096f-eeaf-3aff1baf9dae","c2674072-9374-b95d-1ee2-cab82dc44e12","5b610bcb-7a45-9b12-27e2-bf893c14df47","27444eac-eb6c-0b82-05ba-94663b8eccb4","ad01a00a-ba6d-4e85-e3fd-7b9c1119b87e","16d10b6f-eb03-03d2-522d-3e9ee914bf4c","111805be-69e2-c35b-253f-0418aa616407","352a545e-0be7-8b4e-0eb7-0043a1d2a816","fa218f8c-1da2-16a0-e564-13c08b415b07","312d9214-f331-3925-6cb7-3867ebf2a2ad","21f2f0f1-4dbf-b5e3-a2fd-6c003da8646a","22d527fa-0d9c-a5b1-800e-683375a1d493","6560f507-cbe5-08bd-4483-334d9b32cac4","1320a559-93ff-ec97-ba97-3fc0e8a0e9f5","74c0f148-0b93-7280-07d7-f2d55d7be160","c36cfb1f-ee48-7934-ea27-e4772c39bb97","aeaa1717-233e-54f4-742b-2e0aa0e97393","bf98ef61-bc42-8be2-9681-8941b3afaaa4","56785044-f29c-68a4-e0ca-df10efd2d6e4","1a1f2f75-62b6-50ba-11d2-5f21348256b8","30880959-5328-b406-1b96-ccb2ca61ac51"],"textures":[{"path":"/Volumes/Yusuf's SSD/Github/TutorialMod-1.21/src/main/resources/assets/tutorialmod/textures/models/trident/trident_texture.png","name":"trident_texture.png","folder":"models/trident","namespace":"tutorialmod","id":"0","width":16,"height":16,"uv_width":16,"uv_height":16,"particle":true,"layers_enabled":false,"sync_to_project":"","render_mode":"default","render_sides":"auto","frame_time":1,"frame_order_type":"loop","frame_order":"","frame_interpolate":false,"visible":true,"internal":true,"saved":true,"uuid":"b73c9994-f95c-ef32-fc61-075d5315961d","relative_path":"../trident_texture.png","source":"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAR1JREFUOE9j/DFZ/D8DPuAVzbDnez7D/N7JDEuNFoNV7nE8xeCy34yBI/clIyNBAxgYGKLPxYI1wgyA2Ue0AcmadxnmXldGcSfI0LXzewi7AKTwQ7skw9bVXWCXwFzxP1eCgZPhImEDwP7lnAgOh+UvhBl+LG0AG0K0AbBAA2meq1jHwLBtKdgrRHkB5HcQQPc/yFU+OvKMIDnCseAVDbYVpAnZC6AYIGiAd2gZw8Z5PxkO+EWD4x0Z4DXgz+d8hvjb7+AhDg79mn/ggAQZhOKFLVceglMiciAhRxd6IoXJwV0AMgCmGWYDTBM+gxBeuFv0H1kjLJ0jp3l0NoiPEgbINhHLBiVjjFgAp3nFOnBgweIZb04FpQNCCgjJAwDhKL4RbT3WsAAAAABJRU5ErkJggg=="}],"display":{"thirdperson_righthand":{"translation":[0,-2.25,0]},"firstperson_righthand":{"translation":[0,-2,0]},"firstperson_lefthand":{"translation":[0,-2,0]},"ground":{"rotation":[21.95,61.13,-104.67],"translation":[0,-2.75,-0.75]},"gui":{"rotation":[8.29,76.78,3.03],"translation":[0.25,-3.25,0],"scale":[1,0.61328125,1]},"fixed":{"rotation":[-180,82,-180],"translation":[0,-4,-3.25]}}} \ No newline at end of file diff --git a/src/main/resources/assets/tutorialmod/textures/models/trident/Trident.json b/src/main/resources/assets/tutorialmod/textures/models/trident/Trident.json deleted file mode 100644 index e35f8b1..0000000 --- a/src/main/resources/assets/tutorialmod/textures/models/trident/Trident.json +++ /dev/null @@ -1,297 +0,0 @@ -{ - "credit": "Made with Blockbench", - "textures": { - "0": "tutorialmod:models/trident/trident_texture", - "particle": "tutorialmod:models/trident/trident_texture" - }, - "elements": [ - { - "from": [7, 0, 7], - "to": [8, 6, 8], - "faces": { - "north": {"uv": [4, 0, 5, 6], "texture": "#0"}, - "east": {"uv": [5, 0, 6, 6], "texture": "#0"}, - "south": {"uv": [6, 0, 7, 6], "texture": "#0"}, - "west": {"uv": [4, 6, 5, 12], "texture": "#0"}, - "up": {"uv": [9, 5, 8, 4], "texture": "#0"}, - "down": {"uv": [9, 5, 8, 6], "texture": "#0"} - } - }, - { - "from": [7, 6, 7], - "to": [8, 7, 8], - "faces": { - "north": {"uv": [9, 6, 10, 7], "texture": "#0"}, - "east": {"uv": [7, 9, 8, 10], "texture": "#0"}, - "south": {"uv": [9, 7, 10, 8], "texture": "#0"}, - "west": {"uv": [8, 9, 9, 10], "texture": "#0"}, - "up": {"uv": [10, 9, 9, 8], "texture": "#0"}, - "down": {"uv": [10, 9, 9, 10], "texture": "#0"} - } - }, - { - "from": [7, 7, 7], - "to": [8, 17, 8], - "faces": { - "north": {"uv": [0, 0, 1, 10], "texture": "#0"}, - "east": {"uv": [1, 0, 2, 10], "texture": "#0"}, - "south": {"uv": [2, 0, 3, 10], "texture": "#0"}, - "west": {"uv": [3, 0, 4, 10], "texture": "#0"}, - "up": {"uv": [1, 11, 0, 10], "texture": "#0"}, - "down": {"uv": [11, 0, 10, 1], "texture": "#0"} - } - }, - { - "from": [7, 17, 7], - "to": [8, 20, 8], - "faces": { - "north": {"uv": [5, 6, 6, 9], "texture": "#0"}, - "east": {"uv": [6, 6, 7, 9], "texture": "#0"}, - "south": {"uv": [7, 0, 8, 3], "texture": "#0"}, - "west": {"uv": [7, 3, 8, 6], "texture": "#0"}, - "up": {"uv": [2, 11, 1, 10], "texture": "#0"}, - "down": {"uv": [11, 1, 10, 2], "texture": "#0"} - } - }, - { - "from": [7, 20, 7], - "to": [8, 21, 8], - "faces": { - "north": {"uv": [3, 14, 4, 15], "texture": "#0"}, - "east": {"uv": [14, 3, 15, 4], "texture": "#0"}, - "south": {"uv": [4, 14, 5, 15], "texture": "#0"}, - "west": {"uv": [14, 4, 15, 5], "texture": "#0"}, - "up": {"uv": [6, 15, 5, 14], "texture": "#0"}, - "down": {"uv": [15, 5, 14, 6], "texture": "#0"} - } - }, - { - "from": [7, 20, 8], - "to": [8, 21, 9], - "faces": { - "north": {"uv": [10, 5, 11, 6], "texture": "#0"}, - "east": {"uv": [6, 10, 7, 11], "texture": "#0"}, - "south": {"uv": [10, 6, 11, 7], "texture": "#0"}, - "west": {"uv": [7, 10, 8, 11], "texture": "#0"}, - "up": {"uv": [11, 8, 10, 7], "texture": "#0"}, - "down": {"uv": [9, 10, 8, 11], "texture": "#0"} - } - }, - { - "from": [7, 20, 6], - "to": [8, 21, 7], - "faces": { - "north": {"uv": [10, 8, 11, 9], "texture": "#0"}, - "east": {"uv": [9, 10, 10, 11], "texture": "#0"}, - "south": {"uv": [10, 9, 11, 10], "texture": "#0"}, - "west": {"uv": [10, 10, 11, 11], "texture": "#0"}, - "up": {"uv": [1, 12, 0, 11], "texture": "#0"}, - "down": {"uv": [12, 0, 11, 1], "texture": "#0"} - } - }, - { - "from": [7, 21, 6], - "to": [8, 22, 7], - "faces": { - "north": {"uv": [7, 6, 8, 7], "texture": "#0"}, - "east": {"uv": [7, 7, 8, 8], "texture": "#0"}, - "south": {"uv": [8, 0, 9, 1], "texture": "#0"}, - "west": {"uv": [8, 1, 9, 2], "texture": "#0"}, - "up": {"uv": [9, 3, 8, 2], "texture": "#0"}, - "down": {"uv": [9, 3, 8, 4], "texture": "#0"} - } - }, - { - "from": [7, 21, 5], - "to": [8, 22, 6], - "faces": { - "north": {"uv": [11, 10, 12, 11], "texture": "#0"}, - "east": {"uv": [11, 11, 12, 12], "texture": "#0"}, - "south": {"uv": [0, 12, 1, 13], "texture": "#0"}, - "west": {"uv": [12, 0, 13, 1], "texture": "#0"}, - "up": {"uv": [2, 13, 1, 12], "texture": "#0"}, - "down": {"uv": [13, 1, 12, 2], "texture": "#0"} - } - }, - { - "from": [7, 22, 5], - "to": [8, 23, 6], - "faces": { - "north": {"uv": [2, 12, 3, 13], "texture": "#0"}, - "east": {"uv": [12, 2, 13, 3], "texture": "#0"}, - "south": {"uv": [3, 12, 4, 13], "texture": "#0"}, - "west": {"uv": [12, 3, 13, 4], "texture": "#0"}, - "up": {"uv": [5, 13, 4, 12], "texture": "#0"}, - "down": {"uv": [13, 4, 12, 5], "texture": "#0"} - } - }, - { - "from": [7, 23, 5], - "to": [8, 24, 6], - "faces": { - "north": {"uv": [5, 12, 6, 13], "texture": "#0"}, - "east": {"uv": [12, 5, 13, 6], "texture": "#0"}, - "south": {"uv": [6, 12, 7, 13], "texture": "#0"}, - "west": {"uv": [12, 6, 13, 7], "texture": "#0"}, - "up": {"uv": [8, 13, 7, 12], "texture": "#0"}, - "down": {"uv": [13, 7, 12, 8], "texture": "#0"} - } - }, - { - "from": [7, 24, 5], - "to": [8, 25, 6], - "faces": { - "north": {"uv": [0, 14, 1, 15], "texture": "#0"}, - "east": {"uv": [14, 0, 15, 1], "texture": "#0"}, - "south": {"uv": [1, 14, 2, 15], "texture": "#0"}, - "west": {"uv": [14, 1, 15, 2], "texture": "#0"}, - "up": {"uv": [3, 15, 2, 14], "texture": "#0"}, - "down": {"uv": [15, 2, 14, 3], "texture": "#0"} - } - }, - { - "from": [7, 21, 7], - "to": [8, 22, 8], - "faces": { - "north": {"uv": [1, 11, 2, 12], "texture": "#0"}, - "east": {"uv": [11, 1, 12, 2], "texture": "#0"}, - "south": {"uv": [2, 11, 3, 12], "texture": "#0"}, - "west": {"uv": [11, 2, 12, 3], "texture": "#0"}, - "up": {"uv": [4, 12, 3, 11], "texture": "#0"}, - "down": {"uv": [12, 3, 11, 4], "texture": "#0"} - } - }, - { - "from": [7, 22, 7], - "to": [8, 23, 8], - "faces": { - "north": {"uv": [8, 12, 9, 13], "texture": "#0"}, - "east": {"uv": [12, 8, 13, 9], "texture": "#0"}, - "south": {"uv": [9, 12, 10, 13], "texture": "#0"}, - "west": {"uv": [12, 9, 13, 10], "texture": "#0"}, - "up": {"uv": [11, 13, 10, 12], "texture": "#0"}, - "down": {"uv": [13, 10, 12, 11], "texture": "#0"} - } - }, - { - "from": [7, 23, 7], - "to": [8, 24, 8], - "faces": { - "north": {"uv": [11, 12, 12, 13], "texture": "#0"}, - "east": {"uv": [12, 11, 13, 12], "texture": "#0"}, - "south": {"uv": [12, 12, 13, 13], "texture": "#0"}, - "west": {"uv": [0, 13, 1, 14], "texture": "#0"}, - "up": {"uv": [14, 1, 13, 0], "texture": "#0"}, - "down": {"uv": [2, 13, 1, 14], "texture": "#0"} - } - }, - { - "from": [7, 24, 7], - "to": [8, 25, 8], - "faces": { - "north": {"uv": [13, 1, 14, 2], "texture": "#0"}, - "east": {"uv": [2, 13, 3, 14], "texture": "#0"}, - "south": {"uv": [13, 2, 14, 3], "texture": "#0"}, - "west": {"uv": [3, 13, 4, 14], "texture": "#0"}, - "up": {"uv": [14, 4, 13, 3], "texture": "#0"}, - "down": {"uv": [5, 13, 4, 14], "texture": "#0"} - } - }, - { - "from": [7, 25, 7], - "to": [8, 26, 8], - "faces": { - "north": {"uv": [13, 1, 14, 2], "texture": "#0"}, - "east": {"uv": [2, 13, 3, 14], "texture": "#0"}, - "south": {"uv": [13, 2, 14, 3], "texture": "#0"}, - "west": {"uv": [3, 13, 4, 14], "texture": "#0"}, - "up": {"uv": [14, 4, 13, 3], "texture": "#0"}, - "down": {"uv": [5, 13, 4, 14], "texture": "#0"} - } - }, - { - "from": [7, 21, 8], - "to": [8, 22, 9], - "faces": { - "north": {"uv": [11, 4, 12, 5], "texture": "#0"}, - "east": {"uv": [5, 11, 6, 12], "texture": "#0"}, - "south": {"uv": [11, 5, 12, 6], "texture": "#0"}, - "west": {"uv": [6, 11, 7, 12], "texture": "#0"}, - "up": {"uv": [12, 7, 11, 6], "texture": "#0"}, - "down": {"uv": [8, 11, 7, 12], "texture": "#0"} - } - }, - { - "from": [7, 21, 9], - "to": [8, 22, 10], - "faces": { - "north": {"uv": [11, 7, 12, 8], "texture": "#0"}, - "east": {"uv": [8, 11, 9, 12], "texture": "#0"}, - "south": {"uv": [11, 8, 12, 9], "texture": "#0"}, - "west": {"uv": [9, 11, 10, 12], "texture": "#0"}, - "up": {"uv": [12, 10, 11, 9], "texture": "#0"}, - "down": {"uv": [11, 11, 10, 12], "texture": "#0"} - } - }, - { - "from": [7, 22, 9], - "to": [8, 23, 10], - "faces": { - "north": {"uv": [13, 4, 14, 5], "texture": "#0"}, - "east": {"uv": [5, 13, 6, 14], "texture": "#0"}, - "south": {"uv": [13, 5, 14, 6], "texture": "#0"}, - "west": {"uv": [6, 13, 7, 14], "texture": "#0"}, - "up": {"uv": [14, 7, 13, 6], "texture": "#0"}, - "down": {"uv": [8, 13, 7, 14], "texture": "#0"} - } - }, - { - "from": [7, 23, 9], - "to": [8, 24, 10], - "faces": { - "north": {"uv": [13, 7, 14, 8], "texture": "#0"}, - "east": {"uv": [8, 13, 9, 14], "texture": "#0"}, - "south": {"uv": [13, 8, 14, 9], "texture": "#0"}, - "west": {"uv": [9, 13, 10, 14], "texture": "#0"}, - "up": {"uv": [14, 10, 13, 9], "texture": "#0"}, - "down": {"uv": [11, 13, 10, 14], "texture": "#0"} - } - }, - { - "from": [7, 24, 9], - "to": [8, 25, 10], - "faces": { - "north": {"uv": [13, 10, 14, 11], "texture": "#0"}, - "east": {"uv": [11, 13, 12, 14], "texture": "#0"}, - "south": {"uv": [13, 11, 14, 12], "texture": "#0"}, - "west": {"uv": [12, 13, 13, 14], "texture": "#0"}, - "up": {"uv": [14, 13, 13, 12], "texture": "#0"}, - "down": {"uv": [14, 13, 13, 14], "texture": "#0"} - } - } - ], - "display": { - "thirdperson_righthand": { - "translation": [0, -2.25, 0] - }, - "firstperson_righthand": { - "translation": [0, -2, 0] - }, - "firstperson_lefthand": { - "translation": [0, -2, 0] - }, - "ground": { - "rotation": [21.95, 61.13, -104.67], - "translation": [0, -2.75, -0.75] - }, - "gui": { - "rotation": [8.29, 76.78, 3.03], - "translation": [0.25, -3.25, 0], - "scale": [1, 0.61328, 1] - }, - "fixed": { - "rotation": [-180, 82, -180], - "translation": [0, -4, -3.25] - } - } -} \ No newline at end of file diff --git a/src/main/resources/assets/tutorialmod/textures/models/trident/trident_texture.png b/src/main/resources/assets/tutorialmod/textures/models/trident/trident_texture.png deleted file mode 100644 index 92991c9..0000000 Binary files a/src/main/resources/assets/tutorialmod/textures/models/trident/trident_texture.png and /dev/null differ