主要特性
- 动态实体注册表:通过 JavaScript 轻松注册自定义实体,并定义其属性与行为。
- 实体修改:利用实体修改事件(Entity Modification Event)修改现有实体方法,以实现进一步的定制。
- 完整动画支持:借助 LioLib(Geckolib 4 的一个分支,为不受支持的 1.19.2 版本移植了大量修复),享受流畅且逼真的实体动画效果。
(EntityJS 1.20.1+ 将 Geckolib 作为直接依赖项使用,因为该版本受官方支持)
- 生成控制:通过指定生成条件、速率和位置,完全掌控实体的生成过程。
- 属性修改:精细调整生命值、速度、伤害等实体属性,以满足你的游戏需求。
- 完整 AI 支持:访问全面的 AI 行为和功能集,创建智能且可交互的实体。
快速上手
要开始使用 EntityJS,只需在 KubeJS 旁安装此插件,然后开始创建你的自定义实体和动画。请参阅文档以获取详细的说明和示例。
特殊兼容性
KubeJS Iron's Spells
访问 KubeJS Iron's Spells Mod 页面
- 施法生物:你可以使用目标事件(Goal Event)附加施法行为,使任何生物都能施放法术。
- 自定义施法者:创建具有定制 AI、法术集合和行为的完全自定义施法生物。
- 法术弹射物:定义并控制自定义法术弹射物,实现高级战斗效果和视觉特效。
社区
加入官方 KubeJS Discord 社区,与其他用户建立联系,分享你的作品,并在你使用 EntityJS 时获得任何问题的帮助。或者,你可以点击下方的 Discord 图标:
YouTube 教程
Key Features
- Dynamic Entity Registry: Easily register custom entities and define their attributes and behaviors using JavaScript.
- Entity Modification: Modify existing entity methods with the entity modification event for further customization.
- Full Animation Support: Enjoy smooth and lifelike animations for your entities, utilizing LioLib, a Geckolib 4 fork backporting many fixes to the unsupported 1.19.2 version
(EntityJS 1.20.1+ Use Geckolib as a direct dependency because it is a supported version)
- Spawn Control: Take full control over entity spawning by specifying spawn conditions, rates, and locations.
- Attribute Modification: Fine-tune entity attributes such as health, speed, damage, and more to suit your gameplay needs.
- Full AI Support: Access a comprehensive set of AI behaviors and functions to create intelligent and interactive entities.
Getting Started
To start using EntityJS, simply install the addon alongside KubeJS and begin creating your custom entities and animations. Refer to the documentation for detailed instructions and examples.
Special Compatibility
KubeJS Iron's Spells
Visit KubeJS Iron's Spells Mod Page
- Spellcasting Mobs: You can make any Mob cast spells by using the Goal event to attach spellcasting behavior.
- Custom Spellcasters: Create fully custom spellcasting mobs with tailored AI, spell sets, and behaviors.
- Spell Projectiles: Define and control custom spell projectiles for advanced combat and visual effects.
Community
Join the official KubeJS Discord community to connect with other users, share your creations, and get help with any questions or issues you encounter while using EntityJS. Alternatively, you can click the Discord icon below:
Youtube Tutorials
下载 EntityJS
下载 EntityJS
下载 EntityJS
下载 EntityJS
下载 EntityJS
下载 EntityJS
下载 EntityJS
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 EntityJS
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 EntityJS
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 EntityJS
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
- 更新到 26.1.2
- 将
canChangeDimensions替换为canTeleport,并传入context.entity、context.from和context.to - 将
lerpTo替换为moveOrInterpolateTo,支持可选的位置、旋转角度(yaw)和俯仰角(pitch)值,并允许在原版逻辑执行前取消移动 - 将
canDisableShield替换为secondsToDisableBlocking,允许脚本返回禁用格挡的持续时间 - 将
canTakeItem替换为canEquipWithDispenser - 移除了已过时的
eat和shouldRiderFaceForward回调函数。 - 更新了自定义实体的
getAttackBoundingBox回调函数,使其接收context.entity和context.horizontalExpansion - 更新了自定义实体的
isAlliedTo回调函数,使用context.entity和context.team - 更新了自定义实体的
onHurtTarget回调函数,使用context.level、context.entity和context.target - 在伤害和践踏上下文(contexts)中添加了服务器级别信息,并将坠落距离值更新为双精度浮点数(doubles)
- 更新了投射物武器上下文(contexts),暴露武器的
ItemStack而非ProjectileWeaponItem - 更新了渲染回调函数和层级上下文(layer contexts),使用
renderState、submitNodeCollector和cameraRenderState替代旧的缓冲区来源(buffer source)和顶点消费者(vertex consumer)字段 - 在渲染器覆盖上下文(renderer override contexts)中添加了当前渲染状态、默认纹理和渲染类型
- 更新了自定义渲染器/模型工厂上下文,使用新的物品/模型解析器及实体模型集
- 将几何模型移至
geckolib/models,动画移至geckolib/animations - 更新了模型和动画回调函数,使用类似
kubejs:entity/wyrm的资源 ID。旧的geo/和animations/回调路径已规范化,但文件仍需手动移动 - 修复了动画链式调用、
thenPlayXTimes()的重复计数以及自定义非生物动画回调函数
- 修复了当未设置食物条件并喂食时,可驯服实体出现的 StackOverflowError
- 修复了
createCustom实体构建器中的另一个包装器缓存问题
关于这个资源的讨论、问题反馈与使用心得
还没有讨论,来发第一帖吧
你是这个资源的作者?登录后可认领此资源。
相似资源
模组
一个用于收集生物掉落物的多区块模组。
模组
显示你正在注视的方块的信息。(适用于 Minecraft 1.16+ 的 Hwyla/Waila 分支)
模组
使用 JavaScript 编辑配方、添加自定义物品、编写世界事件!
模组
查看物品与配方
模组
在游戏画面角落显示附近世界地形、玩家、生物和实体的地图。可创建路径点,帮助你找到标记过的位置。
模组
AE2:一款流行的自动化与存储模组

评论 0
登录后参与评分
还没有评论,来抢沙发吧