功能介绍
厌倦了手动收集经验球了吗?让它们在 64 格半径内自动飞向你,并在身后留下一道绚丽的彩虹粒子轨迹。
粒子效果等级
生成的粒子数量受 选项 -> 视频设置 -> 粒子 的影响。
支持 Optifine
如果安装了 Optifine,经验球会发光。请确保将 选项 -> 视频设置 -> 动态光照 设置为 精美(Fancy)。
行为机制(面向开发者)
此模组会将所有生成的“EntityXPOrb”实体替换为继承自“EntityHomingExpOrb”类的实体。经验球会尝试飞向 64 格半径内最近的玩家。否则,它们将停留在当前位置;若未被拾取,它们会在 6000 刻(5 分钟)后像原版经验球一样消失。如果你希望在某些情况下阻止替换以兼容其他模组,你需要通过优先级高于“EventPriority.LOWEST”的事件来取消“EntityJoinWorldEvent”。你也可以尝试在同一事件中捕获“EntityHomingExpOrb”对象,并通过 entity.delay.add(ticks) 告知其停留在初始位置。几乎所有方法和字段均为 protected 权限,欢迎自由扩展此模组。
我可以在我的整合包中使用它吗?
欢迎使用。
我可以扩展或移植此模组吗?
欢迎操作(请注意许可证要求)。
What does it do?
Tired of manually collecting experience orbs? Make them fly to you within a 64 block radius, leaving behind a beautiful trailing stream of rainbow colored particles.
Particle level
The amount of spawned particles is influenced by Options -> Video Settings -> Particles
Supports Optifine
Orbs will emit light if optifine is installed. Be sure to set Options -> Video Settings -> Dynamic Lights to Fancy
Behavior (for developers)
This mod will replace all spawned "EntityXPOrb" entitys with the extending "EntityHomingExpOrb" class. Orbs will try to fly to the closest player within a 64 block radius. Else they will stay at their current position and if not collected, they will die like the vanilla xp orb after 6000 ticks (5 minutes). If you want to prevent the replacement in some cases in favor of compatibility for another mod you need to cancel the "EntityJoinWorldEvent" with a priority higher than "EventPriority.LOWEST". You can also try to catch the "EntityHomingExpOrb" object within the same event and tell it using entity.delay.add(ticks) to stay at its initial position. Almost all methods and fields are protected, feel free to extend this mod.
Can I use this in my modpack?
You're welcome.
Can I extend or port this mod?
Feel free to do so (note the license).
评论 0
登录后参与评分
还没有评论,来抢沙发吧