Json Entity Animation

Library mod for creating your entity animations in JSON

Редакция NLZONE · 1 мин чтения · 0 просмотров
Json Entity Animation
Скачать Json Entity Animation1.19.2 – 1.20.1 · с официальной страницы: modrinth.com
Перейти к загрузке

Что это

Library mod for creating your entity animations in JSON

  • Тип: мод
  • Загрузчик: fabric, quilt
  • Версии Minecraft: 1.19.2 – 1.20.1
  • Скачиваний на Modrinth: 1 422

Подробно

Json Entity Animation (JsonEA) for short is a library mod for other mods to be able to define animations through JSON instead of through code. A Blockbench plugin (also available in the Blockbench plugins browser) is also provided in order to export your animations to this format.

Add the mod as a dependency using the Modrinth Maven.

gradle dependencies { include(modImplementation("maven.modrinth:json-entity-animation:0.2.1+1.19.4")) }

Once added, put your animation JSONs in the assets/modid/jsonea directory. To load the animations, your entity model must subclass SinglePartEntityModel/HierarchicalModel. Then define a JsonAnimator field and animation IDs.

java public class MyEntityModel extends SinglePartEntityModel { private static final Identifier PUNCHANIMATION = new Identifier("modid", "myentity/punch"); private final JsonAnimator animator = new JsonAnimator(this); // ... @Override public void setAngles(MyEntity entity, float limbAngle, float limbDistance, float animationProgress, float headYaw, float headPitch) { getPart().traverse().forEach(ModelPart::resetTransform); animator.animate(entity.punchState, PUNCHANIMATION, animationProgress); } }

Как установить

Скачайте файл на официальной странице ниже и положите его в папку mods (для модов) или plugins (для плагинов) вашего сервера или клиента. Для модов нужен совместимый загрузчик. Версия должна совпадать с версией Minecraft.

Текст подготовлен автоматически из описания на Modrinth и ждёт проверки редакцией.

Редакция NLZONE

Пишем о серверах, модах и играх, в которые играем сами. Нашли ошибку — напишите нам, исправим.

Комментарии 0

Комментарии к этому материалу отключены.

Читайте также