Oh no, now i have to render armors. Who know where i have to render armors ?
0ddlyoko
please mind that everything i say might be outdated (state: 1.7.10).
armor is a bit different - on the one hand, you will need to provide the textures used for ingame rendering (if its being worn) and the textures for the inventory. i will referr to them as "first" and "second" type of textures.
for the first type of textures, you will have to define this yourself. for example, in my GemArmor class, i would use
and then use the files sapphire_1.png and sapphire_2,png in /src/resources/modname/textures/armor. (they look like this: http://i.imgur.com/nm7sCxy.png )
the second type of textures is handled exactly like any item texture: you register your item and then put the texture in /src/resources/modname/textures/items (1.7.10, in 1.10 you will need to mess around with models you will never use, but whatever).
Quote from oddlyoko>>
i've just to add all items and blocks into net.minecraft.client.rendered.RenderItem.java.
could you explain this a bit further please, i dont get it o.o
Hello world, i have a problem.
I'm actually doing a private mod without forge, so with mcp for minecraft 1.10.
I've created blocks, items, and all works. But item's textures are missed.
You can see here: http://prntscr.com/e3ijg1
When i put block on the world, texture are ok: http://prntscr.com/e3iju0, but not items.
Same for armors: http://prntscr.com/e3ik4s
I have put textures into jars/versions/1.10/1.10.jar's file.
.png files into asset/minecraft/textures/items, and .json files into asset/minecraft/models/item
this is my rubis.json file:
{ "parent": "item/generated", "textures": { "layer0": "items/rubis" } }it's the same that diamond.json, except name.
No error on log.
http://prnt.sc/e3inmg
http://prntscr.com/e3inz7
-
View User Profile
-
View Posts
-
Send Message
Curse Premiumi'm pretty sure i had the same porblem once (with forge), but eventually gave up on it. please keep me posted if you manage to solve it
i don't know where is the problem. There are not tuto for mcp 1.8/1.9/1.10.
If anyone know a tutorial for mcp, can you give me the link plz?
Thanks
Sorry if my english is bad
http://prntscr.com/e3of93
Ok, problem found, i've just to add all items and blocks into net.minecraft.client.rendered.RenderItem.java.
I love Minecraft <3 haha
Oh no, now i have to render armors. Who know where i have to render armors ?
0ddlyoko
-
View User Profile
-
View Posts
-
Send Message
Curse Premiumplease mind that everything i say might be outdated (state: 1.7.10).
armor is a bit different - on the one hand, you will need to provide the textures used for ingame rendering (if its being worn) and the textures for the inventory. i will referr to them as "first" and "second" type of textures.
for the first type of textures, you will have to define this yourself. for example, in my GemArmor class, i would use
public String getArmorTexture(ItemStack stack, Entity entity, int slot, String type) { return Main.MODID + ":textures/armor/" + this.textureName + "_" + (this.armorType == 2 ? "2" : "1") + ".png"; }and then use the files sapphire_1.png and sapphire_2,png in /src/resources/modname/textures/armor. (they look like this: http://i.imgur.com/nm7sCxy.png )
the second type of textures is handled exactly like any item texture: you register your item and then put the texture in /src/resources/modname/textures/items (1.7.10, in 1.10 you will need to mess around with models you will never use, but whatever).
could you explain this a bit further please, i dont get it o.o
yes thanks for your help but i don't would use forge, i would create mods directly inside of Minecraft
Ok found, it's into net.minecraft.client.renderer.entity.layers.LayerArmorBase.java