跳到正文

Eden’s Particles

作者:ImEden6

Data-driven particle effects for mod developers. Write timelines of emitters in JSON and play them from code or commands.

收藏

介绍

中文介绍正在准备中,下面暂时显示原文。

Eden’s Particles is a library for mod developers who want nicer particle effects than spawning vanilla particles in a loop.

You write an effect as a JSON file: a timeline of emitters, each spawning particles with curves for size, colour, opacity and spawn rate over their life. Then you play it from code with one line, or from a command while you’re testing.

EdenParticles.play(level, ResourceLocation.fromNamespaceAndPath("mymod", "boom"), EffectAnchor.entity(player));

What effects can do

  • Curves with easing, gradients in OKLab, and random ranges for anything that should vary per particle
  • Shapes to spawn from (sphere, disc, ring, box, line) and velocity modes like cone, radial and tangent
  • Forces: curl-noise turbulence, attractors that can absorb particles, and vortices with pull and lift
  • Ribbon trails behind particles, or ribbons on their own for slashes and streaks
  • Animated sprites, from frame lists or sprite sheets
  • Sub-effects on the timeline, and effects that fire when a particle dies or lands
  • Sounds and dynamic lights that follow the effect. Lights need LambDynamicLights
  • Inputs: named numbers like power that code can set, and change while the effect plays

Multiplayer

On a server, effects go to nearby players who have the mod, with the same random seed, so everyone sees the same pattern. Players without it can still join. Effects can follow entities, beam between two of them, and reach players who arrive while they’re still playing.

Datapacks can ship effects and particle images too. Players get asked before a server’s images are used.

For effect authors

  • /eden_particles_client preview <effect> keeps replaying an effect, and /eden_particles_client reload picks up your edits without a full F3+T
  • Errors point at the exact spot, with "did you mean" hints for typos
  • There’s a JSON schema for autocomplete in your editor
  • 23 example effects ship with the mod. Try /eden_particles_client play eden_particles:examples/vortex

Using it

Mark it as a required dependency on your project so launchers install it for your players. The docs on GitHub cover the JSON format and the API.

Works on Fabric, NeoForge and Forge for Minecraft 1.21.1. On its own it adds nothing to the game, apart from the example effects you can play with commands.

常见问题

Eden’s Particles 支持哪些 Minecraft 版本?

Eden’s Particles 支持 Minecraft Java 版 1.21.1,可用的加载器:Fabric / Forge / NeoForge。下载时注意选择和你游戏版本一致的文件。

Eden’s Particles 怎么安装?

先用 PCL2 或 HMCL 启动器安装对应版本的 Fabric / Forge / NeoForge,再把下载的 .jar 文件放进游戏目录的 mods 文件夹,重新启动游戏即可。开启了版本隔离的,mods 文件夹在 versions/版本名 下面。

评论

登录后评论和评分

ImEden6 的其他作品

查看全部 →