Started by
Chilly0123
on
Topic category: Help with Minecraft modding (Java Edition)
Hello all,
I've been trying to make custom swords that give mobs/animals/players potion effects when getting attacked, potion effects like poison, wither, slowness, etc. I've found no info on how to do this in MCreator, but i have found tons of custom code examples from the Forge site that do not work at all in MCreator, although none of these code examples are for the latest version of Minecraft or Forge. So is there any way to get this to work? I have very little Java experience, thanks in advance for any and all help.
You can add effects without coding. Go to items and create a sword
(by typing in 1.5),
there you will come upon events page. Find the event "Right click" and there you
can find potion effects and add them there.
@#1 that was "Right Click" event....we want Left Click for example if I hit a zombie,the zombie will get struck by lightning.
If that is the case, simply do it in "when mob is hit with item".