Topic category: Help with modding (Java Edition)
Recently I have been trying to make an enchantment book that when given to something (Ex: Sword) will then cause the attacked entity to gain a potion effect. (Ex: Attack zombie, inflict levitation).
I have been struggling greatly with trying to figure out how exactly to make this happen, as I am not extremely well versed in Mcreator's coding side.
If someone could please assist me, I much more of a visual learner and a photo of what the code would look like, or just a workspace with the code, would help me a ton. I've seen only a few others try and tackle the same issue I'm having and also come up empty handed, so I apologize if this is a duplicate post.