Hello there, I am helping on the development of a new server and there are one thing that it's stopping me:
I am planning to make a CIT for the weapons, and while CIT works just fine on it's own, as soon as CrackShot detects the item as weapon, it just reloads standard texture. Is there a special procedure to take while doing this? I don't want to modify the standard texture to have the weapon because it would limit the user's capabilities, and certainly don't want to shoot with an iron horse armor.
So, any help on this would be greatly appreciated. Thank you for reading.
Nevermind, I found out why it wasn't working! See:
Item was 417, Iron Horse Armor. First thing I tried to catch was nbt.display.Name=&eWeapon Name, but that didn't work. So I thought that the color code had something to do, then I removed the colour, but it did not work neither.
So I thought 'Well, let's put Mending II to it and catch the CIT to that'. It didn't work (problem said above, when CrackShot detects the item, it loses the custom texture), and while I was cooking dinner I just thought 'What if CrackShot is removing the enchant?'. So, tried and effectively it was removing the enchant, therefore the condition needed to get the texture just wasn't there anymore.
So, what was my workaround then? I made MCPatcher catch the first line of Lore, without color code. Now it works like a charm, and while maybe it isn't the most optimal way to do it, at my stage of experience -say, I started 2 hours ago watching a tutorial on YouTube-, I will stick with it.
If anyone have a better solution I'll be glad to hear it, otherwise we can close this thread. Hopefully if someone else have this problem, this will help them.
Hello there, I am helping on the development of a new server and there are one thing that it's stopping me:
I am planning to make a CIT for the weapons, and while CIT works just fine on it's own, as soon as CrackShot detects the item as weapon, it just reloads standard texture. Is there a special procedure to take while doing this? I don't want to modify the standard texture to have the weapon because it would limit the user's capabilities, and certainly don't want to shoot with an iron horse armor.
So, any help on this would be greatly appreciated. Thank you for reading.
Nevermind, I found out why it wasn't working! See:
Item was 417, Iron Horse Armor. First thing I tried to catch was nbt.display.Name=&eWeapon Name, but that didn't work. So I thought that the color code had something to do, then I removed the colour, but it did not work neither.
So I thought 'Well, let's put Mending II to it and catch the CIT to that'. It didn't work (problem said above, when CrackShot detects the item, it loses the custom texture), and while I was cooking dinner I just thought 'What if CrackShot is removing the enchant?'. So, tried and effectively it was removing the enchant, therefore the condition needed to get the texture just wasn't there anymore.
So, what was my workaround then? I made MCPatcher catch the first line of Lore, without color code. Now it works like a charm, and while maybe it isn't the most optimal way to do it, at my stage of experience -say, I started 2 hours ago watching a tutorial on YouTube-, I will stick with it.
If anyone have a better solution I'll be glad to hear it, otherwise we can close this thread. Hopefully if someone else have this problem, this will help them.