Upon popular request I've decided to tell how I've been able to add items to the items-opaque.png.
Just a warning I suck at tutorials and I would wait for another person to explain it better.
So items.meta and the terrain.meta are basically maps of the terrain-atlas.tga and items-opaque.png
the terrain-atlas.tga; when converted to a .png is 512x256 and the items-opaque is 256x256
the parameters to add an items image to the meta is set up like this
{"uv":[startX,startY,endX,endY,imageXsize,imageYsize],"name":"Item Name","additonal_textures":[]}
Finding the coordinates:
when doing this you want to think about this very simple. the top left corner of the items-opaque.png is 0.0
every item on here have there own "box" made up of a 16x16 space. basic stuff. so the top left of the box is the starting points startX and startY, the bottom right of the box is the endX and the endY. each pf these coordinates will be a multiple of 16. so the golden apples coordinates are gonna be 16,0,32,16 startX is 16 from the edge, startY is 0 from the edge, endX is 32 from the edge, and endY is 16 from the edge. so the end values are gonna be 16 more than the start values. now just these coordinates cannot be put into items.meta because thats now how minecraft reads them. to make this format take the coordinate and divide by 256. for example golden apples coordinate is now 0.0625,0.0,0.125,0.0625 and this is acceptable to put into the items.meta.
so now to create my own texture name I would add {"uv":[0.0625,0.0,0.125,0.0625,256,256],"name":"custom_item","additonal_textures":[]}
but make sure before you add this to the items.meta make sure you add this line in the brackets [] of the .meta
this method could also be achievable in the terrain.meta but the x coordinates (startX, endX) would have to be divided by 512 because the image is 512 wide.
if this isn't made clear hopefully someone will understand it and make a better tutorial because I am terrible at making tutorials. hope this helps
Thanks sooooooo much, do you know how long i have wanted to know how to do this? I would give a thousand +1s if I could
Rollback Post to RevisionRollBack
Please give me an Internet. Please. Pretty Please with sprinkles on top
I have a twitter!! Follow me for regular updates on my mods! https://twitter.com/DamienMiller11
So how do we create a new texture? Or can we only edit previous textures that are already in items.meta? And where does the item get its texture from?
No its adding a completely texture. There is some space on the items_opaque.png
Rollback Post to RevisionRollBack
Please give me an Internet. Please. Pretty Please with sprinkles on top
I have a twitter!! Follow me for regular updates on my mods! https://twitter.com/DamienMiller11
The item from the items-opaque.png has a set of coordinates from the meta. The startX startY endX and endY which can be found by finding the pixel count from left or top edge of items-opaque and rounding to the nearest 16 so the first pixel on the edge is 0. Now after finding the pixel coordinates you have to divide the number by 256 to get the percentage coord. Which is the measurement the meta uses.
Just a warning I suck at tutorials and I would wait for another person to explain it better.
So items.meta and the terrain.meta are basically maps of the terrain-atlas.tga and items-opaque.png
the terrain-atlas.tga; when converted to a .png is 512x256 and the items-opaque is 256x256
the parameters to add an items image to the meta is set up like this
{"uv":[startX,startY,endX,endY,imageXsize,imageYsize],"name":"Item Name","additonal_textures":[]}
Finding the coordinates:
when doing this you want to think about this very simple. the top left corner of the items-opaque.png is 0.0
every item on here have there own "box" made up of a 16x16 space. basic stuff. so the top left of the box is the starting points startX and startY, the bottom right of the box is the endX and the endY. each pf these coordinates will be a multiple of 16. so the golden apples coordinates are gonna be 16,0,32,16 startX is 16 from the edge, startY is 0 from the edge, endX is 32 from the edge, and endY is 16 from the edge. so the end values are gonna be 16 more than the start values. now just these coordinates cannot be put into items.meta because thats now how minecraft reads them. to make this format take the coordinate and divide by 256. for example golden apples coordinate is now 0.0625,0.0,0.125,0.0625 and this is acceptable to put into the items.meta.
so now to create my own texture name I would add {"uv":[0.0625,0.0,0.125,0.0625,256,256],"name":"custom_item","additonal_textures":[]}
but make sure before you add this to the items.meta make sure you add this line in the brackets [] of the .meta
this method could also be achievable in the terrain.meta but the x coordinates (startX, endX) would have to be divided by 512 because the image is 512 wide.
if this isn't made clear hopefully someone will understand it and make a better tutorial because I am terrible at making tutorials. hope this helps
-Dark
Want Custom ModPE functions? Look here -> WolfyPE ModPE functions
Yup
Want Custom ModPE functions? Look here -> WolfyPE ModPE functions
I have a twitter!! Follow me for regular updates on my mods!
https://twitter.com/DamienMiller11
I've known how to do it since like Bl v1.6.8 but I didn't know exactly how tp explain it.
Want Custom ModPE functions? Look here -> WolfyPE ModPE functions
Want GUI Templates? Done!
https://github.com/BeATz-UnKNoWN/ModPE_Scripts/wiki/ModPE-Script-Templates
P.S. Feel free to follow me so you know when I post "awesome" content and make the MCForums a brighter place (totally).
If you need to contact me you can either shoot a Kik message to beatz_unknown or send an email to [email protected]
No its adding a completely texture. There is some space on the items_opaque.png
I have a twitter!! Follow me for regular updates on my mods!
https://twitter.com/DamienMiller11
To create a new texture we add this:
{"uv":[startX,startY,endX,endY,imageXsize,imageYsize],"name":"Item Name","additonal_textures":[]}
To the end of the items.meta.
You CAN edit previous textures if you chose to.
The item from the items-opaque.png has a set of coordinates from the meta. The startX startY endX and endY which can be found by finding the pixel count from left or top edge of items-opaque and rounding to the nearest 16 so the first pixel on the edge is 0. Now after finding the pixel coordinates you have to divide the number by 256 to get the percentage coord. Which is the measurement the meta uses.
Want Custom ModPE functions? Look here -> WolfyPE ModPE functions
http://bdcraft.net
http://bdcraft.net
There doesn't seem to be anything wrong with this. Is the image in the bottom right?
Want Custom ModPE functions? Look here -> WolfyPE ModPE functions
http://bdcraft.net
http://bdcraft.net
"additional_texture" is "additional_textures", you forgot the "s".
Game dev and Minecraft modder.
Twitter: @jv110br_
If someone can explain that, I will give you a +1!!!
", sans-serif">Want to get paid for uploading mods?
", sans-serif">Click here
For free Bitcoins, click here!
Sure, but it is now terrain-atlas.tga in 0.8.1+
Game dev and Minecraft modder.
Twitter: @jv110br_
But how would you do it?
Just replace the "item" with "block"?
Thanks!Oops forgot the +1...
There we go!
", sans-serif">Want to get paid for uploading mods?
", sans-serif">Click here
For free Bitcoins, click here!
Thanks!
", sans-serif">Want to get paid for uploading mods?
", sans-serif">Click here
For free Bitcoins, click here!