Using custom blocks to grant effects

Started by 12moon on

Topic category: Help with modding (Java Edition)

Last seen on 02:37, 16. Apr 2024
Joined Feb 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Using custom blocks to grant effects

I'm currently making a mod that contains a craftable nuclear bomb, and I was wondering if I could make the bomb give off an effect within a radius upon explosion.

For example, I have an effect titled Radiation Sickness that I want applied upon detonation. When the bomb explodes, the effect is supposed to be applied to all entities within a 150 block radius of the explosion site every 3 seconds for 5 minutes. Is there any way I could do this?

Thanks.