介绍
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
registerAdvancedMobwhen 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
MobAttributesbuilder 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
SimpleAIutility.
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
IRangedAttackMobinterface. The owner can instantly trigger the custom attack while riding by pressing the dedicated R keybind.
常见问题
EasyEntityLib 支持哪些 Minecraft 版本?
EasyEntityLib 支持 Minecraft Java 版 1.20.1,可用的加载器:Forge。下载时注意选择和你游戏版本一致的文件。
EasyEntityLib 怎么安装?
先用 PCL2 或 HMCL 启动器安装对应版本的 Forge,再把下载的 .jar 文件放进游戏目录的 mods 文件夹,重新启动游戏即可。开启了版本隔离的,mods 文件夹在 versions/版本名 下面。运行环境:客户端和服务端都要装。
SaphicDeveloper 的其他作品
查看全部 →
nukaworld
A modpack set in the fallout universe with a steampunk feel. currently in heavy prerelease stage
Whoniverse Beyond [Tardis Refined Edition]
A doctor who modpack with even more alien carnage
epic fight x minecolonies compat
epic fight compatability to minecolonies
Sapphics Enchantments
a ton of new enchantments
评论
登录后评论和评分