Jump to content

[1.8] Help with executing movement animation from MCAnimator


NovaViper

Recommended Posts

Hey, I'm trying to execute this walking animation I created using MCAnimator ONLY when the entity is moving. But I'm having trouble achieving this

 

Model Code

package common.zeroquest.client.renderer.entity.model;

import java.util.HashMap;

import net.minecraft.client.model.ModelBase;
import net.minecraft.entity.Entity;
import net.minecraft.entity.EntityLivingBase;
import common.zeroquest.client.mca.MCAModelRenderer;
import common.zeroquest.client.mca.libary.MCAVersionChecker;
import common.zeroquest.client.mca.libary.animation.AnimationHandler;
import common.zeroquest.client.mca.libary.math.Matrix4f;
import common.zeroquest.client.mca.libary.math.Quaternion;
import common.zeroquest.entity.EntityRowarn;

public class ModelRowarn extends ModelBase {
public final int MCA_MIN_REQUESTED_VERSION = 5;
public HashMap<String, MCAModelRenderer> parts = new HashMap<String, MCAModelRenderer>();

MCAModelRenderer neck1;
MCAModelRenderer torso1;
MCAModelRenderer tail1;
MCAModelRenderer leftHindLeg1;
MCAModelRenderer rightHindLeg1;
MCAModelRenderer leftFrontLeg;
MCAModelRenderer rightFrontLeg;
MCAModelRenderer neck2;
MCAModelRenderer torso2;
MCAModelRenderer tail2;
MCAModelRenderer leftHindLeg2;
MCAModelRenderer rightHindLeg2;
MCAModelRenderer leftFrontClaw1;
MCAModelRenderer leftFrontClaw2;
MCAModelRenderer rightFrontClaw1;
MCAModelRenderer rightFrontClaw2;
MCAModelRenderer topJaw;
MCAModelRenderer tail3;
MCAModelRenderer leftHindLeg3;
MCAModelRenderer rightHindLeg3;
MCAModelRenderer bottomJaw;
MCAModelRenderer tail4;
MCAModelRenderer leftHindClaw1;
MCAModelRenderer leftHindClaw2;
MCAModelRenderer rightHindClaw1;
MCAModelRenderer rightHindClaw2;
MCAModelRenderer fin1;
MCAModelRenderer fin2;

public ModelRowarn() {
	MCAVersionChecker.checkForLibraryVersion(getClass(), MCA_MIN_REQUESTED_VERSION);

	textureWidth = 256;
	textureHeight = 128;

	neck1 = new MCAModelRenderer(this, "Neck1", 21, 0);
	neck1.mirror = false;
	neck1.addBox(-2.0F, -2.0F, 1.0F, 4, 4, 6);
	neck1.setInitialRotationPoint(-0.5F, -11.0F, 9.0F);
	neck1.setInitialRotationMatrix(new Matrix4f().set(new Quaternion(-0.16652437F, 0.0F, 0.0F, 0.9860373F)).transpose());
	neck1.setTextureSize(256, 128);
	parts.put(neck1.boxName, neck1);

	torso1 = new MCAModelRenderer(this, "Torso1", 69, 0);
	torso1.mirror = false;
	torso1.addBox(-2.5F, -2.5F, -9.0F, 5, 5, 9);
	torso1.setInitialRotationPoint(-0.5F, -10.5F, 4.0F);
	torso1.setInitialRotationMatrix(new Matrix4f().set(new Quaternion(-0.055739015F, 0.0F, 0.0F, 0.9984454F)).transpose());
	torso1.setTextureSize(256, 128);
	parts.put(torso1.boxName, torso1);

	tail1 = new MCAModelRenderer(this, "Tail1", 99, 0);
	tail1.mirror = false;
	tail1.addBox(-2.0F, -2.0F, -10.0F, 4, 4, 10);
	tail1.setInitialRotationPoint(-0.5F, -11.5F, -4.0F);
	tail1.setInitialRotationMatrix(new Matrix4f().set(new Quaternion(-0.055739015F, 0.0F, 0.0F, 0.9984454F)).transpose());
	tail1.setTextureSize(256, 128);
	parts.put(tail1.boxName, tail1);

	leftHindLeg1 = new MCAModelRenderer(this, "LeftHindLeg1", 11, 17);
	leftHindLeg1.mirror = false;
	leftHindLeg1.addBox(-1.0F, -5.0F, -2.0F, 2, 5, 3);
	leftHindLeg1.setInitialRotationPoint(1.5F, -11.0F, -3.0F);
	leftHindLeg1.setInitialRotationMatrix(new Matrix4f().set(new Quaternion(-0.14816688F, 0.0F, 0.0F, 0.98896235F)).transpose());
	leftHindLeg1.setTextureSize(256, 128);
	parts.put(leftHindLeg1.boxName, leftHindLeg1);

	rightHindLeg1 = new MCAModelRenderer(this, "RightHindLeg1", 23, 17);
	rightHindLeg1.mirror = false;
	rightHindLeg1.addBox(-1.0F, -5.0F, -2.0F, 2, 5, 3);
	rightHindLeg1.setInitialRotationPoint(-2.5F, -11.0F, -3.0F);
	rightHindLeg1.setInitialRotationMatrix(new Matrix4f().set(new Quaternion(-0.14816688F, 0.0F, 0.0F, 0.98896235F)).transpose());
	rightHindLeg1.setTextureSize(256, 128);
	parts.put(rightHindLeg1.boxName, rightHindLeg1);

	leftFrontLeg = new MCAModelRenderer(this, "LeftFrontLeg", 0, 17);
	leftFrontLeg.mirror = false;
	leftFrontLeg.addBox(-1.0F, -11.0F, -1.0F, 2, 11, 2);
	leftFrontLeg.setInitialRotationPoint(2.0F, -11.0F, 8.0F);
	leftFrontLeg.setInitialRotationMatrix(new Matrix4f().set(new Quaternion(0.0F, 0.0F, 0.0F, 1.0F)).transpose());
	leftFrontLeg.setTextureSize(256, 128);
	parts.put(leftFrontLeg.boxName, leftFrontLeg);

	rightFrontLeg = new MCAModelRenderer(this, "RightFrontLeg", 35, 17);
	rightFrontLeg.mirror = false;
	rightFrontLeg.addBox(-1.0F, -11.0F, -1.0F, 2, 11, 2);
	rightFrontLeg.setInitialRotationPoint(-3.0F, -11.0F, 8.0F);
	rightFrontLeg.setInitialRotationMatrix(new Matrix4f().set(new Quaternion(0.0F, 0.0F, 0.0F, 1.0F)).transpose());
	rightFrontLeg.setTextureSize(256, 128);
	parts.put(rightFrontLeg.boxName, rightFrontLeg);

	neck2 = new MCAModelRenderer(this, "Neck2", 0, 0);
	neck2.mirror = false;
	neck2.addBox(-2.0F, -2.0F, 1.0F, 4, 4, 6);
	neck2.setInitialRotationPoint(0.0F, -0.4F, 5.0F);
	neck2.setInitialRotationMatrix(new Matrix4f().set(new Quaternion(-0.1478094F, 0.0F, 0.0F, 0.9890159F)).transpose());
	neck2.setTextureSize(256, 128);
	parts.put(neck2.boxName, neck2);
	neck1.addChild(neck2);

	torso2 = new MCAModelRenderer(this, "Torso2", 42, 0);
	torso2.mirror = false;
	torso2.addBox(-2.5F, -2.5F, -8.0F, 5, 5, ;
	torso2.setInitialRotationPoint(0.0F, -0.5F, 7.0F);
	torso2.setInitialRotationMatrix(new Matrix4f().set(new Quaternion(0.043619387F, 0.0F, 0.0F, 0.99904823F)).transpose());
	torso2.setTextureSize(256, 128);
	parts.put(torso2.boxName, torso2);
	torso1.addChild(torso2);

	tail2 = new MCAModelRenderer(this, "Tail2", 129, 0);
	tail2.mirror = false;
	tail2.addBox(-1.5F, -1.5F, -10.0F, 3, 3, 10);
	tail2.setInitialRotationPoint(0.0F, 0.0F, -9.0F);
	tail2.setInitialRotationMatrix(new Matrix4f().set(new Quaternion(-0.06104854F, 0.0F, 0.0F, 0.9981348F)).transpose());
	tail2.setTextureSize(256, 128);
	parts.put(tail2.boxName, tail2);
	tail1.addChild(tail2);

	leftHindLeg2 = new MCAModelRenderer(this, "LeftHindLeg2", 11, 27);
	leftHindLeg2.mirror = false;
	leftHindLeg2.addBox(-1.0F, -4.0F, -1.0F, 2, 4, 2);
	leftHindLeg2.setInitialRotationPoint(0.0F, -4.3F, 0.3F);
	leftHindLeg2.setInitialRotationMatrix(new Matrix4f().set(new Quaternion(0.40673664F, 0.0F, 0.0F, 0.9135454F)).transpose());
	leftHindLeg2.setTextureSize(256, 128);
	parts.put(leftHindLeg2.boxName, leftHindLeg2);
	leftHindLeg1.addChild(leftHindLeg2);

	rightHindLeg2 = new MCAModelRenderer(this, "RightHindLeg2", 23, 27);
	rightHindLeg2.mirror = false;
	rightHindLeg2.addBox(-1.0F, -4.0F, -1.0F, 2, 4, 2);
	rightHindLeg2.setInitialRotationPoint(0.0F, -4.3F, 0.3F);
	rightHindLeg2.setInitialRotationMatrix(new Matrix4f().set(new Quaternion(0.40673664F, 0.0F, 0.0F, 0.9135454F)).transpose());
	rightHindLeg2.setTextureSize(256, 128);
	parts.put(rightHindLeg2.boxName, rightHindLeg2);
	rightHindLeg1.addChild(rightHindLeg2);

	leftFrontClaw1 = new MCAModelRenderer(this, "LeftFrontClaw1", 11, 43);
	leftFrontClaw1.mirror = false;
	leftFrontClaw1.addBox(-0.5F, -1.0F, 0.0F, 1, 1, 3);
	leftFrontClaw1.setInitialRotationPoint(-0.5F, -10.0F, 0.0F);
	leftFrontClaw1.setInitialRotationMatrix(new Matrix4f().set(new Quaternion(0.0F, -0.09281317F, 0.0F, 0.99568355F)).transpose());
	leftFrontClaw1.setTextureSize(256, 128);
	parts.put(leftFrontClaw1.boxName, leftFrontClaw1);
	leftFrontLeg.addChild(leftFrontClaw1);

	leftFrontClaw2 = new MCAModelRenderer(this, "LeftFrontClaw2", 11, 43);
	leftFrontClaw2.mirror = false;
	leftFrontClaw2.addBox(-0.5F, -1.0F, 0.0F, 1, 1, 3);
	leftFrontClaw2.setInitialRotationPoint(0.5F, -10.0F, 0.0F);
	leftFrontClaw2.setInitialRotationMatrix(new Matrix4f().set(new Quaternion(0.0F, 0.09281374F, 0.0F, 0.9956835F)).transpose());
	leftFrontClaw2.setTextureSize(256, 128);
	parts.put(leftFrontClaw2.boxName, leftFrontClaw2);
	leftFrontLeg.addChild(leftFrontClaw2);

	rightFrontClaw1 = new MCAModelRenderer(this, "RightFrontClaw1", 23, 43);
	rightFrontClaw1.mirror = false;
	rightFrontClaw1.addBox(-0.5F, -1.0F, 0.0F, 1, 1, 3);
	rightFrontClaw1.setInitialRotationPoint(-0.5F, -10.0F, 0.0F);
	rightFrontClaw1.setInitialRotationMatrix(new Matrix4f().set(new Quaternion(0.0F, -0.09281317F, 0.0F, 0.99568355F)).transpose());
	rightFrontClaw1.setTextureSize(256, 128);
	parts.put(rightFrontClaw1.boxName, rightFrontClaw1);
	rightFrontLeg.addChild(rightFrontClaw1);

	rightFrontClaw2 = new MCAModelRenderer(this, "RightFrontClaw2", 23, 43);
	rightFrontClaw2.mirror = false;
	rightFrontClaw2.addBox(-0.5F, -1.0F, 0.0F, 1, 1, 3);
	rightFrontClaw2.setInitialRotationPoint(0.5F, -10.0F, 0.0F);
	rightFrontClaw2.setInitialRotationMatrix(new Matrix4f().set(new Quaternion(0.0F, 0.09281374F, 0.0F, 0.9956835F)).transpose());
	rightFrontClaw2.setTextureSize(256, 128);
	parts.put(rightFrontClaw2.boxName, rightFrontClaw2);
	rightFrontLeg.addChild(rightFrontClaw2);

	topJaw = new MCAModelRenderer(this, "TopJaw", 0, 54);
	topJaw.mirror = false;
	topJaw.addBox(-2.0F, -1.0F, 0.5F, 5, 3, ;
	topJaw.setInitialRotationPoint(-0.5F, 1.5F, 6.0F);
	topJaw.setInitialRotationMatrix(new Matrix4f().set(new Quaternion(0.2923717F, 0.0F, 0.0F, 0.9563048F)).transpose());
	topJaw.setTextureSize(256, 128);
	parts.put(topJaw.boxName, topJaw);
	neck2.addChild(topJaw);

	tail3 = new MCAModelRenderer(this, "Tail3", 157, 0);
	tail3.mirror = false;
	tail3.addBox(-1.0F, -1.0F, -10.0F, 2, 2, 10);
	tail3.setInitialRotationPoint(0.0F, 0.0F, -8.0F);
	tail3.setInitialRotationMatrix(new Matrix4f().set(new Quaternion(-0.02617695F, 0.0F, 0.0F, 0.99965733F)).transpose());
	tail3.setTextureSize(256, 128);
	parts.put(tail3.boxName, tail3);
	tail2.addChild(tail3);

	leftHindLeg3 = new MCAModelRenderer(this, "LeftHindLeg3", 11, 35);
	leftHindLeg3.mirror = false;
	leftHindLeg3.addBox(-1.0F, -4.0F, -1.0F, 2, 4, 2);
	leftHindLeg3.setInitialRotationPoint(0.0F, -3.4F, -0.2F);
	leftHindLeg3.setInitialRotationMatrix(new Matrix4f().set(new Quaternion(-0.27563736F, 0.0F, 0.0F, 0.9612617F)).transpose());
	leftHindLeg3.setTextureSize(256, 128);
	parts.put(leftHindLeg3.boxName, leftHindLeg3);
	leftHindLeg2.addChild(leftHindLeg3);

	rightHindLeg3 = new MCAModelRenderer(this, "RightHindLeg3", 23, 35);
	rightHindLeg3.mirror = false;
	rightHindLeg3.addBox(-1.0F, -4.0F, -1.0F, 2, 4, 2);
	rightHindLeg3.setInitialRotationPoint(0.0F, -3.4F, -0.2F);
	rightHindLeg3.setInitialRotationMatrix(new Matrix4f().set(new Quaternion(-0.27563736F, 0.0F, 0.0F, 0.9612617F)).transpose());
	rightHindLeg3.setTextureSize(256, 128);
	parts.put(rightHindLeg3.boxName, rightHindLeg3);
	rightHindLeg2.addChild(rightHindLeg3);

	bottomJaw = new MCAModelRenderer(this, "BottomJaw", 0, 68);
	bottomJaw.mirror = false;
	bottomJaw.addBox(-2.0F, -1.0F, 0.5F, 5, 2, 9);
	bottomJaw.setInitialRotationPoint(0.0F, -2.0F, 0.0F);
	bottomJaw.setInitialRotationMatrix(new Matrix4f().set(new Quaternion(0.0F, 0.0F, 0.0F, 1.0F)).transpose());
	bottomJaw.setTextureSize(256, 128);
	parts.put(bottomJaw.boxName, bottomJaw);
	topJaw.addChild(bottomJaw);

	tail4 = new MCAModelRenderer(this, "Tail4", 182, 0);
	tail4.mirror = false;
	tail4.addBox(-0.5F, -0.5F, -9.0F, 1, 1, 9);
	tail4.setInitialRotationPoint(0.0F, 0.0F, -8.0F);
	tail4.setInitialRotationMatrix(new Matrix4f().set(new Quaternion(-0.02617695F, 0.0F, 0.0F, 0.99965733F)).transpose());
	tail4.setTextureSize(256, 128);
	parts.put(tail4.boxName, tail4);
	tail3.addChild(tail4);

	leftHindClaw1 = new MCAModelRenderer(this, "LeftHindClaw1", 11, 43);
	leftHindClaw1.mirror = false;
	leftHindClaw1.addBox(-0.5F, -1.0F, 0.0F, 1, 1, 3);
	leftHindClaw1.setInitialRotationPoint(-0.5F, -3.0F, 0.0F);
	leftHindClaw1.setInitialRotationMatrix(new Matrix4f().set(new Quaternion(0.0F, -0.09281317F, 0.0F, 0.99568355F)).transpose());
	leftHindClaw1.setTextureSize(256, 128);
	parts.put(leftHindClaw1.boxName, leftHindClaw1);
	leftHindLeg3.addChild(leftHindClaw1);

	leftHindClaw2 = new MCAModelRenderer(this, "LeftHindClaw2", 11, 43);
	leftHindClaw2.mirror = false;
	leftHindClaw2.addBox(-0.5F, -1.0F, 0.0F, 1, 1, 3);
	leftHindClaw2.setInitialRotationPoint(0.5F, -3.0F, 0.0F);
	leftHindClaw2.setInitialRotationMatrix(new Matrix4f().set(new Quaternion(0.0F, 0.09281276F, 0.0F, 0.99568355F)).transpose());
	leftHindClaw2.setTextureSize(256, 128);
	parts.put(leftHindClaw2.boxName, leftHindClaw2);
	leftHindLeg3.addChild(leftHindClaw2);

	rightHindClaw1 = new MCAModelRenderer(this, "RightHindClaw1", 23, 43);
	rightHindClaw1.mirror = false;
	rightHindClaw1.addBox(-0.5F, -1.0F, 0.0F, 1, 1, 3);
	rightHindClaw1.setInitialRotationPoint(-0.5F, -3.0F, 0.0F);
	rightHindClaw1.setInitialRotationMatrix(new Matrix4f().set(new Quaternion(0.0F, -0.09281317F, 0.0F, 0.99568355F)).transpose());
	rightHindClaw1.setTextureSize(256, 128);
	parts.put(rightHindClaw1.boxName, rightHindClaw1);
	rightHindLeg3.addChild(rightHindClaw1);

	rightHindClaw2 = new MCAModelRenderer(this, "RightHindClaw2", 23, 43);
	rightHindClaw2.mirror = false;
	rightHindClaw2.addBox(-0.5F, -1.0F, 0.0F, 1, 1, 3);
	rightHindClaw2.setInitialRotationPoint(0.5F, -3.0F, 0.0F);
	rightHindClaw2.setInitialRotationMatrix(new Matrix4f().set(new Quaternion(0.0F, 0.09281276F, 0.0F, 0.99568355F)).transpose());
	rightHindClaw2.setTextureSize(256, 128);
	parts.put(rightHindClaw2.boxName, rightHindClaw2);
	rightHindLeg3.addChild(rightHindClaw2);

	fin1 = new MCAModelRenderer(this, "Fin1", 182, 12);
	fin1.mirror = false;
	fin1.addBox(-5.0F, 0.0F, -8.0F, 5, 0, 7);
	fin1.setInitialRotationPoint(0.0F, 0.0F, -4.0F);
	fin1.setInitialRotationMatrix(new Matrix4f().set(new Quaternion(0.0F, 0.0F, 0.0F, 1.0F)).transpose());
	fin1.setTextureSize(256, 128);
	parts.put(fin1.boxName, fin1);
	tail4.addChild(fin1);

	fin2 = new MCAModelRenderer(this, "Fin2", 182, 21);
	fin2.mirror = false;
	fin2.addBox(-0.5F, 0.0F, -8.0F, 5, 0, 7);
	fin2.setInitialRotationPoint(0.0F, 0.0F, -4.0F);
	fin2.setInitialRotationMatrix(new Matrix4f().set(new Quaternion(0.0F, 0.0F, 0.0F, 1.0F)).transpose());
	fin2.setTextureSize(256, 128);
	parts.put(fin2.boxName, fin2);
	tail4.addChild(fin2);

}

@Override
public void render(Entity par1Entity, float par2, float par3, float par4, float par5, float par6, float par7) {
	EntityRowarn entity = (EntityRowarn) par1Entity;

	AnimationHandler.performAnimationInModel(parts, entity);

	// Render every non-child part
	neck1.render(par7);
	torso1.render(par7);
	tail1.render(par7);
	leftHindLeg1.render(par7);
	rightHindLeg1.render(par7);
	leftFrontLeg.render(par7);
	rightFrontLeg.render(par7);
}

@Override
public void setLivingAnimations(EntityLivingBase par1EntityLivingBase, float par2, float par3, float par4) {
	EntityRowarn entityRowarn = (EntityRowarn) par1EntityLivingBase;
	if (par2 != 0 && par3 != 0) {
		entityRowarn.getAnimationHandler().activateAnimation("walking", 0);
	}
}

@Override
public void setRotationAngles(float par1, float par2, float par3, float par4, float par5, float par6, Entity par7Entity) {}

public MCAModelRenderer getModelRendererFromName(String name) {
	return parts.get(name);
}
}

 

Entity Code

package common.zeroquest.entity;

import net.minecraft.entity.EntityAgeable;
import net.minecraft.entity.SharedMonsterAttributes;
import net.minecraft.entity.ai.EntityAILookIdle;
import net.minecraft.entity.ai.EntityAIMoveTowardsRestriction;
import net.minecraft.entity.ai.EntityAIWander;
import net.minecraft.entity.ai.EntityAIWatchClosest;
import net.minecraft.entity.passive.EntityAnimal;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.world.World;
import common.zeroquest.client.mca.animations.AnimationHandlerRowarn;
import common.zeroquest.client.mca.libary.IMCAnimatedEntity;
import common.zeroquest.client.mca.libary.animation.AnimationHandler;

public class EntityRowarn extends EntityAnimal implements IMCAnimatedEntity {
protected AnimationHandler animHandler = new AnimationHandlerRowarn(this);
private float field_175482_b;
private final float field_175484_c;
private float field_175483_bk;
private float field_175485_bl;
private float field_175486_bm;
private int field_175479_bo;
private boolean field_175480_bp;
private EntityAIWander wander;
private static final String __OBFID = "CL_00002213";

public EntityRowarn(World worldIn) {
	super(worldIn);
	this.experienceValue = 10;
	this.setSize(1F, 1F);
	EntityAIMoveTowardsRestriction entityaimovetowardsrestriction;
	this.tasks.addTask(5, entityaimovetowardsrestriction = new EntityAIMoveTowardsRestriction(this, 1.0D));
	this.tasks.addTask(7, this.wander = new EntityAIWander(this, 1.0D, 80));
	this.tasks.addTask(8, new EntityAIWatchClosest(this, EntityPlayer.class, 8.0F));
	this.tasks.addTask(8, new EntityAIWatchClosest(this, EntityRowarn.class, 12.0F, 0.01F));
	this.tasks.addTask(9, new EntityAILookIdle(this));
	this.wander.setMutexBits(3);
	entityaimovetowardsrestriction.setMutexBits(3);
	this.field_175484_c = this.field_175482_b = this.rand.nextFloat();
}

@Override
public AnimationHandler getAnimationHandler() {
	return animHandler;
}

@Override
protected void applyEntityAttributes() {
	super.applyEntityAttributes();
	this.getEntityAttribute(SharedMonsterAttributes.movementSpeed).setBaseValue(0.5D);
	this.getEntityAttribute(SharedMonsterAttributes.followRange).setBaseValue(16.0D);
	this.getEntityAttribute(SharedMonsterAttributes.maxHealth).setBaseValue(30.0D);
}

@Override
public EntityAgeable createChild(EntityAgeable ageable) {
	// TODO Auto-generated method stub
	return null;
}
}

 

Rowarn Animation Handler

package common.zeroquest.client.mca.animations;

import java.util.HashMap;

import common.zeroquest.client.mca.libary.IMCAnimatedEntity;
import common.zeroquest.client.mca.libary.animation.AnimationHandler;
import common.zeroquest.client.mca.libary.animation.Channel;

public class AnimationHandlerRowarn extends AnimationHandler {
/** Map with all the animations. */
public static HashMap<String, Channel> animChannels = new HashMap<String, Channel>();
static {
	animChannels.put("swimming", new ChannelSwimming("swimming", 30.0F, 40, Channel.LINEAR));
	animChannels.put("leapinto", new ChannelLeapinto("leapinto", 20.0F, 50, Channel.LINEAR));
	animChannels.put("walking", new ChannelWalking("walking", 15.0F, 20, Channel.LINEAR));
}

public AnimationHandlerRowarn(IMCAnimatedEntity entity) {
	super(entity);
}

@Override
public void activateAnimation(String name, float startingFrame) {
	super.activateAnimation(animChannels, name, startingFrame);
}

@Override
public void stopAnimation(String name) {
	super.stopAnimation(animChannels, name);
}

@Override
public void fireAnimationEventClientSide(Channel anim, float prevFrame, float frame) {}

@Override
public void fireAnimationEventServerSide(Channel anim, float prevFrame, float frame) {}
}

 

Main Animation Handler

package common.zeroquest.client.mca.libary.animation;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.Iterator;
import java.util.Map;

import net.minecraft.entity.Entity;
import net.minecraftforge.fml.common.FMLCommonHandler;
import net.minecraftforge.fml.relauncher.Side;
import net.minecraftforge.fml.relauncher.SideOnly;

import common.zeroquest.client.mca.MCAModelRenderer;
import common.zeroquest.client.mca.libary.IMCAnimatedEntity;
import common.zeroquest.client.mca.libary.math.Quaternion;
import common.zeroquest.client.mca.libary.math.Vector3f;

public abstract class AnimationHandler {
public static AnimTickHandler animTickHandler;
/** Owner of this handler. */
private final IMCAnimatedEntity animatedEntity;
/** List of all the activate animations of this Entity. */
public ArrayList<Channel> animCurrentChannels = new ArrayList();
/** Previous time of every active animation. */
public HashMap<String, Long> animPrevTime = new HashMap<String, Long>();
/** Current frame of every active animation. */
public HashMap<String, Float> animCurrentFrame = new HashMap<String, Float>();
/**
 * Contains the unique names of the events that have been already fired
 * during each animation. It becomes empty at the end of every animation.
 * The key is the animation name and the value is the list of already-called
 * events.
 */
private final HashMap<String, ArrayList<String>> animationEvents = new HashMap<String, ArrayList<String>>();

public AnimationHandler(IMCAnimatedEntity entity) {
	if (animTickHandler == null) {
		animTickHandler = new AnimTickHandler();
	}
	animTickHandler.addEntity(entity);

	animatedEntity = entity;
}

public IMCAnimatedEntity getEntity() {
	return animatedEntity;
}

public void activateAnimation(HashMap<String, Channel> animChannels, String name, float startingFrame) {
	if (animChannels.get(name) != null) {
		Channel selectedChannel = animChannels.get(name);
		int indexToRemove = animCurrentChannels.indexOf(selectedChannel);
		if (indexToRemove != -1) {
			animCurrentChannels.remove(indexToRemove);
		}

		animCurrentChannels.add(selectedChannel);
		animPrevTime.put(name, System.nanoTime());
		animCurrentFrame.put(name, startingFrame);
		if (animationEvents.get(name) == null) {
			animationEvents.put(name, new ArrayList<String>());
		}
	}
	else {
		System.out.println("The animation called " + name + " doesn't exist!");
	}
}

public abstract void activateAnimation(String name, float startingFrame);

public void stopAnimation(HashMap<String, Channel> animChannels, String name) {
	Channel selectedChannel = animChannels.get(name);
	if (selectedChannel != null) {
		int indexToRemove = animCurrentChannels.indexOf(selectedChannel);
		if (indexToRemove != -1) {
			animCurrentChannels.remove(indexToRemove);
			animPrevTime.remove(name);
			animCurrentFrame.remove(name);
			animationEvents.get(name).clear();
		}
	}
	else {
		System.out.println("The animation called " + name + " doesn't exist!");
	}
}

public abstract void stopAnimation(String name);

public void animationsUpdate() {
	for (Iterator<Channel> it = animCurrentChannels.iterator(); it.hasNext() {
		Channel anim = it.next();
		float prevFrame = animCurrentFrame.get(anim.name);
		boolean animStatus = updateAnimation(animatedEntity, anim, animPrevTime, animCurrentFrame);
		if (animCurrentFrame.get(anim.name) != null) {
			fireAnimationEvent(anim, prevFrame, animCurrentFrame.get(anim.name));
		}
		if (!animStatus) {
			it.remove();
			animPrevTime.remove(anim.name);
			animCurrentFrame.remove(anim.name);
			animationEvents.get(anim.name).clear();
		}
	}
}

public boolean isAnimationActive(String name) {
	boolean animAlreadyUsed = false;
	for (Channel anim : animatedEntity.getAnimationHandler().animCurrentChannels) {
		if (anim.name.equals(name)) {
			animAlreadyUsed = true;
			break;
		}
	}

	return animAlreadyUsed;
}

private void fireAnimationEvent(Channel anim, float prevFrame, float frame) {
	if (isWorldRemote(animatedEntity)) {
		fireAnimationEventClientSide(anim, prevFrame, frame);
	}
	else {
		fireAnimationEventServerSide(anim, prevFrame, frame);
	}
}

@SideOnly(Side.CLIENT)
public abstract void fireAnimationEventClientSide(Channel anim, float prevFrame, float frame);

public abstract void fireAnimationEventServerSide(Channel anim, float prevFrame, float frame);

/** Check if the animation event has already been called. */
public boolean alreadyCalledEvent(String animName, String eventName) {
	if (animationEvents.get(animName) == null) {
		System.out.println("Cannot check for event " + eventName + "! Animation " + animName + "does not exist or is not active.");
		return true;
	}
	return animationEvents.get(animName).contains(eventName);
}

/** Set the animation event as "called", so it won't be fired again. */
public void setCalledEvent(String animName, String eventName) {
	if (animationEvents.get(animName) != null) {
		animationEvents.get(animName).add(eventName);
	}
	else {
		System.out.println("Cannot set event " + eventName + "! Animation " + animName + "does not exist or is not active.");
	}
}

/** Update animation values. Return false if the animation should stop. */
public static boolean updateAnimation(IMCAnimatedEntity entity, Channel channel, HashMap<String, Long> prevTimeAnim, HashMap<String, Float> prevFrameAnim) {
	if (FMLCommonHandler.instance().getEffectiveSide().isServer() || (FMLCommonHandler.instance().getEffectiveSide().isClient() && !isGamePaused())) {
		if (!(channel.mode == Channel.CUSTOM)) {
			long prevTime = prevTimeAnim.get(channel.name);
			float prevFrame = prevFrameAnim.get(channel.name);

			long currentTime = System.nanoTime();
			double deltaTime = (currentTime - prevTime) / 1000000000.0;
			float numberOfSkippedFrames = (float) (deltaTime * channel.fps);

			float currentFrame = prevFrame + numberOfSkippedFrames;

			if (currentFrame < channel.totalFrames - 1) // -1 as the first
														// frame mustn't be
														// "executed" as it
														// is the starting
														// situation
			{
				prevTimeAnim.put(channel.name, currentTime);
				prevFrameAnim.put(channel.name, currentFrame);
				return true;
			}
			else {
				if (channel.mode == Channel.LOOP) {
					prevTimeAnim.put(channel.name, currentTime);
					prevFrameAnim.put(channel.name, 0F);
					return true;
				}
				return false;
			}
		}
		else {
			return true;
		}
	}
	else {
		long currentTime = System.nanoTime();
		prevTimeAnim.put(channel.name, currentTime);
		return true;
	}
}

@SideOnly(Side.CLIENT)
private static boolean isGamePaused() {
	net.minecraft.client.Minecraft MC = net.minecraft.client.Minecraft.getMinecraft();
	return MC.isSingleplayer() && MC.currentScreen != null && MC.currentScreen.doesGuiPauseGame() && !MC.getIntegratedServer().getPublic();
}

/**
 * Apply animations if running or apply initial values. Must be called only
 * by the model class.
 */
@SideOnly(Side.CLIENT)
public static void performAnimationInModel(HashMap<String, MCAModelRenderer> parts, IMCAnimatedEntity entity) {
	for (Map.Entry<String, MCAModelRenderer> entry : parts.entrySet()) {
		String boxName = entry.getKey();
		MCAModelRenderer box = entry.getValue();

		boolean anyRotationApplied = false;
		boolean anyTranslationApplied = false;
		boolean anyCustomAnimationRunning = false;

		for (Channel channel : entity.getAnimationHandler().animCurrentChannels) {
			if (channel.mode != Channel.CUSTOM) {
				float currentFrame = entity.getAnimationHandler().animCurrentFrame.get(channel.name);

				// Rotations
				KeyFrame prevRotationKeyFrame = channel.getPreviousRotationKeyFrameForBox(boxName, entity.getAnimationHandler().animCurrentFrame.get(channel.name));
				int prevRotationKeyFramePosition = prevRotationKeyFrame != null
						? channel.getKeyFramePosition(prevRotationKeyFrame) : 0;

				KeyFrame nextRotationKeyFrame = channel.getNextRotationKeyFrameForBox(boxName, entity.getAnimationHandler().animCurrentFrame.get(channel.name));
				int nextRotationKeyFramePosition = nextRotationKeyFrame != null
						? channel.getKeyFramePosition(nextRotationKeyFrame) : 0;

				float SLERPProgress = (currentFrame - prevRotationKeyFramePosition) / (nextRotationKeyFramePosition - prevRotationKeyFramePosition);
				if (SLERPProgress > 1F || SLERPProgress < 0F) {
					SLERPProgress = 1F;
				}

				if (prevRotationKeyFramePosition == 0 && prevRotationKeyFrame == null && !(nextRotationKeyFramePosition == 0)) {
					Quaternion currentQuat = new Quaternion();
					currentQuat.slerp(parts.get(boxName).getDefaultRotationAsQuaternion(), nextRotationKeyFrame.modelRenderersRotations.get(boxName), SLERPProgress);
					box.getRotationMatrix().set(currentQuat).transpose();

					anyRotationApplied = true;
				}
				else if (prevRotationKeyFramePosition == 0 && prevRotationKeyFrame != null && !(nextRotationKeyFramePosition == 0)) {
					Quaternion currentQuat = new Quaternion();
					currentQuat.slerp(prevRotationKeyFrame.modelRenderersRotations.get(boxName), nextRotationKeyFrame.modelRenderersRotations.get(boxName), SLERPProgress);
					box.getRotationMatrix().set(currentQuat).transpose();

					anyRotationApplied = true;
				}
				else if (!(prevRotationKeyFramePosition == 0) && !(nextRotationKeyFramePosition == 0)) {
					Quaternion currentQuat = new Quaternion();
					currentQuat.slerp(prevRotationKeyFrame.modelRenderersRotations.get(boxName), nextRotationKeyFrame.modelRenderersRotations.get(boxName), SLERPProgress);
					box.getRotationMatrix().set(currentQuat).transpose();

					anyRotationApplied = true;
				}

				// Translations
				KeyFrame prevTranslationKeyFrame = channel.getPreviousTranslationKeyFrameForBox(boxName, entity.getAnimationHandler().animCurrentFrame.get(channel.name));
				int prevTranslationsKeyFramePosition = prevTranslationKeyFrame != null
						? channel.getKeyFramePosition(prevTranslationKeyFrame) : 0;

				KeyFrame nextTranslationKeyFrame = channel.getNextTranslationKeyFrameForBox(boxName, entity.getAnimationHandler().animCurrentFrame.get(channel.name));
				int nextTranslationsKeyFramePosition = nextTranslationKeyFrame != null
						? channel.getKeyFramePosition(nextTranslationKeyFrame) : 0;

				float LERPProgress = (currentFrame - prevTranslationsKeyFramePosition) / (nextTranslationsKeyFramePosition - prevTranslationsKeyFramePosition);
				if (LERPProgress > 1F) {
					LERPProgress = 1F;
				}

				if (prevTranslationsKeyFramePosition == 0 && prevTranslationKeyFrame == null && !(nextTranslationsKeyFramePosition == 0)) {
					Vector3f startPosition = parts.get(boxName).getPositionAsVector();
					Vector3f endPosition = nextTranslationKeyFrame.modelRenderersTranslations.get(boxName);
					Vector3f currentPosition = new Vector3f(startPosition);
					currentPosition.interpolate(endPosition, LERPProgress);
					box.setRotationPoint(currentPosition.x, currentPosition.y, currentPosition.z);

					anyTranslationApplied = true;
				}
				else if (prevTranslationsKeyFramePosition == 0 && prevTranslationKeyFrame != null && !(nextTranslationsKeyFramePosition == 0)) {
					Vector3f startPosition = prevTranslationKeyFrame.modelRenderersTranslations.get(boxName);
					Vector3f endPosition = nextTranslationKeyFrame.modelRenderersTranslations.get(boxName);
					Vector3f currentPosition = new Vector3f(startPosition);
					currentPosition.interpolate(endPosition, LERPProgress);
					box.setRotationPoint(currentPosition.x, currentPosition.y, currentPosition.z);
				}
				else if (!(prevTranslationsKeyFramePosition == 0) && !(nextTranslationsKeyFramePosition == 0)) {
					Vector3f startPosition = prevTranslationKeyFrame.modelRenderersTranslations.get(boxName);
					Vector3f endPosition = nextTranslationKeyFrame.modelRenderersTranslations.get(boxName);
					Vector3f currentPosition = new Vector3f(startPosition);
					currentPosition.interpolate(endPosition, LERPProgress);
					box.setRotationPoint(currentPosition.x, currentPosition.y, currentPosition.z);

					anyTranslationApplied = true;
				}
			}
			else {
				anyCustomAnimationRunning = true;

				((CustomChannel) channel).update(parts, entity);
			}
		}

		// Set the initial values for each box if necessary
		if (!anyRotationApplied && !anyCustomAnimationRunning) {
			box.resetRotationMatrix();
		}
		if (!anyTranslationApplied && !anyCustomAnimationRunning) {
			box.resetRotationPoint();
		}
	}
}

public static boolean isWorldRemote(IMCAnimatedEntity animatedEntity) {
	return ((Entity) animatedEntity).worldObj.isRemote;
}
}

Main Developer and Owner of Zero Quest

Visit the Wiki for more information

If I helped anyone, please give me a applaud and a thank you!

Link to comment
Share on other sites

I had massive, massive problems with MCAnimator and animations.  And not just in the "animate when" situation, but in a "does bad bad things and will crash the game" kind of way.  I was never able to fix it and instead rebuilt things using a standard quadruped.

Apparently I'm a complete and utter jerk and come to this forum just like to make fun of people, be confrontational, and make your personal life miserable.  If you think this is the case, JUST REPORT ME.  Otherwise you're just going to get reported when you reply to my posts and point it out, because odds are, I was trying to be nice.

 

Exception: If you do not understand Java, I WILL NOT HELP YOU and your thread will get locked.

 

DO NOT PM ME WITH PROBLEMS. No help will be given.

Link to comment
Share on other sites

Some people swear by it, but as I wanted to have an animation only play when my mob was walking, I did what looked like the only way to play and stop animations, which caused Concurrent Modification Exceptions.  Which no one was able to help me figure out.

 

So.

 

Yeah.  Don't use MCAnimator.  Good news, the model it creates is very easy to turn into a ModelBase.  You need to refactor some function names and work out the euler rotations from the quaternions (but as you created the model using eulers...) but it's pretty much a 1:1 port.

Apparently I'm a complete and utter jerk and come to this forum just like to make fun of people, be confrontational, and make your personal life miserable.  If you think this is the case, JUST REPORT ME.  Otherwise you're just going to get reported when you reply to my posts and point it out, because odds are, I was trying to be nice.

 

Exception: If you do not understand Java, I WILL NOT HELP YOU and your thread will get locked.

 

DO NOT PM ME WITH PROBLEMS. No help will be given.

Link to comment
Share on other sites

Well, I wanted to use the model from MCAnimator to have animations when my entity jumps and lands and swims in water, thats why I used MCAnimator. Since I can't use it, is there any alternative?

Main Developer and Owner of Zero Quest

Visit the Wiki for more information

If I helped anyone, please give me a applaud and a thank you!

Link to comment
Share on other sites

Quick and easy? Not that I know of.

Apparently I'm a complete and utter jerk and come to this forum just like to make fun of people, be confrontational, and make your personal life miserable.  If you think this is the case, JUST REPORT ME.  Otherwise you're just going to get reported when you reply to my posts and point it out, because odds are, I was trying to be nice.

 

Exception: If you do not understand Java, I WILL NOT HELP YOU and your thread will get locked.

 

DO NOT PM ME WITH PROBLEMS. No help will be given.

Link to comment
Share on other sites

Yeah, I'd given it a shot after I'd seen a lot of praise on these forums, but it turns out no one uses it for animation.  Surprise, surprise.

Apparently I'm a complete and utter jerk and come to this forum just like to make fun of people, be confrontational, and make your personal life miserable.  If you think this is the case, JUST REPORT ME.  Otherwise you're just going to get reported when you reply to my posts and point it out, because odds are, I was trying to be nice.

 

Exception: If you do not understand Java, I WILL NOT HELP YOU and your thread will get locked.

 

DO NOT PM ME WITH PROBLEMS. No help will be given.

Link to comment
Share on other sites

Huh, didn't know that. Hey.. I got a question also, the author of Dragon Mounts uses something similar to MCAnimator like these

 

https://github.com/ata4/dragon-mounts/tree/master/src/main/java/info/ata4/minecraft/dragon/client/model

 

Maybe I can use this?

Main Developer and Owner of Zero Quest

Visit the Wiki for more information

If I helped anyone, please give me a applaud and a thank you!

Link to comment
Share on other sites

They custom built their animator. 

public class DragonAnimator { ... }

Apparently I'm a complete and utter jerk and come to this forum just like to make fun of people, be confrontational, and make your personal life miserable.  If you think this is the case, JUST REPORT ME.  Otherwise you're just going to get reported when you reply to my posts and point it out, because odds are, I was trying to be nice.

 

Exception: If you do not understand Java, I WILL NOT HELP YOU and your thread will get locked.

 

DO NOT PM ME WITH PROBLEMS. No help will be given.

Link to comment
Share on other sites

Haven't the faintest. :D

Apparently I'm a complete and utter jerk and come to this forum just like to make fun of people, be confrontational, and make your personal life miserable.  If you think this is the case, JUST REPORT ME.  Otherwise you're just going to get reported when you reply to my posts and point it out, because odds are, I was trying to be nice.

 

Exception: If you do not understand Java, I WILL NOT HELP YOU and your thread will get locked.

 

DO NOT PM ME WITH PROBLEMS. No help will be given.

Link to comment
Share on other sites

Hey,

 

I was strugling too with most programs like MCAnimator etc.. I don't know blender, you should try it to see if its working or not.

But the Link that helped me out (for Entities at least) is this:

 

http://jabelarminecraft.blogspot.nl/p/complex-entity-models-including.html

 

He explains some neat tips and tricks on how to create your own animatons.

Projects:

Discontinued:

- N2ConfigAPI

- Meachanical Crafting Table

 

Latest:

- CollectionUtils

 

Coöperations:

- InGameConfigManager

Link to comment
Share on other sites

Hey, it looks like someone did use blender with some help from MCAnimator and techne to create this

 

http://www.minecraftforum.net/forums/mapping-and-modding/minecraft-mods/modification-development/2328217-blender-for-minecraft-modeling-anonmine-models

Main Developer and Owner of Zero Quest

Visit the Wiki for more information

If I helped anyone, please give me a applaud and a thank you!

Link to comment
Share on other sites

Yeah, it's pretty useful and easier to use for visualization, but should I at all, use it? Even just to use it to get the numbers to model them using the method jabelar recommends us using for animation?

Main Developer and Owner of Zero Quest

Visit the Wiki for more information

If I helped anyone, please give me a applaud and a thank you!

Link to comment
Share on other sites

Here, I used this tutorial to master the addChild methods: http://www.minecraftforum.net/forums/mapping-and-modding/mapping-and-modding-tutorials/1571589-modding-animation-guide

 

I also did trial and error and finally got them correct.. but still need help with advanced animations

Main Developer and Owner of Zero Quest

Visit the Wiki for more information

If I helped anyone, please give me a applaud and a thank you!

Link to comment
Share on other sites

I do recommend it indeed, because it supports childmodelParts. But keep in mind that it aint perfect.

I experianced an slight offset in the dimensions. but it shouldnt be disturbing if you don't need a model to be moving punctual at the single degree.

(I only discoveres it cause I wanted a model to move exactualy across certain lines)

 

If you need an example, I made an animated tileEntity in my mechanicalCraftingTable mod.(Link below) Feel free to take a look at it.

 

Keep in mind though, my mod and the tutorial is for mc 1.7.10!

So you probably need to dig into the .jons files etc. But apart from that, it should look similar.

Anyway good luck, and please share the results! Im curious.

Projects:

Discontinued:

- N2ConfigAPI

- Meachanical Crafting Table

 

Latest:

- CollectionUtils

 

Coöperations:

- InGameConfigManager

Link to comment
Share on other sites

Here, I used this tutorial to master the addChild methods: http://www.minecraftforum.net/forums/mapping-and-modding/mapping-and-modding-tutorials/1571589-modding-animation-guide

 

I also did trial and error and finally got them correct.. but still need help with advanced animations

 

Cool. I think next time I work with entities I'll try to do it in Java. I tried to work with animation in Java but I couldn't figure out how to convert from degrees to radians. This tutorial helps though, http://jabelarminecraft.blogspot.ca/p/introduction-first-of-all-to-understand.html. In fact, I didn't even know they were called radians before today, all I knew was somehow I needed to convert degrees to the stupid huge decimal number format thingy. :D

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Announcements



  • Recently Browsing

    • No registered users viewing this page.
  • Posts

    • nvm I found the Issue, i update the cpu drivers  
    • my game crashes exit code 1. I have tried with and without mods and is still crashing, i have tried everything but no success.
    • Hi, i'm getting this error when trying to start a modded minecraft server with a personal modpack. Also getting a simmilar error when trying to create a singleplayer world. Can someone help me find which mod is causing this error? Forge: 47.2.0 Minecraft: 1.20.1   This is the crash report: Also have this link to the log, if you prefer it: https://mclo.gs/3fRVwOj
    • I was trying to play minecraft modded with my friend it worked yesterday until today we added new mods and now i cant load the world here is the crash log: ---- Minecraft Crash Report ---- // This doesn't make any sense! Time: 2024-04-28 15:34:36 Description: Exception in server tick loop java.lang.VerifyError: Bad local variable type Exception Details:   Location:     net/minecraft/server/level/ChunkMap.wrapOperation$zfm000$pehkui$convertToFullChunk$lambda$loadEntities$mixinextras$bridge$136(Lnet/minecraft/world/level/chunk/LevelChunk;Lcom/llamalad7/mixinextras/injector/wrapoperation/Operation;)V @3: aload_3   Reason:     Type top (current frame, locals[3]) is not assignable to reference type   Current Frame:     bci: @3     flags: { }     locals: { 'net/minecraft/server/level/ChunkMap', 'net/minecraft/world/level/chunk/LevelChunk', 'com/llamalad7/mixinextras/injector/wrapoperation/Operation' }     stack: { 'net/minecraft/server/level/ChunkMap', 'net/minecraft/world/level/chunk/LevelChunk', 'com/llamalad7/mixinextras/injector/wrapoperation/Operation' }   Bytecode:     0000000: 2a2b 2c2d b90b eb01 00c0 001f b70b edb1     0000010:                                             at net.minecraft.server.level.ServerChunkCache.<init>(ServerChunkCache.java:77) ~[client-1.20.1-20230612.114412-srg.jar%23313!/:?] {re:mixin,pl:accesstransformer:B,re:classloading,pl:accesstransformer:B,pl:mixin:APP:pehkui.mixins.json:compat117plus.compat1201minus.ServerChunkManagerMixin,pl:mixin:A}     at net.minecraft.server.level.ServerLevel.<init>(ServerLevel.java:209) ~[client-1.20.1-20230612.114412-srg.jar%23313!/:?] {re:computing_frames,pl:accesstransformer:B,re:mixin,pl:accesstransformer:B,re:classloading,pl:accesstransformer:B,pl:mixin:APP:betterendisland.mixins.json:ServerLevelMixin,pl:mixin:APP:citadel.mixins.json:ServerLevelMixin,pl:mixin:APP:zombieawareness.mixins.json:MixinPlaySound,pl:mixin:APP:zombieawareness.mixins.json:MixinLevelEvent,pl:mixin:APP:betterdeserttemples.mixins.json:ServerLevelMixin,pl:mixin:APP:ars_elemental.mixins.json:ServerLevelMixin,pl:mixin:APP:betterendisland.mixins.json:EndergeticExpansionMixins,pl:mixin:A}     at net.minecraft.server.MinecraftServer.m_129815_(MinecraftServer.java:337) ~[client-1.20.1-20230612.114412-srg.jar%23313!/:?] {re:mixin,pl:accesstransformer:B,xf:fml:xaerominimap:xaero_minecraftserver,re:classloading,pl:accesstransformer:B,xf:fml:xaerominimap:xaero_minecraftserver,pl:mixin:APP:citadel.mixins.json:MinecraftServerMixin,pl:mixin:APP:mixins.essential.json:feature.sps.Mixin_IntegratedServerResourcePack,pl:mixin:APP:mixins.essential.json:server.MinecraftServerMixin_PvPGameRule,pl:mixin:APP:mixins.essential.json:server.Mixin_PublishServerStatusResponse,pl:mixin:A}     at net.minecraft.server.MinecraftServer.m_130006_(MinecraftServer.java:308) ~[client-1.20.1-20230612.114412-srg.jar%23313!/:?] {re:mixin,pl:accesstransformer:B,xf:fml:xaerominimap:xaero_minecraftserver,re:classloading,pl:accesstransformer:B,xf:fml:xaerominimap:xaero_minecraftserver,pl:mixin:APP:citadel.mixins.json:MinecraftServerMixin,pl:mixin:APP:mixins.essential.json:feature.sps.Mixin_IntegratedServerResourcePack,pl:mixin:APP:mixins.essential.json:server.MinecraftServerMixin_PvPGameRule,pl:mixin:APP:mixins.essential.json:server.Mixin_PublishServerStatusResponse,pl:mixin:A}     at net.minecraft.client.server.IntegratedServer.m_7038_(IntegratedServer.java:83) ~[client-1.20.1-20230612.114412-srg.jar%23313!/:?] {re:mixin,xf:OptiFine:default,re:classloading,xf:OptiFine:default,pl:mixin:APP:mixins.essential.json:server.integrated.Mixin_FixDefaultOpPermissionLevel,pl:mixin:APP:mixins.essential.json:server.integrated.MixinIntegratedServer,pl:mixin:A}     at net.minecraft.server.MinecraftServer.m_130011_(MinecraftServer.java:634) ~[client-1.20.1-20230612.114412-srg.jar%23313!/:?] {re:mixin,pl:accesstransformer:B,xf:fml:xaerominimap:xaero_minecraftserver,re:classloading,pl:accesstransformer:B,xf:fml:xaerominimap:xaero_minecraftserver,pl:mixin:APP:citadel.mixins.json:MinecraftServerMixin,pl:mixin:APP:mixins.essential.json:feature.sps.Mixin_IntegratedServerResourcePack,pl:mixin:APP:mixins.essential.json:server.MinecraftServerMixin_PvPGameRule,pl:mixin:APP:mixins.essential.json:server.Mixin_PublishServerStatusResponse,pl:mixin:A}     at net.minecraft.server.MinecraftServer.m_206580_(MinecraftServer.java:251) ~[client-1.20.1-20230612.114412-srg.jar%23313!/:?] {re:mixin,pl:accesstransformer:B,xf:fml:xaerominimap:xaero_minecraftserver,re:classloading,pl:accesstransformer:B,xf:fml:xaerominimap:xaero_minecraftserver,pl:mixin:APP:citadel.mixins.json:MinecraftServerMixin,pl:mixin:APP:mixins.essential.json:feature.sps.Mixin_IntegratedServerResourcePack,pl:mixin:APP:mixins.essential.json:server.MinecraftServerMixin_PvPGameRule,pl:mixin:APP:mixins.essential.json:server.Mixin_PublishServerStatusResponse,pl:mixin:A}     at java.lang.Thread.run(Thread.java:833) ~[?:?] {re:mixin} A detailed walkthrough of the error, its code path and all known details is as follows: --------------------------------------------------------------------------------------- -- System Details -- Details:     Minecraft Version: 1.20.1     Minecraft Version ID: 1.20.1     Operating System: Windows 10 (amd64) version 10.0     Java Version: 17.0.8, Microsoft     Java VM Version: OpenJDK 64-Bit Server VM (mixed mode), Microsoft     Memory: 1154564648 bytes (1101 MiB) / 3254779904 bytes (3104 MiB) up to 17850957824 bytes (17024 MiB)     CPUs: 16     Processor Vendor: AuthenticAMD     Processor Name: AMD Ryzen 7 5700G with Radeon Graphics              Identifier: AuthenticAMD Family 25 Model 80 Stepping 0     Microarchitecture: Zen 3     Frequency (GHz): 3.79     Number of physical packages: 1     Number of physical CPUs: 8     Number of logical CPUs: 16     Graphics card #0 name: NVIDIA GeForce RTX 3060     Graphics card #0 vendor: NVIDIA (0x10de)     Graphics card #0 VRAM (MB): 4095.00     Graphics card #0 deviceId: 0x2504     Graphics card #0 versionInfo: DriverVersion=31.0.15.5222     Memory slot #0 capacity (MB): 16384.00     Memory slot #0 clockSpeed (GHz): 2.13     Memory slot #0 type: DDR4     Memory slot #1 capacity (MB): 16384.00     Memory slot #1 clockSpeed (GHz): 2.13     Memory slot #1 type: DDR4     Virtual memory max (MB): 46381.31     Virtual memory used (MB): 24323.54     Swap memory total (MB): 13824.00     Swap memory used (MB): 522.00     JVM Flags: 3 total; -XX:HeapDumpPath=MojangTricksIntelDriversForPerformance_javaw.exe_minecraft.exe.heapdump -Xmx17024m -Xms256m     Server Running: true     Player Count: 0 / 8; []     Data Packs: vanilla, mod:dynamiclightsreforged (incompatible), mod:additionalentityattributes (incompatible), mod:geckolib, mod:jei, mod:graveyard (incompatible), mod:pehkui (incompatible), mod:soulbound (incompatible), mod:caelus (incompatible), mod:obscure_api (incompatible), mod:apoli (incompatible), mod:neat, mod:enlightened_end, mod:citadel (incompatible), mod:travelersbackpack, mod:zombieawareness (incompatible), mod:mixinextras (incompatible), mod:cave_dweller (incompatible), mod:depthcrawler, mod:iceandfire, mod:inventorypets (incompatible), mod:jeresources, mod:spelunkers_charm, mod:twilightforest, mod:ironchest, mod:sons_of_sins, mod:lucky (incompatible), mod:terrablender, mod:ambientsounds, mod:biomesoplenty (incompatible), mod:creativecore, mod:watching, mod:calio, mod:cataclysm (incompatible), mod:curios (incompatible), mod:ars_nouveau (incompatible), mod:origins (incompatible), mod:xaerominimap (incompatible), mod:man, mod:rats, mod:forge, mod:ars_elemental (incompatible), mod:gh, mod:ftbultimine (incompatible), mod:tombstone, mod:coroutil (incompatible), mod:architectury (incompatible), mod:ftblibrary (incompatible), mod:ftbteams (incompatible), mod:ftbchunks (incompatible), mod:ftbquests (incompatible), mod:voidscape (incompatible), mod:infiniverse (incompatible), mod:phantasm (incompatible), mod:aquamirae (incompatible), mod:essential (incompatible), mod:betterdungeons, mod:betterwitchhuts, mod:betteroceanmonuments, mod:epicfight (incompatible), mod:wom (incompatible), mod:yungsapi, mod:betterdeserttemples, mod:dixtas_armory (incompatible), mod:betterfortresses, mod:nyfsspiders (incompatible), mod:yungsbridges, mod:born_in_chaos_v1, mod:arphex, mod:yungsextras, mod:betterstrongholds, mod:yungsmenutweaks, mod:deeperdarker, mod:betterendisland, mod:deep_dark_regrowth, mod:fight_or_die, mod:bettermineshafts, mod:betterjungletemples     Enabled Feature Flags: minecraft:vanilla     World Generation: Stable     Type: Integrated Server (map_client.txt)     Is Modded: Definitely; Client brand changed to 'forge'; Server brand changed to 'forge'     Launched Version: forge-47.2.20     OptiFine Version: OptiFine_1.20.1_HD_U_I6     OptiFine Build: 20231221-120401     Render Distance Chunks: 6     Mipmaps: 4     Anisotropic Filtering: 1     Antialiasing: 0     Multitexture: false     Shaders: null     OpenGlVersion: 4.6.0 NVIDIA 552.22     OpenGlRenderer: NVIDIA GeForce RTX 3060/PCIe/SSE2     OpenGlVendor: NVIDIA Corporation     CpuCount: 16     ModLauncher: 10.0.9+10.0.9+main.dcd20f30     ModLauncher launch target: forgeclient     ModLauncher naming: srg     ModLauncher services:          mixin-0.8.5.jar mixin PLUGINSERVICE          eventbus-6.0.5.jar eventbus PLUGINSERVICE          fmlloader-1.20.1-47.2.20.jar slf4jfixer PLUGINSERVICE          fmlloader-1.20.1-47.2.20.jar object_holder_definalize PLUGINSERVICE          fmlloader-1.20.1-47.2.20.jar runtime_enum_extender PLUGINSERVICE          fmlloader-1.20.1-47.2.20.jar capability_token_subclass PLUGINSERVICE          accesstransformers-8.0.4.jar accesstransformer PLUGINSERVICE          fmlloader-1.20.1-47.2.20.jar runtimedistcleaner PLUGINSERVICE          modlauncher-10.0.9.jar mixin TRANSFORMATIONSERVICE          modlauncher-10.0.9.jar OptiFine TRANSFORMATIONSERVICE          modlauncher-10.0.9.jar essential-loader TRANSFORMATIONSERVICE          modlauncher-10.0.9.jar fml TRANSFORMATIONSERVICE      FML Language Providers:          [email protected]         lowcodefml@null         javafml@null     Mod List:          dynamiclightsreforged-1.20.1_v1.6.0.jar           |Rubidium Dynamic Lights       |dynamiclightsreforged         |1.20.1_v1.6.0       |DONE      |Manifest: NOSIGNATURE         YungsBetterDungeons-1.20-Forge-4.0.4.jar          |YUNG's Better Dungeons        |betterdungeons                |1.20-Forge-4.0.4    |DONE      |Manifest: NOSIGNATURE         YungsBetterWitchHuts-1.20-Forge-3.0.3.jar         |YUNG's Better Witch Huts      |betterwitchhuts               |1.20-Forge-3.0.3    |DONE      |Manifest: NOSIGNATURE         additionalentityattributes-forge-1.4.0.5+1.20.1.ja|Additional Entity Attributes  |additionalentityattributes    |1.4.0.5+1.20.1      |DONE      |Manifest: NOSIGNATURE         geckolib-forge-1.20.1-4.4.4.jar                   |GeckoLib 4                    |geckolib                      |4.4.4               |DONE      |Manifest: NOSIGNATURE         jei-1.20.1-forge-15.3.0.4.jar                     |Just Enough Items             |jei                           |15.3.0.4            |DONE      |Manifest: NOSIGNATURE         The_Graveyard_3.1_(FORGE)_for_1.20.1.jar          |The Graveyard                 |graveyard                     |3.1                 |DONE      |Manifest: NOSIGNATURE         Pehkui-3.8.0+1.20.1-forge.jar                     |Pehkui                        |pehkui                        |3.8.0+1.20.1-forge  |DONE      |Manifest: NOSIGNATURE         YungsBetterOceanMonuments-1.20-Forge-3.0.4.jar    |YUNG's Better Ocean Monuments |betteroceanmonuments          |1.20-Forge-3.0.4    |DONE      |Manifest: NOSIGNATURE         Soulbound-Forge-0.8+1.20.1.jar                    |Soulbound                     |soulbound                     |0.8                 |DONE      |Manifest: NOSIGNATURE         caelus-forge-3.2.0+1.20.1.jar                     |Caelus API                    |caelus                        |3.2.0+1.20.1        |DONE      |Manifest: NOSIGNATURE         obscure_api-15.jar                                |Obscure API                   |obscure_api                   |15                  |DONE      |Manifest: NOSIGNATURE         apoli-forge-1.20.1-2.9.0.6.jar                    |Apoli                         |apoli                         |1.20.1-2.9.0.6      |DONE      |Manifest: NOSIGNATURE         Neat-1.20-35-FORGE.jar                            |Neat                          |neat                          |1.20-35-FORGE       |DONE      |Manifest: NOSIGNATURE         enlightend-5.0.14-1.20.1.jar                      |Enlightend                    |enlightened_end               |5.0.14              |DONE      |Manifest: NOSIGNATURE         EpicFight-20.7.4.jar                              |Epic Fight                    |epicfight                     |20.7.4              |DONE      |Manifest: NOSIGNATURE         WeaponsOfMiracles-20.1.7.40.jar                   |Weapons of Minecraft          |wom                           |20.1.7.40           |DONE      |Manifest: NOSIGNATURE         citadel-2.5.4-1.20.1.jar                          |Citadel                       |citadel                       |2.5.4               |DONE      |Manifest: NOSIGNATURE         TravelersBackpack-1.20.1-9.1.12.jar               |Traveler's Backpack           |travelersbackpack             |9.1.12              |DONE      |Manifest: NOSIGNATURE         zombieawareness-1.20.1-1.13.1.jar                 |Zombie Awareness              |zombieawareness               |1.20.1-1.13.1       |DONE      |Manifest: NOSIGNATURE         YungsApi-1.20-Forge-4.0.4.jar                     |YUNG's API                    |yungsapi                      |1.20-Forge-4.0.4    |DONE      |Manifest: NOSIGNATURE         mixinextras-forge-0.2.0-beta.8.jar                |MixinExtras                   |mixinextras                   |0.2.0-beta.8        |DONE      |Manifest: NOSIGNATURE         YungsBetterDesertTemples-1.20-Forge-3.0.3.jar     |YUNG's Better Desert Temples  |betterdeserttemples           |1.20-Forge-3.0.3    |DONE      |Manifest: NOSIGNATURE         cave_dweller-1.20.1-1.6.4.jar                     |cave_dweller                  |cave_dweller                  |1.6.4               |DONE      |Manifest: NOSIGNATURE         deep-1.05b.jar                                    |depthcrawler                  |depthcrawler                  |1.0.0               |DONE      |Manifest: NOSIGNATURE         iceandfire-2.1.13-1.20.1-beta-4.jar               |Ice and Fire                  |iceandfire                    |2.1.13-1.20.1-beta-4|DONE      |Manifest: NOSIGNATURE         dixtas_armory-1.1.7-1.20.1-beta.jar               |dixta's Armory                |dixtas_armory                 |1.1.4-1.20.1-beta   |DONE      |Manifest: NOSIGNATURE         inventorypets-1.20.1-2.1.1.jar                    |Inventory Pets                |inventorypets                 |2.1.1               |DONE      |Manifest: NOSIGNATURE         JustEnoughResources-1.20.1-1.4.0.247.jar          |Just Enough Resources         |jeresources                   |1.4.0.247           |DONE      |Manifest: NOSIGNATURE         YungsBetterNetherFortresses-1.20-Forge-2.0.6.jar  |YUNG's Better Nether Fortresse|betterfortresses              |1.20-Forge-2.0.6    |DONE      |Manifest: NOSIGNATURE         SpelunkersCharm-3.5.9-1.20.1.jar                  |Spelunker's Charm             |spelunkers_charm              |3.5.9               |DONE      |Manifest: NOSIGNATURE         twilightforest-1.20.1-4.3.2145-universal.jar      |The Twilight Forest           |twilightforest                |4.3.2145            |DONE      |Manifest: NOSIGNATURE         ironchest-1.20.1-14.4.4.jar                       |Iron Chests                   |ironchest                     |1.20.1-14.4.4       |DONE      |Manifest: NOSIGNATURE         nyfsspiders-forge-1.20.1-2.1.1.jar                |Nyf's Spiders                 |nyfsspiders                   |2.1.1               |DONE      |Manifest: NOSIGNATURE         client-1.20.1-20230612.114412-srg.jar             |Minecraft                     |minecraft                     |1.20.1              |DONE      |Manifest: a1:d4:5e:04:4f:d3:d6:e0:7b:37:97:cf:77:b0:de:ad:4a:47:ce:8c:96:49:5f:0a:cf:8c:ae:b2:6d:4b:8a:3f         sons-of-sins-1.20.1-2.1.6.jar                     |Sons of Sins                  |sons_of_sins                  |2.1.6               |DONE      |Manifest: NOSIGNATURE         lucky-block-forge-1.20.1-13.0.jar                 |Lucky Block                   |lucky                         |1.20.1-13.0         |DONE      |Manifest: NOSIGNATURE         TerraBlender-forge-1.20.1-3.0.1.4.jar             |TerraBlender                  |terrablender                  |3.0.1.4             |DONE      |Manifest: NOSIGNATURE         AmbientSounds_FORGE_v5.3.9_mc1.20.1.jar           |AmbientSounds                 |ambientsounds                 |5.3.9               |DONE      |Manifest: NOSIGNATURE         BiomesOPlenty-1.20.1-18.0.0.592.jar               |Biomes O' Plenty              |biomesoplenty                 |18.0.0.592          |DONE      |Manifest: NOSIGNATURE         CreativeCore_FORGE_v2.11.27_mc1.20.1.jar          |CreativeCore                  |creativecore                  |2.11.27             |DONE      |Manifest: NOSIGNATURE         From-The-Fog-1.20-v1.9.2-Forge-Fabric.jar         |From The Fog                  |watching                      |1.9.2               |DONE      |Manifest: NOSIGNATURE         YungsBridges-1.20-Forge-4.0.3.jar                 |YUNG's Bridges                |yungsbridges                  |1.20-Forge-4.0.3    |DONE      |Manifest: NOSIGNATURE         born_in_chaos_[Forge]1.20.1_1.2.jar               |Born in Chaos                 |born_in_chaos_v1              |1.0.0               |DONE      |Manifest: NOSIGNATURE         calio-forge-1.20.1-1.11.0.3.jar                   |Calio                         |calio                         |1.20.1-1.11.0.3     |DONE      |Manifest: NOSIGNATURE         L_Enders_Cataclysm-1.90 -1.20.1.jar               |Cataclysm Mod                 |cataclysm                     |1.0                 |DONE      |Manifest: NOSIGNATURE         curios-forge-5.9.0+1.20.1.jar                     |Curios API                    |curios                        |5.9.0+1.20.1        |DONE      |Manifest: NOSIGNATURE         ars_nouveau-1.20.1-4.10.0-all.jar                 |Ars Nouveau                   |ars_nouveau                   |4.10.0              |DONE      |Manifest: NOSIGNATURE         origins-forge-1.20.1-1.10.0.7-all.jar             |Origins                       |origins                       |1.20.1-1.10.0.7     |DONE      |Manifest: NOSIGNATURE         Xaeros_Minimap_24.1.1_Forge_1.20.jar              |Xaero's Minimap               |xaerominimap                  |24.1.1              |DONE      |Manifest: NOSIGNATURE         The-Man-From-The-Fog-1.2.4a-1.20.1.jar            |The Man From The Fog          |man                           |1.2.4               |DONE      |Manifest: NOSIGNATURE         Rats-1.20.1-8.1.2.jar                             |Rats                          |rats                          |1.20.1-8.1.2        |DONE      |Manifest: NOSIGNATURE         forge-1.20.1-47.2.20-universal.jar                |Forge                         |forge                         |47.2.20             |DONE      |Manifest: 84:ce:76:e8:45:35:e4:0e:63:86:df:47:59:80:0f:67:6c:c1:5f:6e:5f:4d:b3:54:47:1a:9f:7f:ed:5e:f2:90         ArPhEx_1.8.12_1.20.1.jar                          |Arthropod Phobia Expansions   |arphex                        |1.8.12              |DONE      |Manifest: NOSIGNATURE         ars_elemental-1.20.1-0.6.5.jar                    |Ars Elemental                 |ars_elemental                 |1.20.1-0.6.5        |DONE      |Manifest: NOSIGNATURE         YungsExtras-1.20-Forge-4.0.3.jar                  |YUNG's Extras                 |yungsextras                   |1.20-Forge-4.0.3    |DONE      |Manifest: NOSIGNATURE         Gods-and-Heroes-1.6.1.jar                         |Gods and Heroes               |gh                            |1.6.1_Forge&Fabric  |DONE      |Manifest: NOSIGNATURE         ftb-ultimine-forge-2001.1.4.jar                   |FTB Ultimine                  |ftbultimine                   |2001.1.4            |DONE      |Manifest: NOSIGNATURE         YungsBetterStrongholds-1.20-Forge-4.0.3.jar       |YUNG's Better Strongholds     |betterstrongholds             |1.20-Forge-4.0.3    |DONE      |Manifest: NOSIGNATURE         tombstone-1.20.1-8.6.5.jar                        |Corail Tombstone              |tombstone                     |8.6.5               |DONE      |Manifest: NOSIGNATURE         YungsMenuTweaks-1.20.1-Forge-1.0.2.jar            |YUNG's Menu Tweaks            |yungsmenutweaks               |1.20.1-Forge-1.0.2  |DONE      |Manifest: NOSIGNATURE         coroutil-forge-1.20.1-1.3.7.jar                   |CoroUtil                      |coroutil                      |1.20.1-1.3.7        |DONE      |Manifest: NOSIGNATURE         deeperdarker-forge-1.20.1-1.2.1.jar               |Deeper and Darker             |deeperdarker                  |1.2.1               |DONE      |Manifest: NOSIGNATURE         architectury-9.2.14-forge.jar                     |Architectury                  |architectury                  |9.2.14              |DONE      |Manifest: NOSIGNATURE         ftb-library-forge-2001.1.5.jar                    |FTB Library                   |ftblibrary                    |2001.1.5            |DONE      |Manifest: NOSIGNATURE         ftb-teams-forge-2001.1.4.jar                      |FTB Teams                     |ftbteams                      |2001.1.4            |DONE      |Manifest: NOSIGNATURE         ftb-chunks-forge-2001.2.7.jar                     |FTB Chunks                    |ftbchunks                     |2001.2.7            |DONE      |Manifest: NOSIGNATURE         ftb-quests-forge-2001.3.5.jar                     |FTB Quests                    |ftbquests                     |2001.3.5            |DONE      |Manifest: NOSIGNATURE         YungsBetterEndIsland-1.20-Forge-2.0.6.jar         |YUNG's Better End Island      |betterendisland               |1.20-Forge-2.0.6    |DONE      |Manifest: NOSIGNATURE         Deep Dark Regrowth 1.2.5.1 - 1.20.1.jar           |Deep Dark: Regrowth           |deep_dark_regrowth            |1.2.5.1             |DONE      |Manifest: NOSIGNATURE         Voidscape-1.20.1-1.5.389.jar                      |Voidscape                     |voidscape                     |1.20.1-1.5.389      |DONE      |Manifest: NOSIGNATURE         infiniverse-1.20.1-1.0.0.5.jar                    |Infiniverse                   |infiniverse                   |1.0.0.5             |DONE      |Manifest: NOSIGNATURE         fight_or_die-1.20.1-1.1.4.jar                     |Fight or Die Mutations        |fight_or_die                  |1.20.1-1.1.4        |DONE      |Manifest: NOSIGNATURE         YungsBetterMineshafts-1.20-Forge-4.0.4.jar        |YUNG's Better Mineshafts      |bettermineshafts              |1.20-Forge-4.0.4    |DONE      |Manifest: NOSIGNATURE         phantasm-forge-0.1.jar                            |End's Phantasm                |phantasm                      |0.1                 |DONE      |Manifest: NOSIGNATURE         aquamirae-6.API15.jar                             |Aquamirae                     |aquamirae                     |6.API15             |DONE      |Manifest: NOSIGNATURE         Essential (forge_1.20.1).jar                      |Essential                     |essential                     |1.3.1.3+g88238d7752 |DONE      |Manifest: NOSIGNATURE         YungsBetterJungleTemples-1.20-Forge-2.0.4.jar     |YUNG's Better Jungle Temples  |betterjungletemples           |1.20-Forge-2.0.4    |DONE      |Manifest: NOSIGNATURE     Crash Report UUID: 093f2885-caf5-4a87-965d-511fd2c9d9ae     FML: 47.2     Forge: net.minecraftforge:47.2.20
    • I get a death message in chat every time I take damage example: [16:29:13] [Render thread/INFO]: [System] [CHAT] fall,Syndrick hit the ground too hard. I didn't die from that fall. I remember the exact moment it started happening, and what mods I had added. I have since removed said mods trying to fix it, and nothing has worked. I have also disabled a bunch of other mods that could be the cause, but that hasn't worked either. I've gone through the logs with chatgpt, and that hasn't helped either. This is my last resort, so if anyone can help me, that'd be insanely appreciated. Thank You.
  • Topics

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.