#animation in game
36 messages · Page 1 of 1 (latest)
Yes, but you might have to work on that a bit.
The library allows transparent animations but does not detect the built-in ones.
You can create an animation where you only animate the head and the other parts will be see-through.
Sorry for not replying immediately, I have more important stuff to do.
Maybe I add it to the example mod.
Do you use Fabric or Forge?
You was timed out by me.
After asking you to stop pinging me multiple times, you just kept pinging me. Next waring may be a ban.
If you ping me, I just read your message but if I can not answer (because I'm in work), I just forget it.
Also I definitely don't like the ping and delete the message immediately strategy. It just cause confusion and doesn't remove the ping actually.
If you use KeyframeAnimation (probably you do), you can just modify the animation and disable parts/what you want
Disabled parts won't override the default animation...
//Use setAnimation to set the current animation. It will be played automatically.
KeyframeAnimation animation = PlayerAnimationRegistry.getAnimation(new Identifier("modid", "waving"));
assert animation != null; //meh
var modified = animation.mutableCopy(); //You can't modify existing animations, but you can modify a copy of those
modified.head.x.setEnabled(false); //You can disable head animation
modified.head.y.setEnabled(false);
modified.head.z.setEnabled(false);
modified.head.pitch.setEnabled(false);
modified.head.yaw.setEnabled(false);
modified.head.roll.setEnabled(false);
var newAnimation = modified.build(); // Use the build function to make another immutable animation
animationContainer.setAnimation(new KeyframeAnimationPlayer(newAnimation));
This is https://github.com/KosmX/fabricPlayerAnimatorExample but modified one class...
Of if you want to change it low-level, you can make implement some other part of the API:
public class TransparencyLayer extends AnimationContainer<IAnimation> {
public TransparencyLayer(IAnimation animation) {
super(animation);
}
Set<Pair<String, TransformType>> disabledParts = Set.of(
new Pair<>("head", TransformType.POSITION),
new Pair<>("torso", TransformType.ROTATION),
new Pair<>("rightArm", TransformType.BEND)
);
@Override
public Vec3f get3DTransform(String modelName, TransformType type, float tickDelta, Vec3f value0) {
if (disabledParts.contains(new Pair<>(modelName, type))) {
return value0;
} else {
return super.get3DTransform(modelName, type, tickDelta, value0);
}
}
}
//Then you can just
{
animation.setAnimation(new TransparencyLayer(animation));
}
Probably
Fine-tuning replaced default animations to make them really good is a lot of time and right now I don't have that.
Dude just make it yourself then. Kos already said they don't have time.
Do you already know the basics of programming? of mixins? if not, first try to study it before
Asking people to do things for you won't solve anything unless you want to pay a programmer to do it.
https://streamable.com/v1qexx
and yes, answering your question, you can change player base animations using API without any problem and the best, you can still configure it to have compatibility with other mods that use the API as seen in my mod below with better combat
This looks good!
You don't have to use API, it is just to help and make compatibility easier.
My mod is not ready yet, I will let you know when I have a download
The mod in the video is my mod and yes it is not ready yet
I'm busy, I'll answer you as soon as possible.
DrAlpha#9049 has been warned. || This is your last warning: Don't ping people if they didn't ask! You're maybe free but they may work/sleep. And if you ping someone, definitely don't delete the message!
he's probably just a needy child
So what's the point of spamming pings?
Yes I am the owner of the mod, but as I said, it is not ready, please stop insisting.
When I'm available, it could take days, or even months, be patient, I have things to do.
No, like I said, I'm busy.
Search the internet for Java, learn programming, then read the fabric documentation
It's not complicated when you already know how to program
And I'm just answering you kindly, if you don't know the answer to how to make a mod, it's because you don't know how to program, so you should start from there
So why the question?
using mixins
No, this is a fabric feature
No, thanks
When it's released.
No, thanks. Stop insisting.
I'm saying you are not allowed to use my video in your video
When I release the mod, you can record as many videos as you want and use as many videos as you want, but while I'm still producing, no.
🤦 Okay man @worldly prism sorry to ping you but please.
apparently he himself saw how inconvenient he was being and deleted the messages, what a kid
In this case, ping the moderator role so you won't have to wait for me.
Deleting the messages won't hide your actions from moderators...
where can I download your mod?