Topic category: Help with modding
I was trying to add a potion effect to my sword when I hit an entity, but I coudn't find a way when I create my sword from a tool mod.
So I tried creating an item, since there's the possibility to make a sword from there (or it seems to be), just as mcreator says, putting 1.5 in type of tool box.
So, now I got my poisonous sword, but the problem is that it's NOT a sword...
It's just an item (1 of damage, no attack cooldown and all the things a sword has) that give poison status to enetity that hits :/
So I'd like to know if there's a way to get a real sword from an item mod adding some codes (I tried mixing up with a "tool sword", but if I do not get errors, I get again the normal tool sword with no poison effect).
If not, I'd like to know if there's the possibility to get an enchanted item "by default" (without the needing of a recipe)