Community listing page, reviews here may not be monitored by the author.
Mannequin Swing
No reviews yet
This mod adds support for swing animations on mannequins.
Forge is a popular mod loader for versions 1.1+ of Minecraft.
Neoforge is a fork of the Minecraft Forge available for versions 1.20.1+ of Minecraft. Many Forge mods are compatible with Neoforge and vice versa.
Fabric is a mod loader for versions 1.14+ of Minecraft, particularly popular for client side and optimization mods.
Community voices
Reviews
Filters
Click once to include, again to exclude, again to clear
No reviews yet. Be the first to review this project!
Get it on
Available Platforms
Compatibility
Supported Environments
Must be installed on both the client and the server.
About
Project Details
For authors
Embed Badge
If you're the author of this project, you can embed a live badge anywhere that supports HTML or Markdown. It updates automatically whenever ratings change.
Use HTML for any page that supports it, or Markdown for README files and Markdown-based descriptions.
Identifiers
Platform IDs
Resources
External Links
About
Description
Mannequin Swing
This mod adds support for swing animations on mannequins. It does not add any new way to cause a swing animation, such as the /swing command from the 26.1 snapshots.
Technical details
LivingEntity has a method updateSwingTime that needs to be called both on the client and on the server to allow an entity to swing its arms. However, it is only used by Players and monsters. This mod adds a call in Mannequins' aiStep function, through the technique of submixins.
@Mixin(LivingEntity.class)
public class LivingEntityMixin {
@Shadow
protected void updateSwingTime() {};
@WrapMethod(method = "aiStep")
public void overrideAiStep(Operation<Void> original) {
original.call();
}
}
@Mixin(Mannequin.class)
public class MannequinSubMixin extends LivingEntityMixin {
@Override
public void overrideAiStep(Operation<Void> original) {
super.overrideAiStep(original);
updateSwingTime();
}
}
Mannequin Swing
This mod adds support for swing animations on mannequins. It does not add any new way to cause a swing animation, such as the /swing command from the 26.1 snapshots.
Technical details
LivingEntity has a method updateSwingTime that needs to be called both on the client and on the server to allow an entity to swing its arms. However, it is only used by Players and monsters. This mod adds a call in Mannequins' aiStep function, through the technique of submixins.
@Mixin(LivingEntity.class)
public class LivingEntityMixin {
@Shadow
protected void updateSwingTime() {};
@WrapMethod(method = "aiStep")
public void overrideAiStep(Operation<Void> original) {
original.call();
}
}
@Mixin(Mannequin.class)
public class MannequinSubMixin extends LivingEntityMixin {
@Override
public void overrideAiStep(Operation<Void> original) {
super.overrideAiStep(original);
updateSwingTime();
}
}
Screenshots
Gallery
Versions
Files
Relations
Project Relations
More like this
Similar Mods
Suggestions use data such as tags, dependencies, dependents, descriptions, titles, and more to rank how much they overlap with this mod.
On ModDex
Community snapshot
By the numbers
Statistics
Want to reach Minecraft players?
We're looking for a server hosting partner to feature here and other parts of the site. Interested? Send us a message!
Get in touchGet it on
Available Platforms
On ModDex
Community snapshot
By the numbers
Statistics
Resources