Skip to content

Commit

Permalink
1.21
Browse files Browse the repository at this point in the history
  • Loading branch information
Lance5057 committed Aug 14, 2024
1 parent d50c7f5 commit e7538ab
Show file tree
Hide file tree
Showing 8 changed files with 18 additions and 17 deletions.
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ mod_name=Butchercraft
# The license of the mod. Review your options at https://choosealicense.com/. All Rights Reserved is the default.
mod_license=MIT
# The mod version. See https://semver.org/
mod_version=2.4.0
mod_version=2.6.0
# The group ID for the mod. It is only important when publishing as an artifact to a Maven repository.
# This should match the base package used for the mod sources.
# See https://maven.apache.org/guides/mini/guide-naming-conventions.html
Expand Down
5 changes: 3 additions & 2 deletions src/main/java/com/lance5057/butchercraft/Butchercraft.java
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
package com.lance5057.butchercraft;

import com.lance5057.butchercraft.armor.BCArmorMaterial;
import com.lance5057.butchercraft.entity.ButchercraftVillagers;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;

import com.lance5057.butchercraft.armor.BCArmorMaterial;
import com.lance5057.butchercraft.entity.ButchercraftVillagers;

import net.neoforged.bus.api.IEventBus;
import net.neoforged.fml.ModContainer;
import net.neoforged.fml.common.Mod;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ public ApronModel(ModelPart root) {
}

public static MeshDefinition createLayer(CubeDeformation deformation) {
MeshDefinition meshdefinition = HumanoidModel.createMesh(deformation, 0);
MeshDefinition meshdefinition = HumanoidModel.createMesh(deformation, 0.5f);
PartDefinition partdefinition = meshdefinition.getRoot();

partdefinition.addOrReplaceChild("body", CubeListBuilder.create().texOffs(0, 0).addBox(-4.0F, 0.0F, -2.0F, 8.0F,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,14 +28,14 @@ public BootsModel(ModelPart root) {
}

public static MeshDefinition createLayer(CubeDeformation deformation) {
MeshDefinition meshdefinition = HumanoidModel.createMesh(deformation, 0);
MeshDefinition meshdefinition = HumanoidModel.createMesh(deformation, 0.5f);
PartDefinition partdefinition = meshdefinition.getRoot();

//partdefinition.addOrReplaceChild("body", CubeListBuilder.create(), PartPose.ZERO);
partdefinition.addOrReplaceChild("left_leg", CubeListBuilder.create().texOffs(0, 0).addBox(-2.0F, 0.0F, -2.0F,
4.0F, 12.0F, 4.0F, new CubeDeformation(0.0F)), PartPose.offset(0.0F, 0.0F, 0.0F));
4.0F, 12.0F, 4.0F, new CubeDeformation(0.25F)), PartPose.offset(0.0F, 0.0F, 0.0F));
partdefinition.addOrReplaceChild("right_leg", CubeListBuilder.create().mirror().texOffs(0, 0).addBox(-2.0F,
0.0F, -2.0F, 4.0F, 12.0F, 4.0F, new CubeDeformation(0.0F)), PartPose.offset(0.0F, 0.0F, 0.0F));
0.0F, -2.0F, 4.0F, 12.0F, 4.0F, new CubeDeformation(0.25F)), PartPose.offset(0.0F, 0.0F, 0.0F));

return meshdefinition;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,14 +28,14 @@ public CowHoodModel(ModelPart root) {
}

