Jump to content

SantacreeperLP

Members
  • Posts

    104
  • Joined

  • Last visited

Everything posted by SantacreeperLP

  1. Hey guys, im rendering with a IBakedModel and i typed the following code: @Override public List<BakedQuad> getQuads(IBlockState state, EnumFacing side, long rand) { ArrayList<BakedQuad> bakedQuadArrayList = new ArrayList<BakedQuad>(); bakedQuadArrayList.add(new BakedQuad(new int[]{0, 16, 0, 16}, 255, EnumFacing.DOWN, Minecraft.getMinecraft().getTextureMapBlocks().getMissingSprite())); return bakedQuadArrayList; } @Override public boolean isAmbientOcclusion() { return false; } @Override public boolean isGui3d() { return true; } @Override public boolean isBuiltInRenderer() { return false; } , Its crashing with the following error: Caused by: java.lang.ArrayIndexOutOfBoundsException: 4 at net.minecraftforge.client.model.pipeline.LightUtil.unpack(LightUtil.java:156) ~[LightUtil.class:?]
  2. Hey, How can I render a Quad in the world and apply an TextureAtlasSprite to it? I tried: GL11.glBegin(GL11.GL_QUADS); GL11.glColor3f(1.0f, 1.0f, 1.0f); GL11.glVertex3d(x, y, z); GL11.glVertex3d(x + 1, y, z); GL11.glVertex3d(x + 1, y + 1, z); GL11.glVertex3d(x, y + 1, z); GL11.glEnd(); But it isnt working... Please help me I think i cant use the default openGL functions
  3. Hey can you tell me how I can render a simple Block that ignores the world lightning and is always glowing? Im really new and dont know how to do it in 1.9
  4. I tried this but it isnt working... I registred it with FMLCommonHandler.instance().bus().register but it isnt working... So I thought it isnt working, you know?
  5. Hey, is there an event that gets active when the world is loading? And an event that's stopped? Please help me
  6. Hey guys, I need your help: I want to create a simple JSON Block, but I have no experience with the new render system, so Im looking for people that can help me : My json block should be an ore like the Thaumcraft 4 Infused Ores, where some parts glow in the darkness(not really emit light, just ignore the lightning system and render as it was day) I would be really happy if you help me Have a nice day, Legend
  7. Hey, I would be know if there's some rewrite for 1.9 thats similar to the ISBRH in 1.7.. I mean a mod/util that let me render blocks without json files with custom model... like it was in the 1.7 Thank you and have a nice day Legend
  8. Yea, the TileEntitySpecialRenderer isnt really an option, because it causes performance problems if the blocks are rendered in the world(the renderer is required for an ore block)
  9. So your looking for sb who's helping you updating ur mod? Yea, I could probably help you
  10. Hey, Im searching for an ISBRH replacement for version 1.9 The Json Models are the replacement in 1.9, right? Thats quite a problem because I need OpenGL access which isnt possible from the JSON-Models as far as I know... So to be directly: I want to port my old 1.7.10 renderer which makes some parts of my block glow in the night Can you help me ? Best Regards and have a nice day, Legend
  11. Hey, sorry for annoying again, but I have some question to equivalents...: What are the following methods in 1.9? Block : getMixedBrightnessForBlock() BlockRendererDispatcher : .getModelFromBlockState(state, worldIn, pos); BlockRendererDispatcher : .isRenderTypeChest(block, meta), Please answer even if you know one Thank you and have a great day Legend
  12. Hey, im updating my 1.8 mod, and I need the 1.9 equivalent for WorldRenderer... Can you help me? Thank you and have a nice day Beast Regards, Legend
  13. Yea, I changed it as the following, still no change You looked at the grow void? @Override protected boolean canPlaceBlockOn(Block block) { if(block == Blocks.farmland ||block == LegendConstruction.cropAbsorbation) { return true; } return false; }
  14. Hey, Ive created a crop that should do: 1 : Growing to AGE 7 when placed... THEN: Placing the same crop Y+1 | Starting to grow up from 0 to 8 2 : When second block reached AGE 8 => should place a crop on Y+2 | Starting to grow up from 0 to 9 THEN it should be ready BUT : It starts at stage 0, growths to stage 7 and then, it does nothing... I dont know what Im doing wrong, can you look @ my "void grow", there should be the error Thank you very much package com.beastle9end.legendconstruction.blocks.crop; /** * Created by Le9enD on 10.02.2016. */ import java.util.ArrayList; import java.util.Random; import com.beastle9end.legendconstruction.LegendConstruction; import com.beastle9end.legendconstruction.network.ChatTextHandler; import com.sun.javafx.charts.Legend; import net.minecraft.block.Block; import net.minecraft.block.BlockAir; import net.minecraft.block.BlockBush; import net.minecraft.block.BlockCrops; import net.minecraft.block.BlockFarmland; import net.minecraft.block.IGrowable; import net.minecraft.block.properties.PropertyInteger; import net.minecraft.block.state.BlockState; import net.minecraft.block.state.IBlockState; import net.minecraft.creativetab.CreativeTabs; import net.minecraft.entity.player.EntityPlayer; import net.minecraft.init.Blocks; import net.minecraft.init.Items; import net.minecraft.item.Item; import net.minecraft.item.ItemStack; import net.minecraft.util.AxisAlignedBB; import net.minecraft.util.BlockPos; import net.minecraft.util.ChatComponentText; import net.minecraft.world.IBlockAccess; import net.minecraft.world.World; import net.minecraftforge.common.EnumPlantType; import net.minecraftforge.fml.common.registry.GameRegistry; import net.minecraftforge.fml.relauncher.Side; import net.minecraftforge.fml.relauncher.SideOnly; import net.minecraft.block.BlockPotato; public class BlockCropAbsorbation extends BlockCropsMain implements IGrowable { private IBlockState air = Blocks.air.getDefaultState(); public BlockCropAbsorbation(String unlocalName) { this.setUnlocalizedName(unlocalName); this.setHardness(0.0f); this.setResistance(0.0f); this.setTickRandomly(true); this.setBlockBounds(0.0f, 0.0f, 0.0f, 1.0f, 0.25f, 0.0f); this.setCreativeTab(LegendConstruction.tabLegendEngineering); //this.setCreativeTab((CreativeTabs) null); this.setStepSound(soundTypeGrass); this.disableStats(); GameRegistry.registerBlock(this, "cropAbsorbation"); } @Override public void setBlockBoundsBasedOnState(IBlockAccess world, BlockPos pos) { IBlockState state = world.getBlockState(pos); int l = ((Integer)((IBlockState) state).getValue(AGE)).intValue(); if (l <= 2) { this.setBlockBounds(0.0F, 0.0F, 0.0F, 1.0F, 0.25F, 1.0F); } else if (l <= 4) { this.setBlockBounds(0.0F, 0.0F, 0.0F, 1.0F, 0.5F, 1.0F); } else if (l <= 6) { this.setBlockBounds(0.0F, 0.0F, 0.0F, 1.0F, 0.75F, 1.0F); } else { this.setBlockBounds(0.0F, 0.0F, 0.0F, 1.0F, 1.0F, 1.0F); } } @Override public void onBlockHarvested(World world, BlockPos pos, IBlockState state, EntityPlayer player) { if(world.getBlockState(pos).getBlock() instanceof BlockCropAbsorbation) { if(world.getBlockState(pos).getValue(AGE).intValue() == 9)//THIRD BLOCK { world.setBlockState(new BlockPos(pos.getX(), pos.getY() - 1, pos.getZ()), air); world.setBlockState(new BlockPos(pos.getX(), pos.getY() -2 , pos.getZ()), (IBlockState) AGE, 5); } if(world.getBlockState(pos).getValue(AGE).intValue() == 8)//SECOND BLOCK { world.setBlockState(new BlockPos(pos.getX(), pos.getY() -1 , pos.getZ()), (IBlockState) AGE, 5); } } } public void fertilize(World world, BlockPos pos) { int meta = world.getBlockState(pos).getValue(AGE).intValue(); if(world.getBlockState(pos).getBlock() instanceof BlockAir) { if(meta < 5) { world.setBlockState(new BlockPos(pos.getX(), pos.getY()-1, pos.getZ()), (IBlockState) AGE, 7); world.setBlockState(new BlockPos(pos.getX(), pos.getY() , pos.getZ()), LegendConstruction.cropAbsorbation.getDefaultState()); return; } return; } else { if(meta < 5) { world.setBlockState(pos, (IBlockState) AGE, 5); } } } @Override protected Item getSeed() { return LegendConstruction.absorbationSeeds; } @Override protected Item getCrop() { return Items.string; } @Override protected boolean canPlaceBlockOn(Block block) { return block == Blocks.farmland; } @Override public void updateTick(World world,BlockPos pos, IBlockState state, Random random) { super.updateTick(world, pos, state, random); if(world.getBlockState(pos).getBlock().getLightValue() >= 9) { //Testet ob Block oben frei und unten farmland ist if((world.getBlockState(new BlockPos(pos.getX(), pos.getY() - 1, pos.getZ())).getBlock() == Blocks.farmland || world.getBlockState(new BlockPos(pos.getX(), pos.getY()-1, pos.getZ())).getBlock() == LegendConstruction.cropAbsorbation)&& world.getBlockState(new BlockPos(pos.getX() , pos.getY() +1 , pos.getZ())) == Blocks.air) { } else { //Block ist falsch return; } } if(world.getBlockState(pos).getBlock().getLightValue() < 9)//if lightvalue ist kleiner wie 9 { return; } } @Override public void grow(World world, BlockPos pos, IBlockState state) { int currentMeta = world.getBlockState(pos).getValue(AGE).intValue(); if(world.getBlockState(new BlockPos(pos.getX() ,pos.getY() - 1, pos.getZ())).getBlock() == Blocks.farmland) { //Erster Block if(currentMeta < 7) { System.out.println("Updating growth state"); world.setBlockState(pos, (IBlockState) AGE, world.getBlockState(pos).getValue(AGE).intValue() + 1); } if(currentMeta >= 7) { System.out.println("Setting block above"); world.setBlockState(new BlockPos(pos.getX(), pos.getY() + 1, pos.getZ()), LegendConstruction.cropAbsorbation.getDefaultState()); } } if(world.getBlockState(new BlockPos(pos.getX() , pos.getY() - 1 , pos.getZ())).getBlock() == LegendConstruction.cropAbsorbation && world.getBlockState(new BlockPos(pos.getX(), pos.getY() - 2, pos.getZ())).getBlock() == Blocks.farmland) { //Zweiter Block if(currentMeta < { world.setBlockState(pos, (IBlockState) AGE, world.getBlockState(pos).getValue(AGE).intValue() + 1); } if(currentMeta >= { world.setBlockState(new BlockPos(pos.getX(), pos.getY() + 1, pos.getZ()), LegendConstruction.cropAbsorbation.getDefaultState()); } } if(world.getBlockState(new BlockPos(pos.getX(), pos.getY() - 1, pos.getZ())).getBlock() == LegendConstruction.cropAbsorbation && world.getBlockState(new BlockPos(pos.getX(), pos.getY() - 2, pos.getZ())).getBlock() == LegendConstruction.cropAbsorbation && world.getBlockState(new BlockPos(pos.getX(), pos.getY() - 3, pos.getZ())).getBlock() == Blocks.farmland) { if(currentMeta < 9) { world.setBlockState(pos, (IBlockState) AGE, world.getBlockState(pos).getValue(AGE).intValue() + 1); } if(currentMeta == 9) { //Crop ready grown } } } @Override public void dropBlockAsItemWithChance(World world, BlockPos pos, IBlockState state, float chance, int fortune) { super.dropBlockAsItemWithChance(world, pos, state, chance, 0); } @Override public Item getItemDropped(IBlockState state, Random rand, int fortune) { return ((Integer)state.getValue(AGE)).intValue() == 8 ? this.getCrop() : this.getSeed(); } @Override public int quantityDropped(Random random) { return random.nextInt(2); } @Override public boolean canGrow(World worldIn, BlockPos pos, IBlockState state, boolean isClient) { return ((Integer)state.getValue(AGE)).intValue() != 7; } @Override public boolean canUseBonemeal(World worldIn, Random rand, BlockPos pos, IBlockState state) { return true; } @Override @SideOnly(Side.CLIENT) public Item getItem(World worldIn, BlockPos pos) { return this.getSeed(); } @Override public java.util.List<ItemStack> getDrops(net.minecraft.world.IBlockAccess world, BlockPos pos, IBlockState state, int fortune) { ArrayList<ItemStack> ret = (ArrayList<ItemStack>) super.getDrops(world, pos, state, fortune); int metadata = this.getMetaFromState(state); Random rand = world instanceof World ? ((World)world).rand : new Random(); if (metadata >= { for (int i = 0; i < 3 + fortune; ++i) { if (rand.nextInt(15) <= metadata) { ret.add(new ItemStack(this.getCrop(), 1, 0)); } } } return ret; } @Override public boolean canPlaceBlockAt(World world, BlockPos pos) { return true; } @Override protected void checkAndDropBlock(World world, BlockPos pos, IBlockState state) { if (!this.canBlockStay(world, pos, state)) { int l = this.getMetaFromState(state); this.dropBlockAsItem(world, pos, state, 0); world.setBlockState(pos, Blocks.air.getDefaultState()); } } @Override public boolean canBlockStay(World world, BlockPos pos, IBlockState state) { if (world.getBlockState(pos).getBlock() != this) return super.canBlockStay(world, pos, state); return (world.getBlockState(getPos(pos.getX(), pos.getY()- 1, pos.getZ())).getBlock() instanceof BlockFarmland) || (world.getBlockState(getPos(pos.getX(), pos.getY()- 1, pos.getZ())).getBlock() instanceof BlockCropAbsorbation); } public BlockPos getPos(int x, int y, int z) { return new BlockPos(x,y,z); } }
  15. Hey, my custom crop which should grow 2 blocks tall isnt working properly... Can you help me? It should grow 2 blocks tall but it does nothing after finishing the final state on the first block... Im looking forward to nice persons that can help me Thank you very much and have a great day, package com.beastle9end.legendconstruction.blocks; /** * Created by Le9enD on 10.02.2016. */ import java.util.ArrayList; import java.util.Random; import com.beastle9end.legendconstruction.LegendConstruction; import com.sun.javafx.charts.Legend; import net.minecraft.block.Block; import net.minecraft.block.BlockAir; import net.minecraft.block.BlockBush; import net.minecraft.block.BlockCrops; import net.minecraft.block.BlockFarmland; import net.minecraft.block.IGrowable; import net.minecraft.block.state.BlockState; import net.minecraft.block.state.IBlockState; import net.minecraft.creativetab.CreativeTabs; import net.minecraft.entity.player.EntityPlayer; import net.minecraft.init.Blocks; import net.minecraft.init.Items; import net.minecraft.item.Item; import net.minecraft.item.ItemStack; import net.minecraft.util.AxisAlignedBB; import net.minecraft.util.BlockPos; import net.minecraft.world.IBlockAccess; import net.minecraft.world.World; import net.minecraftforge.common.EnumPlantType; import net.minecraftforge.fml.common.registry.GameRegistry; import net.minecraftforge.fml.relauncher.Side; import net.minecraftforge.fml.relauncher.SideOnly; import net.minecraft.block.BlockPotato; public class BlockCropAbsorbation extends BlockCrops implements IGrowable{ public BlockCropAbsorbation(String unlocalName) { this.setUnlocalizedName(unlocalName); this.setHardness(0.0f); this.setResistance(0.0f); this.setTickRandomly(true); this.setBlockBounds(0.0f, 0.0f, 0.0f, 1.0f, 0.25f, 0.0f); this.setCreativeTab(LegendConstruction.tabLegendEngineering); //this.setCreativeTab((CreativeTabs) null); this.setStepSound(soundTypeGrass); this.disableStats(); GameRegistry.registerBlock(this, "cropAbsorbation"); } @Override public void setBlockBoundsBasedOnState(IBlockAccess world, BlockPos pos) { IBlockState state = world.getBlockState(pos); int l = ((Integer)((IBlockState) state).getValue(AGE)).intValue(); if (l <= 2) { this.setBlockBounds(0.0F, 0.0F, 0.0F, 1.0F, 0.25F, 1.0F); } else if (l <= 4) { this.setBlockBounds(0.0F, 0.0F, 0.0F, 1.0F, 0.5F, 1.0F); } else if (l <= 6) { this.setBlockBounds(0.0F, 0.0F, 0.0F, 1.0F, 0.75F, 1.0F); } else { this.setBlockBounds(0.0F, 0.0F, 0.0F, 1.0F, 1.0F, 1.0F); } } @Override public void onBlockHarvested(World world, BlockPos pos, IBlockState state, EntityPlayer player) { if(world.getBlockState(pos).getBlock() instanceof BlockCropAbsorbation) { if(world.getBlockState(pos).getValue(AGE).intValue() == { world.setBlockState(new BlockPos(pos.getX(), pos.getY() -1 , pos.getZ()), (IBlockState) AGE, 5); } } } public void fertilize(World world, BlockPos pos) { int meta = world.getBlockState(pos).getValue(AGE).intValue(); if(world.getBlockState(pos).getBlock() instanceof BlockAir) { if(meta < 5) { world.setBlockState(new BlockPos(pos.getX(), pos.getY()-1, pos.getZ()), (IBlockState) AGE, 7); world.setBlockState(new BlockPos(pos.getX(), pos.getY() + 1, pos.getZ()), LegendConstruction.cropAbsorbation.getDefaultState()); return; } return; } else { if(meta < 5) { world.setBlockState(pos, (IBlockState) AGE, 5); } } } @Override protected Item getSeed() { return LegendConstruction.absorbationSeeds; } @Override protected Item getCrop() { return Items.string; } @Override public int getRenderType() { return 6; } @Override protected boolean canPlaceBlockOn(Block block) { return block == Blocks.farmland; } @Override public void updateTick(World world,BlockPos pos, IBlockState state, Random random) { super.updateTick(world, pos, state, random); if(world.getBlockState(pos).getBlock().getLightValue() >= 9) { int meta = world.getBlockState(pos).getValue(AGE).intValue(); int x = pos.getX(), y = pos.getY(), z = pos.getZ(); if ((meta == 4) || (meta == 5)) { return; } if ((world.getBlockState(pos).getBlock() != Blocks.farmland) || (world.getBlockState(pos).getBlock() == LegendConstruction.cropAbsorbation) || (!(world.getBlockState(new BlockPos(pos.getX(), pos.getY()+1, pos.getZ())).getBlock() == Blocks.air))) { return; } if (random.nextInt(30) == 0) { world.setBlockState(pos, (IBlockState) AGE, meta + 1); } if ((meta > 6) && (world.getBlockState(getPos(x,y-1,z)) == Blocks.farmland) && (world.getBlockState(getPos(x, y + 1, z)) == Blocks.air)) { if (meta == 7) { world.setBlockState(getPos(x,y+1,z), LegendConstruction.cropAbsorbation.getDefaultState()); } world.setBlockState(pos, (IBlockState) AGE, 7); } } } @Override public void dropBlockAsItemWithChance(World world, BlockPos pos, IBlockState state, float chance, int fortune) { super.dropBlockAsItemWithChance(world, pos, state, chance, 0); } @Override public Item getItemDropped(IBlockState state, Random rand, int fortune) { return ((Integer)state.getValue(AGE)).intValue() == 8 ? this.getCrop() : this.getSeed(); } @Override public int quantityDropped(Random random) { return random.nextInt(2); } @Override public boolean canGrow(World worldIn, BlockPos pos, IBlockState state, boolean isClient) { return ((Integer)state.getValue(AGE)).intValue() != 7; } @Override public boolean canUseBonemeal(World worldIn, Random rand, BlockPos pos, IBlockState state) { return true; } @Override @SideOnly(Side.CLIENT) public Item getItem(World worldIn, BlockPos pos) { return this.getSeed(); } @Override public java.util.List<ItemStack> getDrops(net.minecraft.world.IBlockAccess world, BlockPos pos, IBlockState state, int fortune) { ArrayList<ItemStack> ret = (ArrayList<ItemStack>) super.getDrops(world, pos, state, fortune); int metadata = this.getMetaFromState(state); Random rand = world instanceof World ? ((World)world).rand : new Random(); if (metadata >= { for (int i = 0; i < 3 + fortune; ++i) { if (rand.nextInt(15) <= metadata) { ret.add(new ItemStack(this.getCrop(), 1, 0)); } } } return ret; } @Override public boolean canPlaceBlockAt(World world, BlockPos pos) { return true; } @Override protected void checkAndDropBlock(World world, BlockPos pos, IBlockState state) { if (!this.canBlockStay(world, pos, state)) { int l = this.getMetaFromState(state); this.dropBlockAsItem(world, pos, state, 0); world.setBlockState(pos, Blocks.air.getDefaultState()); } } @Override public boolean canBlockStay(World world, BlockPos pos, IBlockState state) { if (world.getBlockState(pos).getBlock() != this) return super.canBlockStay(world, pos, state); return (world.getBlockState(getPos(pos.getX(), pos.getY()- 1, pos.getZ())).getBlock() instanceof BlockFarmland) || (world.getBlockState(getPos(pos.getX(), pos.getY()- 1, pos.getZ())).getBlock() instanceof BlockCropAbsorbation); } public BlockPos getPos(int x, int y, int z) { return new BlockPos(x,y,z); } }
  16. Hey, I want to create a particle similar to the vanilla flame particle, but with a different texture.. How can I do this?
  17. Hey, i setupped a custom particle in my mod, but it just render like a grey cube... Here's my class code: ' @SideOnly(Side.CLIENT) @Override public void randomDisplayTick(World world, int x, int y, int z, Random rdm) { int l = world.getBlockMetadata(x, y, z); double d0 = (double)((float)x + 0.5F); double d1 = (double)((float)y + 0.7F); double d2 = (double)((float)z + 0.5F); double d3 = 0.2199999988079071D; double d4 = 0.27000001072883606D; ResourceLocation texture = new ResourceLocation(ProjectX.MODID , "textures/particle/glow.png"); if (l == 1) { world.spawnEntityInWorld(new EntityCustomFX(world, d0-d4, d1+d3, d2, texture, 1, 1.0f, 1.0f, 0x37F9FE, l)); } else if (l == 2) { world.spawnEntityInWorld(new EntityCustomFX(world, d0-d4, d1+d3, d2, texture, 1,1.0f, 1.0f, 0x37F9FE, 1)); } else if (l == 3) { world.spawnEntityInWorld(new EntityCustomFX(world, d0, d1+d3, d2-d4, texture, 1, 1.0f, 1.0f, 0x37F9FE, 1)); } else if (l == 4) { world.spawnEntityInWorld(new EntityCustomFX(world, d0,d1+d3,d2+d4, texture, 1, 1.0f, 1.0f, 0x37F9FE, 1)); } else { world.spawnEntityInWorld(new EntityCustomFX(world, d0,d1,d2, texture, 1, 1.0f, 1.0f, 0x37F9FE, 1)); } } And here's my EntityCustomFX class : public class EntityCustomFX extends EntityFX { private ResourceLocation texture; private int colorApp; private int colorAlpha; public EntityCustomFX(World world, double x, double y, double z, ResourceLocation texture, int age, float gravity, float scale, int color, int alpha) { super(world, x, y, z); this.texture = texture; setMaxAge(age); setGravity(gravity); setScale(scale); colorApp = color; colorAlpha = alpha; } @Override public void renderParticle(Tessellator tess, float partialTics, float par3, float par4, float par5, float par6, float par7) { Minecraft.getMinecraft().getTextureManager().bindTexture(texture); glDepthMask(false); glEnable(GL_BLEND); glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA); glAlphaFunc(GL_GREATER, 0.003921569F); tess.setBrightness(getBrightnessForRender(partialTics)); tess.setColorRGBA_I(colorApp, colorAlpha); float scale = 0.1F*particleScale; float x = (float)(prevPosX + (posX - prevPosX) * partialTics - interpPosX); float y = (float)(prevPosY + (posY - prevPosY) * partialTics - interpPosY); float z = (float)(prevPosZ + (posZ - prevPosZ) * partialTics - interpPosZ); { tess.addVertexWithUV(x - par3 * scale - par6 * scale, y - par4 * scale, z - par5 * scale - par7 * scale, 0, 1); tess.addVertexWithUV(x - par3 * scale + par6 * scale, y + par4 * scale, z - par5 * scale + par7 * scale, 0, 0); tess.addVertexWithUV(x + par3 * scale + par6 * scale, y + par4 * scale, z + par5 * scale + par7 * scale, 1, 0); tess.addVertexWithUV(x + par3 * scale - par6 * scale, y - par4 * scale, z + par5 * scale - par7 * scale, 1, 1); } glDisable(GL_BLEND); glDepthMask(true); glAlphaFunc(GL_GREATER, 0.1F); } @Override public int getFXLayer() { return 1 ; } public EntityCustomFX setMaxAge(int age) { particleMaxAge = age; return this; } public EntityCustomFX setGravity(float grav) { particleGravity = grav; return this; } public EntityCustomFX setScale(float scale) { particleScale = scale; return this; } }
  18. 2016-01-08 14:27:52,979 WARN Unable to instantiate org.fusesource.jansi.WindowsAnsiOutputStream 2016-01-08 14:27:52,981 WARN Unable to instantiate org.fusesource.jansi.WindowsAnsiOutputStream [14:27:53] [main/INFO] [GradleStart]: Extra: [] [14:27:53] [main/INFO] [GradleStart]: Running with arguments: [--userProperties, {}, --assetsDir, C:/Users/Le9enD/.gradle/caches/minecraft/assets, --assetIndex, 1.8, --accessToken{REDACTED}, --version, 1.8.9, --tweakClass, net.minecraftforge.fml.common.launcher.FMLTweaker, --tweakClass, net.minecraftforge.gradle.tweakers.CoremodTweaker] [14:27:53] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.fml.common.launcher.FMLTweaker [14:27:53] [main/INFO] [LaunchWrapper]: Using primary tweak class name net.minecraftforge.fml.common.launcher.FMLTweaker [14:27:53] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.gradle.tweakers.CoremodTweaker [14:27:53] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.FMLTweaker [14:27:53] [main/INFO] [FML]: Forge Mod Loader version 11.15.0.1686 for Minecraft 1.8.9 loading [14:27:53] [main/INFO] [FML]: Java is Java HotSpot(TM) 64-Bit Server VM, version 1.8.0_51, running on Windows 8.1:amd64:6.3, installed at C:\Program Files\Java\jre1.8.0_51 [14:27:53] [main/INFO] [FML]: Managed to load a deobfuscated Minecraft name- we are in a deobfuscated environment. Skipping runtime deobfuscation [14:27:53] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.gradle.tweakers.CoremodTweaker [14:27:53] [main/INFO] [GradleStart]: Injecting location in coremod net.minecraftforge.fml.relauncher.FMLCorePlugin [14:27:53] [main/INFO] [GradleStart]: Injecting location in coremod net.minecraftforge.classloading.FMLForgePlugin [14:27:53] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.fml.common.launcher.FMLInjectionAndSortingTweaker [14:27:53] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.fml.common.launcher.FMLDeobfTweaker [14:27:53] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.gradle.tweakers.AccessTransformerTweaker [14:27:53] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.FMLInjectionAndSortingTweaker [14:27:53] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.FMLInjectionAndSortingTweaker [14:27:53] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.relauncher.CoreModManager$FMLPluginWrapper [14:27:53] [main/ERROR] [FML]: The binary patch set is missing. Either you are in a development environment, or things are not going to work! [14:27:54] [main/ERROR] [FML]: FML appears to be missing any signature data. This is not a good thing [14:27:54] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.relauncher.CoreModManager$FMLPluginWrapper [14:27:54] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.FMLDeobfTweaker [14:27:54] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.gradle.tweakers.AccessTransformerTweaker [14:27:54] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.fml.common.launcher.TerminalTweaker [14:27:54] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.TerminalTweaker [14:27:54] [main/INFO] [LaunchWrapper]: Launching wrapped minecraft {net.minecraft.client.main.Main} 2016-01-08 14:27:55,457 WARN Unable to instantiate org.fusesource.jansi.WindowsAnsiOutputStream 2016-01-08 14:27:55,503 WARN Unable to instantiate org.fusesource.jansi.WindowsAnsiOutputStream 2016-01-08 14:27:55,506 WARN Unable to instantiate org.fusesource.jansi.WindowsAnsiOutputStream [14:27:55] [Client thread/INFO]: Setting user: Player215 [14:27:58] [Client thread/INFO]: LWJGL Version: 2.9.4 [14:27:59] [Client thread/WARN] [FML]: ============================================================= [14:27:59] [Client thread/WARN] [FML]: MOD HAS DIRECT REFERENCE System.exit() THIS IS NOT ALLOWED REROUTING TO FML! [14:27:59] [Client thread/WARN] [FML]: Offendor: com/sun/jna/Native.main([Ljava/lang/String;)V [14:27:59] [Client thread/WARN] [FML]: Use FMLCommonHandler.exitJava instead [14:27:59] [Client thread/WARN] [FML]: ============================================================= [14:27:59] [Client thread/INFO] [sTDOUT]: [net.minecraftforge.fml.client.SplashProgress:start:246]: ---- Minecraft Crash Report ---- // Why did you do that? Time: 08.01.16 14:27 Description: Loading screen debug info This is just a prompt for computer specs to be printed. THIS IS NOT A ERROR A detailed walkthrough of the error, its code path and all known details is as follows: --------------------------------------------------------------------------------------- -- System Details -- Details: Minecraft Version: 1.8.9 Operating System: Windows 8.1 (amd64) version 6.3 Java Version: 1.8.0_51, Oracle Corporation Java VM Version: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Oracle Corporation Memory: 713448888 bytes (680 MB) / 1038876672 bytes (990 MB) up to 1038876672 bytes (990 MB) JVM Flags: 3 total; -Xincgc -Xmx1024M -Xms1024M IntCache: cache: 0, tcache: 0, allocated: 0, tallocated: 0 FML: Loaded coremods (and transformers): GL info: ' Vendor: 'NVIDIA Corporation' Version: '4.5.0 NVIDIA 358.87' Renderer: 'GeForce GTX 770/PCIe/SSE2' [14:27:59] [Client thread/INFO] [FML]: MinecraftForge v11.15.0.1686 Initialized [14:27:59] [Client thread/INFO] [FML]: Replaced 204 ore recipies [14:27:59] [Client thread/INFO] [FML]: Found 0 mods from the command line. Injecting into mod discoverer [14:27:59] [Client thread/INFO] [FML]: Searching C:\Users\Le9enD\Videos\REDPOWER\run\mods for mods [14:28:01] [Client thread/INFO] [FML]: Forge Mod Loader has identified 4 mods to load [14:28:01] [Client thread/INFO] [FML]: Attempting connection with missing mods [mcp, FML, Forge, ratpower] at CLIENT [14:28:01] [Client thread/INFO] [FML]: Attempting connection with missing mods [mcp, FML, Forge, ratpower] at SERVER [14:28:01] [Client thread/INFO]: Reloading ResourceManager: Default, FMLFileResourcePack:Forge Mod Loader, FMLFileResourcePack:Minecraft Forge, FMLFileResourcePack:R.A.T Power [14:28:01] [Client thread/INFO] [FML]: Processing ObjectHolder annotations [14:28:01] [Client thread/INFO] [FML]: Found 384 ObjectHolder annotations [14:28:01] [Client thread/INFO] [FML]: Identifying ItemStackHolder annotations [14:28:01] [Client thread/INFO] [FML]: Found 0 ItemStackHolder annotations [14:28:01] [Client thread/INFO] [FML]: Configured a dormant chunk cache size of 0 [14:28:01] [Forge Version Check/INFO] [ForgeVersionCheck]: [Forge] Starting version check at http://files.minecraftforge.net/maven/net/minecraftforge/forge/promotions_slim.json [14:28:01] [Client thread/INFO] [FML]: Applying holder lookups [14:28:01] [Client thread/INFO] [FML]: Holder lookups applied [14:28:01] [Client thread/INFO] [FML]: Injecting itemstacks [14:28:01] [Client thread/INFO] [FML]: Itemstack injection complete [14:28:01] [Client thread/ERROR] [FML]: Fatal errors were detected during the transition from PREINITIALIZATION to INITIALIZATION. Loading cannot continue [14:28:01] [Client thread/ERROR] [FML]: States: 'U' = Unloaded 'L' = Loaded 'C' = Constructed 'H' = Pre-initialized 'I' = Initialized 'J' = Post-initialized 'A' = Available 'D' = Disabled 'E' = Errored UCH mcp{9.18} [Minecraft Coder Pack] (minecraft.jar) UCH FML{8.0.99.99} [Forge Mod Loader] (forgeSrc-1.8.9-11.15.0.1686.jar) UCH Forge{11.15.0.1686} [Minecraft Forge] (forgeSrc-1.8.9-11.15.0.1686.jar) UCE ratpower{1.8.9-BETA} [R.A.T Power] (bin) [14:28:01] [Client thread/ERROR] [FML]: The following problems were captured during this phase [14:28:01] [Client thread/ERROR] [FML]: Caught exception from ratpower java.lang.NullPointerException at com.xthelegend.ratpower.lib.utils.ModelHelper.registerItem(ModelHelper.java:17) ~[bin/:?] at com.xthelegend.ratpower.lib.utils.ModelHelper.registerItem(ModelHelper.java:32) ~[bin/:?] at com.xthelegend.ratpower.world.RatPowerWorld.registerItemTXs(RatPowerWorld.java:84) ~[bin/:?] at com.xthelegend.ratpower.world.RatPowerWorld.preInit(RatPowerWorld.java:64) ~[bin/:?] at com.xthelegend.ratpower.RatPower.preInit(RatPower.java:37) ~[bin/:?] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_51] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_51] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_51] at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.8.0_51] at net.minecraftforge.fml.common.FMLModContainer.handleModStateEvent(FMLModContainer.java:560) ~[forgeSrc-1.8.9-11.15.0.1686.jar:?] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_51] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_51] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_51] at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.8.0_51] at com.google.common.eventbus.EventSubscriber.handleEvent(EventSubscriber.java:74) ~[guava-17.0.jar:?] at com.google.common.eventbus.SynchronizedEventSubscriber.handleEvent(SynchronizedEventSubscriber.java:47) ~[guava-17.0.jar:?] at com.google.common.eventbus.EventBus.dispatch(EventBus.java:322) ~[guava-17.0.jar:?] at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:304) ~[guava-17.0.jar:?] at com.google.common.eventbus.EventBus.post(EventBus.java:275) ~[guava-17.0.jar:?] at net.minecraftforge.fml.common.LoadController.sendEventToModContainer(LoadController.java:211) ~[forgeSrc-1.8.9-11.15.0.1686.jar:?] at net.minecraftforge.fml.common.LoadController.propogateStateMessage(LoadController.java:189) ~[forgeSrc-1.8.9-11.15.0.1686.jar:?] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_51] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_51] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_51] at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.8.0_51] at com.google.common.eventbus.EventSubscriber.handleEvent(EventSubscriber.java:74) ~[guava-17.0.jar:?] at com.google.common.eventbus.SynchronizedEventSubscriber.handleEvent(SynchronizedEventSubscriber.java:47) ~[guava-17.0.jar:?] at com.google.common.eventbus.EventBus.dispatch(EventBus.java:322) ~[guava-17.0.jar:?] at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:304) ~[guava-17.0.jar:?] at com.google.common.eventbus.EventBus.post(EventBus.java:275) ~[guava-17.0.jar:?] at net.minecraftforge.fml.common.LoadController.distributeStateMessage(LoadController.java:118) [LoadController.class:?] at net.minecraftforge.fml.common.Loader.preinitializeMods(Loader.java:548) [Loader.class:?] at net.minecraftforge.fml.client.FMLClientHandler.beginMinecraftLoading(FMLClientHandler.java:240) [FMLClientHandler.class:?] at net.minecraft.client.Minecraft.startGame(Minecraft.java:451) [Minecraft.class:?] at net.minecraft.client.Minecraft.run(Minecraft.java:360) [Minecraft.class:?] at net.minecraft.client.main.Main.main(Main.java:116) [Main.class:?] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_51] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_51] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_51] at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.8.0_51] at net.minecraft.launchwrapper.Launch.launch(Launch.java:135) [launchwrapper-1.12.jar:?] at net.minecraft.launchwrapper.Launch.main(Launch.java:28) [launchwrapper-1.12.jar:?] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_51] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_51] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_51] at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.8.0_51] at net.minecraftforge.gradle.GradleStartCommon.launch(GradleStartCommon.java:97) [start/:?] at GradleStart.main(GradleStart.java:26) [start/:?] [14:28:01] [Client thread/INFO] [sTDOUT]: [net.minecraft.init.Bootstrap:printToSYSOUT:612]: ---- Minecraft Crash Report ---- // Daisy, daisy... Time: 08.01.16 14:28 Description: Initializing game java.lang.NullPointerException: Initializing game at com.xthelegend.ratpower.lib.utils.ModelHelper.registerItem(ModelHelper.java:17) at com.xthelegend.ratpower.lib.utils.ModelHelper.registerItem(ModelHelper.java:32) at com.xthelegend.ratpower.world.RatPowerWorld.registerItemTXs(RatPowerWorld.java:84) at com.xthelegend.ratpower.world.RatPowerWorld.preInit(RatPowerWorld.java:64) at com.xthelegend.ratpower.RatPower.preInit(RatPower.java:37) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at net.minecraftforge.fml.common.FMLModContainer.handleModStateEvent(FMLModContainer.java:560) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at com.google.common.eventbus.EventSubscriber.handleEvent(EventSubscriber.java:74) at com.google.common.eventbus.SynchronizedEventSubscriber.handleEvent(SynchronizedEventSubscriber.java:47) at com.google.common.eventbus.EventBus.dispatch(EventBus.java:322) at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:304) at com.google.common.eventbus.EventBus.post(EventBus.java:275) at net.minecraftforge.fml.common.LoadController.sendEventToModContainer(LoadController.java:211) at net.minecraftforge.fml.common.LoadController.propogateStateMessage(LoadController.java:189) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at com.google.common.eventbus.EventSubscriber.handleEvent(EventSubscriber.java:74) at com.google.common.eventbus.SynchronizedEventSubscriber.handleEvent(SynchronizedEventSubscriber.java:47) at com.google.common.eventbus.EventBus.dispatch(EventBus.java:322) at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:304) at com.google.common.eventbus.EventBus.post(EventBus.java:275) at net.minecraftforge.fml.common.LoadController.distributeStateMessage(LoadController.java:118) at net.minecraftforge.fml.common.Loader.preinitializeMods(Loader.java:548) at net.minecraftforge.fml.client.FMLClientHandler.beginMinecraftLoading(FMLClientHandler.java:240) at net.minecraft.client.Minecraft.startGame(Minecraft.java:451) at net.minecraft.client.Minecraft.run(Minecraft.java:360) at net.minecraft.client.main.Main.main(Main.java:116) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at net.minecraft.launchwrapper.Launch.launch(Launch.java:135) at net.minecraft.launchwrapper.Launch.main(Launch.java:28) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at net.minecraftforge.gradle.GradleStartCommon.launch(GradleStartCommon.java:97) at GradleStart.main(GradleStart.java:26) A detailed walkthrough of the error, its code path and all known details is as follows: --------------------------------------------------------------------------------------- -- Head -- Stacktrace: at com.xthelegend.ratpower.lib.utils.ModelHelper.registerItem(ModelHelper.java:17) at com.xthelegend.ratpower.lib.utils.ModelHelper.registerItem(ModelHelper.java:32) at com.xthelegend.ratpower.world.RatPowerWorld.registerItemTXs(RatPowerWorld.java:84) at com.xthelegend.ratpower.world.RatPowerWorld.preInit(RatPowerWorld.java:64) at com.xthelegend.ratpower.RatPower.preInit(RatPower.java:37) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at net.minecraftforge.fml.common.FMLModContainer.handleModStateEvent(FMLModContainer.java:560) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at com.google.common.eventbus.EventSubscriber.handleEvent(EventSubscriber.java:74) at com.google.common.eventbus.SynchronizedEventSubscriber.handleEvent(SynchronizedEventSubscriber.java:47) at com.google.common.eventbus.EventBus.dispatch(EventBus.java:322) at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:304) at com.google.common.eventbus.EventBus.post(EventBus.java:275) at net.minecraftforge.fml.common.LoadController.sendEventToModContainer(LoadController.java:211) at net.minecraftforge.fml.common.LoadController.propogateStateMessage(LoadController.java:189) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at com.google.common.eventbus.EventSubscriber.handleEvent(EventSubscriber.java:74) at com.google.common.eventbus.SynchronizedEventSubscriber.handleEvent(SynchronizedEventSubscriber.java:47) at com.google.common.eventbus.EventBus.dispatch(EventBus.java:322) at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:304) at com.google.common.eventbus.EventBus.post(EventBus.java:275) at net.minecraftforge.fml.common.LoadController.distributeStateMessage(LoadController.java:118) at net.minecraftforge.fml.common.Loader.preinitializeMods(Loader.java:548) at net.minecraftforge.fml.client.FMLClientHandler.beginMinecraftLoading(FMLClientHandler.java:240) at net.minecraft.client.Minecraft.startGame(Minecraft.java:451) -- Initialization -- Details: Stacktrace: at net.minecraft.client.Minecraft.run(Minecraft.java:360) at net.minecraft.client.main.Main.main(Main.java:116) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at net.minecraft.launchwrapper.Launch.launch(Launch.java:135) at net.minecraft.launchwrapper.Launch.main(Launch.java:28) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at net.minecraftforge.gradle.GradleStartCommon.launch(GradleStartCommon.java:97) at GradleStart.main(GradleStart.java:26) -- System Details -- Details: Minecraft Version: 1.8.9 Operating System: Windows 8.1 (amd64) version 6.3 Java Version: 1.8.0_51, Oracle Corporation Java VM Version: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Oracle Corporation Memory: 906980112 bytes (864 MB) / 1038876672 bytes (990 MB) up to 1038876672 bytes (990 MB) JVM Flags: 3 total; -Xincgc -Xmx1024M -Xms1024M IntCache: cache: 0, tcache: 0, allocated: 0, tallocated: 0 FML: MCP 9.19 Powered by Forge 11.15.0.1686 4 mods loaded, 4 mods active States: 'U' = Unloaded 'L' = Loaded 'C' = Constructed 'H' = Pre-initialized 'I' = Initialized 'J' = Post-initialized 'A' = Available 'D' = Disabled 'E' = Errored UCH mcp{9.18} [Minecraft Coder Pack] (minecraft.jar) UCH FML{8.0.99.99} [Forge Mod Loader] (forgeSrc-1.8.9-11.15.0.1686.jar) UCH Forge{11.15.0.1686} [Minecraft Forge] (forgeSrc-1.8.9-11.15.0.1686.jar) UCE ratpower{1.8.9-BETA} [R.A.T Power] (bin) Loaded coremods (and transformers): GL info: ' Vendor: 'NVIDIA Corporation' Version: '4.5.0 NVIDIA 358.87' Renderer: 'GeForce GTX 770/PCIe/SSE2' Launched Version: 1.8.9 LWJGL: 2.9.4 OpenGL: GeForce GTX 770/PCIe/SSE2 GL version 4.5.0 NVIDIA 358.87, NVIDIA Corporation GL Caps: Using GL 1.3 multitexturing. Using GL 1.3 texture combiners. Using framebuffer objects because OpenGL 3.0 is supported and separate blending is supported. Shaders are available because OpenGL 2.1 is supported. VBOs are available because OpenGL 1.5 is supported. Using VBOs: No Is Modded: Definitely; Client brand changed to 'fml,forge' Type: Client (map_client.txt) Resource Packs: Current Language: English (US) Profiler Position: N/A (disabled) CPU: 4x Intel(R) Core(TM) i5-4570 CPU @ 3.20GHz [cod
  19. Hey, ive a problem : I get this error when trying to render my tool : public class ItemGemAxe extends ItemAxe { public Item currentMat = null; protected boolean canRepair = true; public ItemGemAxe(ToolMaterial material, String unlocalName, Item repairItem) { super(material); setCreativeTab(RatPower.worldTab); setUnlocalizedName(RatPower.MODID + ":" + unlocalName); } @Override public boolean isRepairable() { return canRepair && isDamageable(); } @Override public boolean getIsRepairable(ItemStack stack, ItemStack stack_) { return ((stack.getItem() == this || stack_.getItem() == this) && (stack.getItem() == this.currentMat || stack_.getItem() == this.currentMat)); } } Ive registred the item texture like this, the item itself is registred in the init part: ModelHelper.registerItem(itemAxeRuby, "itemAxeRuby"); And this is my modelHelper class : @SideOnly(Side.CLIENT) public class ModelHelper { public static void registerItem(Item item, int metadata, String itemName) { Minecraft.getMinecraft().getRenderItem().getItemModelMesher().register(item, metadata, new ModelResourceLocation(itemName, "inventory")); } public static void registerBlock(Block block, int metadata, String blockName) { registerItem(Item.getItemFromBlock(block), metadata, blockName); } public static void registerBlock(Block block, String blockName) { registerBlock(block, 0, blockName); } public static void registerItem(Item item, String itemName) { registerItem(item, 0, itemName); } public static ItemModelMesher getItemModelMesher() { return Minecraft.getMinecraft().getRenderItem().getItemModelMesher(); } public static BlockModelShapes getBlockModelShapes() { return getItemModelMesher().getModelManager().getBlockModelShapes(); } } I hope you can help me
  20. Hey, Ive an obj file and want that it renders as an item. Can you explain it to me? ~Santa
  21. Hey, ive a quick question: how can i handle this situation in 1.7.10: GL11.glTranslatef(-0.5F, -0.5F, -0.5F); tessellator.startDrawingQuads(); tessellator.setNormal(0.0F, -1.0F, 0.0F); renderblocks.renderBottomFace(block, 0.0D, 0.0D, 0.0D, i1); tessellator.draw(); the most works fine, but there's an error in the void renderBottomFace. Whats the new one in 1.7.10? ~Le9enD
  22. Hey, is there any function that gets active when a mod is loaded? Or how can I set that the mod gets loaded after another? I tried beginning the modid with a z, that doesnt work for me ... Any ideas? ~Legend
  23. thank you, that was what I was looking for... I just forgot the name of the command
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.