iLexiconn
Members-
Posts
20 -
Joined
-
Last visited
Converted
-
Gender
Undisclosed
-
URL
https://ilexiconn.net/
iLexiconn's Achievements
Tree Puncher (2/8)
2
Reputation
-
Here's my entry: https://ilexiconn.net/forge_logo_by_ilexiconn.zip EDIT: Just changed the font to one that's free for commercial use
-
I'm making a basic tile entity, but when I shift-click my item in the container, I get this crash: http://pastebin.com/Ugd392v3 Can someone help me fixing it?
-
I try to make (like the furnace) a changing front texture when used, But when I use this code is the block class: http://pastebin.com/NbEG3kwD And call it like so (in the tileentity): http://pastebin.com/ysC45QXK The item flops out of the container and leaves a ghost item, you can't drop it, place it, nothing. Can someone help me with this problem, please?
-
[Solved] [1.7.2 - 10.12.0.1056] GUI Rendering Dark...
iLexiconn replied to iLexiconn's topic in Modder Support
Thank you! It works now -
[Solved] [1.7.2 - 10.12.0.1056] GUI Rendering Dark...
iLexiconn replied to iLexiconn's topic in Modder Support
http://puu.sh/86G90.png -
[Solved] [1.7.2 - 10.12.0.1056] GUI Rendering Dark...
iLexiconn replied to iLexiconn's topic in Modder Support
Oops sorry I mean 56, I can't use 57 (It gives me a crash...) -
I'm creating a basic furnace-like block, but when I open the GUI i see this... http://puu.sh/86G90.png (Too dark) My GUI texture is just like the otger GUI textures... http://puu.sh/85Y4F.png Here's the "GuiEgg" class: http://pastebin.com/G093BNn9 Can someone help me, Please?
-
This is the video about it: https://www.youtube.com/watch?v=voGryK214-4 And here is the code: BasicEggBlock.java - http://pastebin.com/NNfAUReu BasicBlockRenderer.java - http://pastebin.com/6URs4sFD BasicTileEntity.java - http://pastebin.com/5MfB2NL7 mode.render() - http://pastebin.com/qGB6ckbe I'd register the block, tile entity, and the renderer. Please help me out with this problem
-
Go to the run configurations and go to the program arguments of the client, what do you have there?
-
Change textureWidth = 64; textureHeight = 32; to textureWidth = 128; textureHeight = 64; ?
-
The probelem is fixed! Thanks for all the help!
-
Still not fixed
-
1. didn't work 2. That's for 1.6, not for 1.7 3. Yep Can you help me with that too?
-
I'm making an basic item with a 3d render, But I can't find my item in the creative tab and the texture doesn't work. Here is the code: Item-Define-Class wolveMask = new ItemWolveMask().setUnlocalizedName("wolveMask").setCreativeTab(CreativeTabs.tabMisc).setTextureName(Reference.modid + ":wolveMask"); GameRegistry.registerItem(wolveMask, "wolveMask"); Item class: public class ItemWolveMask extends Item { public ItemWolveMask() { super(); } } Client proxy: MinecraftForgeClient.registerItemRenderer(Items.wolveMask, (IItemRenderer)new RenderWolveMask()); Render class: package ilexiconn.ownagenetwork.item.render; import ilexiconn.ownagenetwork.item.model.ModelWolveMask; import ilexiconn.ownagenetwork.reference.Reference; import org.lwjgl.opengl.GL11; import net.minecraft.client.Minecraft; import net.minecraft.client.gui.inventory.GuiContainerCreative; import net.minecraft.client.gui.inventory.GuiInventory; import net.minecraft.client.renderer.entity.RenderManager; import net.minecraft.entity.Entity; import net.minecraft.entity.player.EntityPlayer; import net.minecraft.item.ItemStack; import net.minecraft.util.ResourceLocation; import net.minecraftforge.client.IItemRenderer; public class RenderWolveMask implements IItemRenderer { protected ModelWolveMask wolveMask; boolean isFirstPerson = false; public RenderWolveMask() { wolveMask = new ModelWolveMask(); } @Override public boolean handleRenderType(ItemStack item, ItemRenderType type) { switch (type) { case EQUIPPED: return true; case EQUIPPED_FIRST_PERSON: return true; default: return false; } } public boolean shouldUseRenderHelper(ItemRenderType type, ItemStack item, ItemRendererHelper helper) { return false; } public void renderItem(ItemRenderType type, ItemStack item, Object... data) { switch (type) { case EQUIPPED: { Minecraft.getMinecraft().renderEngine.bindTexture(new ResourceLocation(Reference.modid + ":WolveMask_1.png")); GL11.glPushMatrix(); GL11.glRotatef(10, 1, 0, 0); GL11.glRotatef(180, 0, 1, 0); GL11.glRotatef(70, 0, 0, 1); boolean IsFirstPerson = false; if (data[1] != null && data[1] instanceof EntityPlayer) { if (!((EntityPlayer) data[1] == Minecraft.getMinecraft().renderViewEntity && Minecraft.getMinecraft().gameSettings.thirdPersonView == 1 && !((Minecraft.getMinecraft().currentScreen instanceof GuiInventory || Minecraft.getMinecraft().currentScreen instanceof GuiContainerCreative) && RenderManager.instance.playerViewY == 180.0F))) { GL11.glTranslatef(0.2F, 0.4F, 0.025F); } else { IsFirstPerson = true; GL11.glTranslatef(0.2F, 0.4F, 0.025F); } } else { GL11.glTranslatef(0F, 0F, 0F); } wolveMask.render((Entity) data[1], 0.0F, 0.0F, 0.0F, 0.0F, 0.0F, 0.0625F); GL11.glPopMatrix(); } break; case EQUIPPED_FIRST_PERSON: { Minecraft.getMinecraft().renderEngine.bindTexture(new ResourceLocation(Reference.modid + ":WolveMask_1.png")); GL11.glPushMatrix(); GL11.glRotatef(10, 1, 0, 0); GL11.glRotatef(180, 0, 1, 0); GL11.glRotatef(155, 0, 0, 1); boolean IsFirstPerson = false; if (data[1] != null && data[1] instanceof EntityPlayer) { if (!((EntityPlayer) data[1] == Minecraft.getMinecraft().renderViewEntity && Minecraft.getMinecraft().gameSettings.thirdPersonView == 0 && !((Minecraft.getMinecraft().currentScreen instanceof GuiInventory || Minecraft.getMinecraft().currentScreen instanceof GuiContainerCreative) && RenderManager.instance.playerViewY == 180.0F))) { GL11.glTranslatef(0.7F, 1F, 0F); } else { IsFirstPerson = true; GL11.glTranslatef(0.5F, 0.1F, 0.0F); } } else { GL11.glTranslatef(0F, 0.2F, 0F); } wolveMask.render((Entity) data[1], 0.0F, 0.0F, 0.0F, 0.0F, 0.0F, 0.0625F); GL11.glPopMatrix(); } break; default: break; } } } Model class: package ilexiconn.ownagenetwork.item.model; import net.minecraft.client.model.ModelBase; import net.minecraft.client.model.ModelRenderer; import net.minecraft.entity.Entity; public class ModelWolveMask extends ModelBase { public ModelRenderer maskFront1; public ModelRenderer maskFront2; public ModelRenderer maskFront3; public ModelRenderer maskFront4; public ModelRenderer maskFront5; public ModelRenderer maskEar1; public ModelRenderer maskEar2; public ModelRenderer rope1; public ModelRenderer rope2; public ModelRenderer rope3; public ModelWolveMask() { textureWidth = 64; textureHeight = 32; maskFront1 = new ModelRenderer(this, 0, 0); maskFront1.addBox(-5F, -4F, -5F, 10, 4, 1); maskFront1.setRotationPoint(0F, 0F, 0F); maskFront1.setTextureSize(64, 32); maskFront1.mirror = true; setRotation(maskFront1, 0F, 0F, 0F); maskFront2 = new ModelRenderer(this, 22, 0); maskFront2.addBox(-5F, -5F, -5F, 2, 1, 1); maskFront2.setRotationPoint(0F, 0F, 0F); maskFront2.setTextureSize(64, 32); maskFront2.mirror = true; setRotation(maskFront2, 0F, 0F, 0F); maskFront3 = new ModelRenderer(this, 34, 0); maskFront3.addBox(3F, -5F, -5F, 2, 1, 1); maskFront3.setRotationPoint(0F, 0F, 0F); maskFront3.setTextureSize(64, 32); maskFront3.mirror = true; setRotation(maskFront3, 0F, 0F, 0F); maskFront4 = new ModelRenderer(this, 28, 0); maskFront4.addBox(-1F, -5F, -5F, 2, 1, 1); maskFront4.setRotationPoint(0F, 0F, 0F); maskFront4.setTextureSize(64, 32); maskFront4.mirror = true; setRotation(maskFront4, 0F, 0F, 0F); maskFront5 = new ModelRenderer(this, 40, 0); maskFront5.addBox(-5F, -6F, -5F, 10, 1, 1); maskFront5.setRotationPoint(0F, 0F, 0F); maskFront5.setTextureSize(64, 32); maskFront5.mirror = true; setRotation(maskFront5, 0F, 0F, 0F); maskEar1 = new ModelRenderer(this, 22, 2); maskEar1.addBox(-3F, -8F, -5F, 2, 2, 1); maskEar1.setRotationPoint(0F, 0F, 0F); maskEar1.setTextureSize(64, 32); maskEar1.mirror = true; setRotation(maskEar1, 0F, 0F, 0F); maskEar2 = new ModelRenderer(this, 28, 2); maskEar2.addBox(1F, -8F, -5F, 2, 2, 1); maskEar2.setRotationPoint(0F, 0F, 0F); maskEar2.setTextureSize(64, 32); maskEar2.mirror = true; setRotation(maskEar2, 0F, 0F, 0F); rope1 = new ModelRenderer(this, 0, 23); rope1.addBox(4F, -4F, -4F, 1, 1, ; rope1.setRotationPoint(0F, 0F, 0F); rope1.setTextureSize(64, 32); rope1.mirror = true; setRotation(rope1, 0F, 0F, 0F); rope2 = new ModelRenderer(this, 0, 23); rope2.addBox(-5F, -4F, -4F, 1, 1, ; rope2.setRotationPoint(0F, 0F, 0F); rope2.setTextureSize(64, 32); rope2.mirror = true; setRotation(rope2, 0F, 0F, 0F); rope3 = new ModelRenderer(this, 18, 30); rope3.addBox(-5F, 0F, 0F, 10, 1, 1); rope3.setRotationPoint(0F, -4F, 4F); rope3.setTextureSize(64, 32); rope3.mirror = true; setRotation(rope3, 0F, 0F, 0F); } public void render(Entity entity, float f, float f1, float f2, float f3, float f4, float f5) { super.render(entity, f, f1, f2, f3, f4, f5); setRotationAngles(f, f1, f2, f3, f4, f5, entity); maskFront1.render(f5); maskFront2.render(f5); maskFront3.render(f5); maskFront4.render(f5); maskFront5.render(f5); maskEar1.render(f5); maskEar2.render(f5); rope1.render(f5); rope2.render(f5); rope3.render(f5); } private void setRotation(ModelRenderer model, float x, float y, float z) { model.rotateAngleX = x; model.rotateAngleY = y; model.rotateAngleZ = z; } }
-
Still not fixed ;(