'Weird textures on a sword i made for Minecraft 1.12.2

I have a problem with a sword i made for Minecraft 1.12.2, the sword appears in the tab and works well but the texture is not quite how i wanted (see the pic). I don't know what to do.

I am using the IDE IntelliJ IDEA and Java 1.8.0.

Here's the git repos : https://github.com/Akariiinnn/Mods-MC

IMAGE

PS: i am new to modding



Solution 1:[1]

The issue come from names.

  1. The model should be in models/items

  2. You should use textures/items as package name

  3. The layer0 should be sword:items/my_sword

Source, you can check more here

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Elikill58