now im getting these errors dont know how to fix them
This. is my render tile entity Class:
package mods.Crownified.SSBB.Block;
import net.minecraft.block.Block;
import net.minecraft.client.renderer.OpenGlHelper;
import net.minecraft.client.renderer.Tessellator;
import net.minecraft.client.renderer.tileentity.TileEntitySpecialRenderer;
import net.minecraft.entity.Entity;
import net.minecraft.tileentity.TileEntity;
import net.minecraft.util.ResourceLocation;
import net.minecraft.world.IBlockAccess;
import net.minecraft.world.World;
import org.lwjgl.opengl.GL11;
public class RenderTileEntityTrophyStand extends TileEntitySpecialRenderer{
//This method is called when minecraft renders a tile entity
public void renderTileEntityAt(TileEntity tileEntity, double d, double d1, double d2, float f) {
GL11.glPushMatrix();
//This will move our renderer so that it will be on proper place in the world
GL11.glTranslatef((float)d, (float)d1, (float)d2);
TileEntityTrophyStand tileEntityYour = (TileEntityBlockZRail)tileEntity; /*error here
/*Note that true tile entity coordinates (tileEntity.xCoord, etc) do not match to render coordinates (d, etc) that are calculated as [true coordinates] - [player coordinates (camera coordinates)]*/
renderBlockRail(tileEntityYour, tileEntity.worldObj, tileEntity.xCoord, tileEntity.yCoord, tileEntity.zCoord, CrownedSSBB.TrophyStand);
GL11.glPopMatrix();
}
//And this method actually renders your tile entity
public void renderBlockYour(TileEntityTrophyStand tl, World world, int i, int j, int k, Block block) {
Tessellator tessellator = Tessellator.instance;
//This will make your block brightness dependent from surroundings lighting.
float f = block.getBlockBrightness(world, i, j, k);
int l = world.getLightBrightnessForSkyBlocks(i, j, k, 0);
int l1 = l % 65536;
int l2 = l / 65536;
tessellator.setColorOpaque_F(f, f, f);
OpenGlHelper.setLightmapTextureCoords(OpenGlHelper.lightmapTexUnit, (float)l1, (float)l2);
/*This will rotate your model corresponding to player direction that was when you placed the block. If you want this to work,
add these lines to onBlockPlacedBy method in your block class.
int dir = MathHelper.floor_double((double)((player.rotationYaw * 4F) / 360F) + 0.5D) & 3;
world.setBlockMetadataWithNotify(x, y, z, dir, 0);*/
int dir = world.getBlockMetadata(i, j, k);
GL11.glPushMatrix();
GL11.glTranslatef(0.5F, 0, 0.5F);
//This line actually rotates the renderer.
GL11.glRotatef(dir * (-90F), 0F, 1F, 0F);
GL11.glTranslatef(-0.5F, 0, -0.5F);
func_110628_a(new ResourceLocation("youtTexturePath"));
this.model.render((Entity)null, 0.0F, 0.0F, -0.1F, 0.0F, 0.0F, 0.0625F);
// ^ error at model
GL11.glPopMatrix();
}
}
my main class:
package mods.Crownified.SSBB.common;
import mods.Crownified.SSBB.Block.BlocksmashOre;
import mods.Crownified.SSBB.Block.BlockwoodenCrate;
import mods.Crownified.SSBB.Block.RenderTileEntityTrophyStand;
import net.minecraft.block.Block;
import net.minecraft.block.material.Material;
import cpw.mods.fml.client.registry.ClientRegistry;
import cpw.mods.fml.common.Mod;
import cpw.mods.fml.common.registry.GameRegistry;
import cpw.mods.fml.common.registry.LanguageRegistry;
@Mod(modid = "CrownedSSBB" , name = "Super Smash Bros. Brawl Mod", version = "0.1 Alpha")
public class SSBBCore {
public static Block smashOre = new BlocksmashOre(1000, Material.rock).setUnlocalizedName("BlocksmashOre");
public static Block woodenCrate = new BlockwoodenCrate(1001, Material.wood).setUnlocalizedName("BlockwoodenCrate");
public SSBBCore()
{
GameRegistry.registerBlock(smashOre, "smashOre");
LanguageRegistry.addName(smashOre, "Smash Ore");
GameRegistry.registerBlock(woodenCrate, "woodenCrate");
LanguageRegistry.addName(woodenCrate, "Wooden Crate");
ClientRegistry.bindTileEntitySpecialRenderer(SSBB.TileEntityTrophyStand.class, new RenderTileEntityTrophyStand());
// ^ ^ error
}
}
my tile entity class
package mods.Crownified.SSBB.Block;
import net.minecraft.nbt.NBTTagCompound;
import net.minecraft.network.INetworkManager;
import net.minecraft.network.packet.Packet;
import net.minecraft.network.packet.Packet132TileEntityData;
import net.minecraft.tileentity.TileEntity;
import net.minecraft.world.World;
public class TileEntityTrophyStand extends TileEntity{
@Override
public void writeToNBT(NBTTagCompound par1)
{
super.writeToNBT(par1);
}
@Override
public void readFromNBT(NBTTagCompound par1)
{
super.readFromNBT(par1);
}
public Packet getDescriptionPacket() {
NBTTagCompound nbtTag = new NBTTagCompound();
this.writeToNBT(nbtTag);
return new Packet132TileEntityData(this.xCoord, this.yCoord, this.zCoord, 1, nbtTag);
}
public void onDataPacket(INetworkManager net, Packet132TileEntityData packet) {
readFromNBT(packet.customParam1);
}
}
It worked for me, idk if it'll work for you, and i did this in 1.5.2
I dont know what folder to label for the location of the texture. My texture is located here:
C:\Users\Crownifed\Desktop\MiracleCraft\src\minecraft\mods\MiracleCraft\textures\blocks
2013-04-29 20:56:04 [INFO] [STDERR] java.lang.NoSuchFieldException: GL_ARB_copy_image
2013-04-29 20:56:04 [INFO] [STDERR] at java.lang.Class.getField(Unknown Source)
2013-04-29 20:56:04 [INFO] [STDERR] at cpw.mods.fml.client.TextureFXManager.getHelper(TextureFXManager.java:122)
2013-04-29 20:56:04 [INFO] [STDERR] at net.minecraft.client.renderer.texture.TextureStitched.init(TextureStitched.java:74)
2013-04-29 20:56:04 [INFO] [STDERR] at net.minecraft.client.renderer.texture.TextureMap.refreshTextures(TextureMap.java:154)
2013-04-29 20:56:04 [INFO] [STDERR] at net.minecraft.client.renderer.RenderEngine.refreshTextureMaps(RenderEngine.java:520)
2013-04-29 20:56:04 [INFO] [STDERR] at net.minecraft.client.Minecraft.startGame(Minecraft.java:440)
2013-04-29 20:56:04 [INFO] [STDERR] at net.minecraft.client.MinecraftAppletImpl.startGame(MinecraftAppletImpl.java:44)
2013-04-29 20:56:04 [INFO] [STDERR] at net.minecraft.client.Minecraft.run(Minecraft.java:729)
2013-04-29 20:56:04 [INFO] [STDERR] at java.lang.Thread.run(Unknown Source)
2013-04-29 20:56:04 [INFO] [ForgeModLoader] Forge Mod Loader has detected an older LWJGL version, new advanced texture animation features are disabled
2013-04-29 20:56:04 [INFO] [ForgeModLoader] Not using advanced OpenGL 4.3 advanced capability for animations : OpenGL 4.3 is not available
if you are willing to switch from DW20 pack to mindcrack pack (both packs are on same versions) you can pm me and i can see if i can get you whitelisted on a server i use ... could use someone being online more often
I don't like the gregtech in Mindcrack thats why I don't use it. But thanks for the offer
0
My block will be called Shrunken Home
0
0
0
This. is my render tile entity Class:
my main class:
my tile entity class
finally my model class:
0
This is my model class
and this is my main class
0
I dont know what folder to label for the location of the texture. My texture is located here:
C:\Users\Crownifed\Desktop\MiracleCraft\src\minecraft\mods\MiracleCraft\textures\blocks
0
But how do I upgrade the LWJGL? Do i force update? I already updated eclipse
0
2013-04-29 20:56:04 [INFO] [STDERR] java.lang.NoSuchFieldException: GL_ARB_copy_image
2013-04-29 20:56:04 [INFO] [STDERR] at java.lang.Class.getField(Unknown Source)
2013-04-29 20:56:04 [INFO] [STDERR] at cpw.mods.fml.client.TextureFXManager.getHelper(TextureFXManager.java:122)
2013-04-29 20:56:04 [INFO] [STDERR] at net.minecraft.client.renderer.texture.TextureStitched.init(TextureStitched.java:74)
2013-04-29 20:56:04 [INFO] [STDERR] at net.minecraft.client.renderer.texture.TextureMap.refreshTextures(TextureMap.java:154)
2013-04-29 20:56:04 [INFO] [STDERR] at net.minecraft.client.renderer.RenderEngine.refreshTextureMaps(RenderEngine.java:520)
2013-04-29 20:56:04 [INFO] [STDERR] at net.minecraft.client.Minecraft.startGame(Minecraft.java:440)
2013-04-29 20:56:04 [INFO] [STDERR] at net.minecraft.client.MinecraftAppletImpl.startGame(MinecraftAppletImpl.java:44)
2013-04-29 20:56:04 [INFO] [STDERR] at net.minecraft.client.Minecraft.run(Minecraft.java:729)
2013-04-29 20:56:04 [INFO] [STDERR] at java.lang.Thread.run(Unknown Source)
2013-04-29 20:56:04 [INFO] [ForgeModLoader] Forge Mod Loader has detected an older LWJGL version, new advanced texture animation features are disabled
2013-04-29 20:56:04 [INFO] [ForgeModLoader] Not using advanced OpenGL 4.3 advanced capability for animations : OpenGL 4.3 is not available
0
this code seem outdated
0
The icons need a variable. Where would the variable be or do I have to create it?
0
Code:
package mods.magicalscience.common;
import cpw.mods.fml.relauncher.Side;
import cpw.mods.fml.relauncher.SideOnly;
import net.minecraft.block.Block;
import net.minecraft.block.material.Material;
import net.minecraft.client.renderer.texture.IconRegister;
import net.minecraft.creativetab.CreativeTabs;
import net.minecraft.util.Icon;
public class BlockMiracleWood extends Block{
public static Icon[] textures = new Icon[2];
public BlockMiracleWood(int id, Material mat){
super(id, mat.wood);
setHardness(2.5F);
setResistance(11.0F);
this.setCreativeTab(CreativeTabs.tabBlock);
}
public void registerIcons(IconRegister iconRegistry)
{
textures[0] = iconRegistry.registerIcon("magicalscience:tree_miracle");
textures[1] = iconRegistry.registerIcon("magicalscience:leaves_miracle");}
public Icon getBlockTextureFromSideAndMetadata(int side, int meta){} //Error is Here
}
0
Age:14
Why would you like to join?: I am hoping for a new whitelisted server to play on since my old one was shut down
Minecraft FTB Experience: Know miost about industrialcraft, buildcraft, redpower2. equivealent exchange 3. Thaumcraft 3, soulshards, xycraft, thermal expansion, and forestry besides the bees
Favorite part of Direwolf20 pack?: All the magic mods
Minecraft IGN: yattse12
0
0
Age: 14
Timezone: USA/Eastern
Best mods: Redpower, Buildcraft, IndustrialCraft, EE3
Skill with Mods: Awesome at all except MFFS and
Additional Information: No teamspeak
0
I don't like the gregtech in Mindcrack thats why I don't use it. But thanks for the offer