public static MeshDefinition createLayer(CubeDeformation deformation) {
MeshDefinition meshdefinition = HumanoidModel.createMesh(deformation, 0);
MeshDefinition meshdefinition = HumanoidModel.createMesh(deformation, 0.5f);
PartDefinition partdefinition = meshdefinition.getRoot();

PartDefinition head = partdefinition.addOrReplaceChild("head",
CubeListBuilder.create().texOffs(0, 0)
.addBox(-4.0F, -8.0F, -4.0F, 8.0F, 8.0F, 8.0F, new CubeDeformation(0.35F)).texOffs(24, 2)
.addBox(-6.0F, -10.0F, -0.6F, 1.0F, 3.0F, 1.0F, new CubeDeformation(0.0F)).texOffs(24, 2)
.addBox(5.0F, -10.0F, -0.6F, 1.0F, 3.0F, 1.0F, new CubeDeformation(0.0F)),
.addBox(-5.25F, -10.0F, -0.6F, 1.0F, 3.0F, 1.0F, new CubeDeformation(0.0F)).texOffs(24, 2)
.addBox(4.25F, -10.0F, -0.6F, 1.0F, 3.0F, 1.0F, new CubeDeformation(0.0F)),
PartPose.offsetAndRotation(0.0F, -5.0F, 0.6F, -0.2618F, 0.0F, 0.0F));

// head.addOrReplaceChild("head",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,14 +28,14 @@ public GlovesModel(ModelPart root) {
}

public static MeshDefinition createLayer(CubeDeformation deformation) {
MeshDefinition meshdefinition = HumanoidModel.createMesh(deformation, 0);
MeshDefinition meshdefinition = HumanoidModel.createMesh(deformation, 0.5f);
PartDefinition partdefinition = meshdefinition.getRoot();

partdefinition.addOrReplaceChild("body", CubeListBuilder.create(), PartPose.ZERO);
partdefinition.addOrReplaceChild("left_arm", CubeListBuilder.create().texOffs(16, 0).addBox(-1.0F, 0.0F, -2.0F,
4.0F, 12.0F, 4.0F, new CubeDeformation(0.0F)), PartPose.offset(0.0F, 0.0F, 0.0F));
partdefinition.addOrReplaceChild("right_arm", CubeListBuilder.create().mirror().texOffs(16, 0).addBox(-3.0F,
0.0F, -2.0F, 4.0F, 12.0F, 4.0F, new CubeDeformation(0.0F)), PartPose.offset(0.0F, 0.0F, 0.0F));
partdefinition.addOrReplaceChild("left_arm", CubeListBuilder.create().texOffs(16, 0).addBox(-1.5F, -2.0F, -2.0F,
4.0F, 12.0F, 4.0F, new CubeDeformation(0.25F)), PartPose.offset(0.0F, 0.0F, 0.0F));
partdefinition.addOrReplaceChild("right_arm", CubeListBuilder.create().mirror().texOffs(16, 0).addBox(-2.5F,
-2.0F, -2.0F, 4.0F, 12.0F, 4.0F, new CubeDeformation(0.25F)), PartPose.offset(0.0F, 0.0F, 0.0F));

return meshdefinition;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ public static MeshDefinition createLayer(CubeDeformation deformation) {

partdefinition.addOrReplaceChild("hat", CubeListBuilder.create(), PartPose.offset(0.0F, 0.0F, 0.0F));
partdefinition.addOrReplaceChild("head", CubeListBuilder.create().texOffs(0, 16).addBox(
-4F, -8.0F, -4F, 8.0F, 8.0F, 8.0F, new CubeDeformation(0.0F)), PartPose.offset(0.0F, 24.0F, 0.0F));
-4F, -8.0F, -4F, 8.0F, 8.0F, 8.0F, new CubeDeformation(0.25F)), PartPose.offset(0.0F, 24.0F, 0.0F));

return meshdefinition;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ public ItemStack insertItem(ItemStack heldItem) {
for (int i = 0; i < 3; i++) {
if (inventory.isItemValid(i, heldItem)) {

if (!ItemStack.isSameItemSameComponents(inventory.insertItem(i, heldItem, true), heldItem)) {
if (!ItemStack.matches(inventory.insertItem(i, heldItem, true), heldItem)) {

heldItem = inventory.insertItem(i, heldItem.copy(), false);

Expand Down

0 comments on commit e7538ab

Please sign in to comment.