So i made some gun skins for an already existing resource pack (https://www.planetminecraft.com/texture_pack/crackshot-guns/ to be exact) and some parts of it are missing eg. underbarrel and some pixels on top are missing when i try to replace the texture for python. Any help with this?
The Meaning of Life, the Universe, and Everything.
Join Date:
5/29/2013
Posts:
449
Member Details
You haven't given us much to work with but that pack looks like it uses 2D item models rather than 3D models for its guns so if you have missing parts of the texture on the top and bottom (which should just be the end pixel colors stretched to the thickness of the item display criteria) then it's most likely a problem with having partially transparent pixels along the edge of your image. I usually copy my image and paste it over itself a bunch of times to see if anything shows up, then delete the what I don't want there but there are plenty of ways to find and eliminate your pixels if that's the problem.
More information would help us to provide better help. Screenshots? Any errors in your log? The more detail you provide the more likely you are to receive quality assistance.
I usually just select all the pixels that I want to use in the texture and then put the selector tool on xor and select the whole picture, while unselecting what I selected the previous step and push it out of the canvas.
The Meaning of Life, the Universe, and Everything.
Join Date:
5/29/2013
Posts:
449
Member Details
I looked a little deeper into the model being used and I couldn't believe what I found: for some inexplicable they aren't using a simple flat item model but instead have a fairly complex model designed to look like a simpler model. There isn't really and easy solution to this, if I were personally doing it I would probably toss out the whole pack except for the textures and make new models that work the same way that swords, pickaxes and most other handheld items work in the game. If you look at the model music_disc_cat.json (the one that uses the texture wooden_hoe4) that I loaded into blockbench we can see what the actual model looks like and we can be certain that your missing pixels are caused by the fact that area of the texture isn't being used for the model.
This can be fixed, and all in all it wouldn't be a terribly difficult fix if you know how to model items, however it's a good bit of work that would require a thorough understanding of pretty much all the basics of modeling. If you could provide some details of exactly what you are hoping to accomplish with this resource pack and these gun textures I could probably help you develop a more custom pack, something simpler and with assets you could more easily alter, however I'd need to understand exactly how you want it to work since there are quite a few ways to add alternate textures these days and these just seem like simple music disc model replacements. I'll play around with the pack and the model you've been using right now to see if I can get an example for you. Let me know what you're thinking.
Yeah, me and my friend tried to make a pvp server with some custom crackshot guns, but i did try to make a custom texture pack, even tried to edit already existing ones but nothing worked no textures showed up (to be fair i only edited faithful)
The Meaning of Life, the Universe, and Everything.
Join Date:
5/29/2013
Posts:
449
Member Details
It would certainly be an interesting project. Sadly this pack definitely wasn't designed to be manipulated by the user which is why you are having the problems you are. I know I can make the images use full flat files like swords do, and if I do it right it should only take a few basic models, which you could then alter or expand but making the resources alone won't make them very useful. I can replace all the music discs with custom models like this pack's author did but that will only really make discs that always look like guns, nothing functional and you lose the music disc texture.
The 2 easiest/best ways to add guns as alternative textures would be to use custom_model_data to apply it to any item (like the music discs) so that the texture only exists when that item disc is summoned by a command with the proper model data tag. Doing this would let you have normal looking music discs with the custom textures only being accessible via commands- still not a functional item. The 2nd way would be to use a custom damage value along with the unbreakable tag to add the texture to an item with durability, I would suggest the crossbow for reasons I feel would be obvious considering the usage for guns. Doing it this way would leave all your default textures vanilla however summoning a crossbow with the correct damage value and the unbreakable tag would make it the corresponding gun with the added benefit of this gun being able to fire. The latter would probably be the best method for you since those summoned crossbows, with the right commands, could have a number of modified attributes making them behave wildly different from one another.
Depending on if you mod your server or use pure vanilla ()no clue how you want to add guns to your pvp server) will determine how your textures are added. Vanilla guns are all about texture masking and modifying attributes with commands but if you have a plugin to handle guns and ammo then the key to new guns would be to modify the modded assets rather than any vanilla files. There are also ways to add the textures using Optifine's CIT which expands beyond anything we've talked about so far and probably isn't worth going over unless you want something to happen that vanilla can't do for you and isn't an option of any other mod you may be using.
Since you got my brain all worked up thinking about this I am going to re-do this pack in such a way that it uses only flat files and applies its textures to the crossbow depending upon the damage value and unbreaking tag... or maybe I'll try custom model data so they still have durability... I'm not sure, that's what's exciting about it. I've used custom model data, damage value predicates and converted complex models to flat files before so I feel pretty confident about it but I'd still expect a good day or 2 before I have a working pack I can upload and explain to you how to use and alter it. If nothing else I'll at least have another useful example pack in case I want to do something like this for myself again later. Let me know if you were looking for something different than what I just described and I'll tweak the pack to work the way you're hoping it will (as long as the game permits).
Another question though, i made a new texture pack, done pack.mcmeta and edited the assets folder so that it has my new textures, but its not showing up in the resource pack selection menu, did i have to do anything more or is it just weird that its not working and by the way we are using crackshot plugin for the guns.
When you go to the encode tab, you should see it set to UTF-8 without BOM, if it is not set to it, it will have a BOM in it and makes Minecraft unable to read the file due to an invisible letter.
Update: i made it work but none of textures changed everything is vanilla minecraft textures
More detail would be helpful in us assisting you. Switching some basic assets is a pretty straightforward job and as long as everything is in the right directory and has the right name there are few reasons why it wouldn't change in game. If you could provide and upload of the pack we could see what you're working with and where you went wrong but without that it would just be blind guessing. If you want to make sure everything is in the right you can go into your .minecraft/versions folder and unpack the .jar of whatever version you are working with, using winRAR or a similar archiver, to make sure all of your names and files are the same as the vanilla assets. I could help more if I had your pack to look at but that's about the best advice I can give without more info. What exactly are you trying to do with this pack? Are you using your own work or trying to use parts of other packs? The more we know the more we can help.
On an unrelated note, I'm pretty happy with how my little gun pack is turning out. I have your python texture working, the one rifle in as well as the RPG however I stopped there since my concept is pretty well proven at this point and I don't really have a need for the pack at the moment so I'll probably shelve it for the time being rather than playing around with adding custom sounds and finding commands to make the weapons behave differently from each other. In case you want to see what I've done and use it for your own purposes here is a download: http://www.mediafire.com/file/r2srj4j9sca1p27/Guns.zip/file Inside the zip file there is a ReadMe.png that explains how to add more guns to the pack since that seemed to be what you were trying to do in the first place. Hope you enjoy it, it was definitely an interesting project. (Keep in mind you will not see any changes in game after loading this pack, you must summon the custom items: instructions are in the ReadMe)
So i made some gun skins for an already existing resource pack (https://www.planetminecraft.com/texture_pack/crackshot-guns/ to be exact) and some parts of it are missing eg. underbarrel and some pixels on top are missing when i try to replace the texture for python. Any help with this?
You haven't given us much to work with but that pack looks like it uses 2D item models rather than 3D models for its guns so if you have missing parts of the texture on the top and bottom (which should just be the end pixel colors stretched to the thickness of the item display criteria) then it's most likely a problem with having partially transparent pixels along the edge of your image. I usually copy my image and paste it over itself a bunch of times to see if anything shows up, then delete the what I don't want there but there are plenty of ways to find and eliminate your pixels if that's the problem.
More information would help us to provide better help. Screenshots? Any errors in your log? The more detail you provide the more likely you are to receive quality assistance.
I usually just select all the pixels that I want to use in the texture and then put the selector tool on xor and select the whole picture, while unselecting what I selected the previous step and push it out of the canvas.
Done with paint.net btw.
Meow~
#F5F8FB
KittenKatja ♥
I can give you a file of the texture vs the in game screenshot if that helps. And is there a tutorial to fix this kind of stuff models?
I looked a little deeper into the model being used and I couldn't believe what I found: for some inexplicable they aren't using a simple flat item model but instead have a fairly complex model designed to look like a simpler model. There isn't really and easy solution to this, if I were personally doing it I would probably toss out the whole pack except for the textures and make new models that work the same way that swords, pickaxes and most other handheld items work in the game. If you look at the model music_disc_cat.json (the one that uses the texture wooden_hoe4) that I loaded into blockbench we can see what the actual model looks like and we can be certain that your missing pixels are caused by the fact that area of the texture isn't being used for the model.
This can be fixed, and all in all it wouldn't be a terribly difficult fix if you know how to model items, however it's a good bit of work that would require a thorough understanding of pretty much all the basics of modeling. If you could provide some details of exactly what you are hoping to accomplish with this resource pack and these gun textures I could probably help you develop a more custom pack, something simpler and with assets you could more easily alter, however I'd need to understand exactly how you want it to work since there are quite a few ways to add alternate textures these days and these just seem like simple music disc model replacements. I'll play around with the pack and the model you've been using right now to see if I can get an example for you. Let me know what you're thinking.
Yeah, me and my friend tried to make a pvp server with some custom crackshot guns, but i did try to make a custom texture pack, even tried to edit already existing ones but nothing worked no textures showed up (to be fair i only edited faithful)
It would certainly be an interesting project. Sadly this pack definitely wasn't designed to be manipulated by the user which is why you are having the problems you are. I know I can make the images use full flat files like swords do, and if I do it right it should only take a few basic models, which you could then alter or expand but making the resources alone won't make them very useful. I can replace all the music discs with custom models like this pack's author did but that will only really make discs that always look like guns, nothing functional and you lose the music disc texture.
The 2 easiest/best ways to add guns as alternative textures would be to use custom_model_data to apply it to any item (like the music discs) so that the texture only exists when that item disc is summoned by a command with the proper model data tag. Doing this would let you have normal looking music discs with the custom textures only being accessible via commands- still not a functional item. The 2nd way would be to use a custom damage value along with the unbreakable tag to add the texture to an item with durability, I would suggest the crossbow for reasons I feel would be obvious considering the usage for guns. Doing it this way would leave all your default textures vanilla however summoning a crossbow with the correct damage value and the unbreakable tag would make it the corresponding gun with the added benefit of this gun being able to fire. The latter would probably be the best method for you since those summoned crossbows, with the right commands, could have a number of modified attributes making them behave wildly different from one another.
Depending on if you mod your server or use pure vanilla ()no clue how you want to add guns to your pvp server) will determine how your textures are added. Vanilla guns are all about texture masking and modifying attributes with commands but if you have a plugin to handle guns and ammo then the key to new guns would be to modify the modded assets rather than any vanilla files. There are also ways to add the textures using Optifine's CIT which expands beyond anything we've talked about so far and probably isn't worth going over unless you want something to happen that vanilla can't do for you and isn't an option of any other mod you may be using.
Since you got my brain all worked up thinking about this I am going to re-do this pack in such a way that it uses only flat files and applies its textures to the crossbow depending upon the damage value and unbreaking tag... or maybe I'll try custom model data so they still have durability... I'm not sure, that's what's exciting about it. I've used custom model data, damage value predicates and converted complex models to flat files before so I feel pretty confident about it but I'd still expect a good day or 2 before I have a working pack I can upload and explain to you how to use and alter it. If nothing else I'll at least have another useful example pack in case I want to do something like this for myself again later. Let me know if you were looking for something different than what I just described and I'll tweak the pack to work the way you're hoping it will (as long as the game permits).
Another question though, i made a new texture pack, done pack.mcmeta and edited the assets folder so that it has my new textures, but its not showing up in the resource pack selection menu, did i have to do anything more or is it just weird that its not working and by the way we are using crackshot plugin for the guns.
When you go to the encode tab, you should see it set to UTF-8 without BOM, if it is not set to it, it will have a BOM in it and makes Minecraft unable to read the file due to an invisible letter.
Meow~
#F5F8FB
KittenKatja ♥
It was on UTF-8 without bom already
Update: i made it work but none of textures changed everything is vanilla minecraft textures
More detail would be helpful in us assisting you. Switching some basic assets is a pretty straightforward job and as long as everything is in the right directory and has the right name there are few reasons why it wouldn't change in game. If you could provide and upload of the pack we could see what you're working with and where you went wrong but without that it would just be blind guessing. If you want to make sure everything is in the right you can go into your .minecraft/versions folder and unpack the .jar of whatever version you are working with, using winRAR or a similar archiver, to make sure all of your names and files are the same as the vanilla assets. I could help more if I had your pack to look at but that's about the best advice I can give without more info. What exactly are you trying to do with this pack? Are you using your own work or trying to use parts of other packs? The more we know the more we can help.
On an unrelated note, I'm pretty happy with how my little gun pack is turning out. I have your python texture working, the one rifle in as well as the RPG however I stopped there since my concept is pretty well proven at this point and I don't really have a need for the pack at the moment so I'll probably shelve it for the time being rather than playing around with adding custom sounds and finding commands to make the weapons behave differently from each other. In case you want to see what I've done and use it for your own purposes here is a download: http://www.mediafire.com/file/r2srj4j9sca1p27/Guns.zip/file Inside the zip file there is a ReadMe.png that explains how to add more guns to the pack since that seemed to be what you were trying to do in the first place. Hope you enjoy it, it was definitely an interesting project. (Keep in mind you will not see any changes in game after loading this pack, you must summon the custom items: instructions are in the ReadMe)
Thanks!