Posted August 28, 201411 yr package untouchedwagons.minecraft.custom_mobs.renders; import net.minecraft.client.model.ModelBiped; import net.minecraft.client.renderer.entity.RenderLiving; import net.minecraft.entity.Entity; import net.minecraft.util.ResourceLocation; public class PlayerRender extends RenderLiving { private String player_name; public PlayerRender(String player_name) { super(new ModelBiped(), 0.5F); this.player_name = player_name; } @Override protected ResourceLocation getEntityTexture(Entity entity) { return new ResourceLocation("custom-mobs", "skins/" + this.player_name + ".png"); } } This works fine if the skin is from the previous system but the entities' textures are all messed up if the skin is using the new format. I like trains.
August 28, 201411 yr Make a new model. Check out my mod, Realms of Chaos, here. If I helped you, be sure to press the "Thank You" button!
August 29, 201411 yr Author Oh god I don't have the slightest clue what's involved with that. I like trains.
August 29, 201411 yr Look at ModelBiped and the other Model classes. You can use Techne to model it and generate the code. The main problem would be making all of the texture offsets match the new skin layout. Check out my mod, Realms of Chaos, here. If I helped you, be sure to press the "Thank You" button!
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.