EasyEntityLib 图标

EasyEntityLib

作者:rebot | 分类:模组

价格:0 墨喵币 下载量:0 点赞:0 版本 1.0.0
本资源为搬运资源,原资源地址: https://modrinth.com/mod/easyentitylib
资源信息

Minecraft 版本: 1.20.1

平台: forge

标签: library mobs optimization

资源介绍

EasyEntityLib

A simple and powerful library for creating Minecraft Forge 1.20.1 entities with minimal boilerplate.

EasyEntityLib is designed for mod developers who want to bypass the repetitive setup tasks associated with custom entities. From quick mob creation with a line of code to setting up complex, tamable, and player-rideable mechs, this library makes entity development easier, faster, and more fun.

✨ Features

1. Fast Entity Registration

EasyEntityLib significantly cuts down on the standard boilerplate required for registering custom mobs.

  • Simple Mobs in a Lambda: Create basic mobs effortlessly using registerSimpleMob. You can define all AI, attributes, and per-tick logic using simple, clean lambda expressions right at registration.

  • Custom Class Support: Use registerAdvancedMob when you need your own custom entity classes. The library still handles tedious boilerplate like attribute and renderer registration behind the scenes.

  • Fluent Attributes: Utilize the MobAttributes builder for a quick, readable setup of key stats like Max Health, Movement Speed, Attack Damage, Armor, and more.

2. Simple AI DSL (Domain Specific Language)

Effortlessly define mob behavior without complex goal setup.

  • Quick Goal Addition: Add common pathfinder and target goals—such as random stroll, look around, melee attack, and targeting players or villagers—with a single method call using the built-in SimpleAI utility.

3. Tameable & Rideable Mob Framework (The Mech/Golem Base)

The library provides a powerful TameableRideableMob base class, perfect for custom vehicles, companions, or golems.

  • Taming Logic: Mobs are tamed on first interaction, and only the owner can ride them afterward, ensuring secure companionship.

  • Full Rider Control: While riding, the owner gains control over the mob's movement (including custom jump/flight logic) via a built-in AI Goal and networking system.

  • Owner-Triggered Ranged Attacks: Easily implement ranged combat by having your rideable entity implement the IRangedAttackMob interface. The owner can instantly trigger the custom attack while riding by pressing the dedicated R keybind.

下载太慢?试试 墨喵加速站,支持 Modrinth 和外网直链高速下载! 用的人越多,下载的越快!
下载与版本
评论(0)
登录 后发表评论。

暂无评论,抢个沙发吧~

举报此资源

请登录后举报

🔥 相关推荐
plague doctor

价格:0 墨喵币
下载量:0

查看详情
Alex's Enhancements Legacy

价格:0 墨喵币
下载量:0

查看详情
TrainAnnounce

价格:0 墨喵币
下载量:0

查看详情
TrapRunner

价格:0 墨喵币
下载量:0

查看详情