Jump to content
Search In
  • More options...
Find results that contain...
Find results in...


  • Posts

  • Joined

  • Last visited

Everything posted by newboyhun

  1. Second parameter should be an Object[].
  2. ..... Do it as you did at zCoord or xCoord ....
  3. Check this:http://www.minecraftforge.net/wiki/Multiple_Pass_Render_Blocks
  4. Eh? Can you rewrite your question,because i can't understand it. But if you want to use a potion in a crafting recipe,then you need to make the recipe with ItemStack,like: new ItemStack(Item.potion,1,damage) Example for Potion of Regeneration: new ItemStack(Item.potion,1,8193)
  5. I think you will need to make a custom renderer for it.
  6. For registering name,i have used: LanguageRegistry.instance().addStringLocalization(((BlockStoneSlabs)YourSingleSlab).getFullSlabName(0)+".name", "Your Slab");
  7. In the loop you aren't using the elements,you should: letters But for understanding from minecraft is a really terrible thing,because of the variable names. You should start making you own games,like a simple top-down shooter games,platform games,pacman any easy game do it. And i recommend you LWJGL and Slick2D
  8. It's because of the slab is an itemblock,you need a custom itemblock for it,but a more simple thing is to put a line in the FMLPostInitializationEvent : Item.itemsList[YourSingleSlab.blockID] = (new ItemSlab(YourSingleSlab.blockID - 256, (BlockHalfSlab)YourSingleSlab, (BlockHalfSlab)YourDoubleSlab, false)).setItemName("YourSlabName");
  9. Are you new to Java? =) Yes with enum you can do that,but if you want the same thing to do when it starts with 'X' letter,then you just make an array,or an arraylist,any collection do it,then loop it through.
  10. Hi all! I'm trying to increase the sea level and ground level,i already achieved this (to 128 from 64) BUT,the whole world is flat (except lakes,oceans etc). I have edited the ChunkProviderGenerator,i think the problem should be arond the noise generators,is there anyway to fix this?
  11. Oh sorry did you made the field for the movedEntity? private EntityLiving movedEntity;
  12. Then resend your source with the changes so i can see what you changed.
  13. change getCurrentEquippedItem() with inventory.getCurrentItem()
  14. It's because the minecraft uses metadata to checking if it's on bottom or on top. You can only use the first 8 metadata because the last 8 metadata is the top one. You will need two block for wool,one for the first 8 ,one for the last 8.
  15. Probably you shouldn't register the gui into the CommonProxy,you need a seperate GuiHandler http://www.minecraftforge.net/wiki/Containers_and_GUIs For opening gui i'm using : par5EntityPlayer.openGui(YourMod.instance, YourGuiID, par1World, par2, par3, par4); par2,par3,par4 are coordinates: x,y,z
  16. Did you tried to add messages to check what is going in the code? System.out.println("This will appear in the console."); Do you know what the par3 mean in the idDropped() ? Btw,the problem could be at par2Random.nextInt(10 - par3 * 3). Check the Minecraft's source next time. (BlockGravel) Add this snippet if (par3 > 3) { par3 = 3; } before return par2Random.nextInt(10 - par3 * 3) == 0 ? Item.flint.shiftedIndex : this.blockID;
  17. Simple ,and a really good idea This snippet goes in your block's file. public void onBlockPlacedBy(World par1World, int par2, int par3, int par4, EntityLiving par5EntityLiving) { List var4 = par1World.getEntitiesWithinAABB(EntityZombie.class, AxisAlignedBB.getAABBPool().addOrModifyAABBInPool(par2 - 20, par3, par4 - 20, par2 + 20, par3 + 1, par4 + 20)); if (!var4.isEmpty()) { Object e = var4.get(0); if (e instanceof EntityLiving) { ((EntityLiving) e).getNavigator().tryMoveToXYZ(par2, par3 + 1, par4, ((EntityLiving) e).getAIMoveSpeed()); this.movedEntity = ((EntityLiving)e); } } } public void onEntityCollidedWithBlock(World par1World, int par2, int par3, int par4, Entity par5Entity) { if (!par1World.isRemote) { if (this.movedEntity != null) if (par5Entity.entityId == this.movedEntity.entityId) { if (par5Entity instanceof EntityLiving) { EntitySkeleton sk = new EntitySkeleton(par1World); sk.setLocationAndAngles(this.movedEntity.posX, this.movedEntity.posY, this.movedEntity.posZ, this.movedEntity.rotationYaw, this.movedEntity.rotationPitch); par1World.spawnEntityInWorld(sk); sk.initCreature(); ((EntityLiving)par5Entity).setDead(); } } } }
  18. First,you don't need to do the nextID() thing because the CreativeTabs do it automatically. Just construct it with only the label parameter. Secondly,the erros is can be because the item isn't exists,that's why it says null at CreativeTabs.java:209, getIconItemStack() creates an itemstack from your item. What does this mean? Within your getTabIconItemIndex you are using an variable that stores the id of the things. Because they are items you need to make it shifted. So @SideOnly(Side.CLIENT) public int getTabIconItemIndex() { return mcextcore.Core.ItemChestPlateID + 256; } I hope i helped you.
  19. Did you added the annotation? @SidedProxy(clientSide="tutorial.generic.client.ClientProxy", serverSide="tutorial.generic.CommonProxy") http://www.minecraftforge.net/wiki/Tutorials/Basic_Modding#Proxy_Classes
  20. What is the problem? What do you mean on glitch? Screenshot or a little video would be nice.
  21. Here is a link,this should work ( i'm using this too) http://www.minecraftforge.net/wiki/Upgrading_To_Forge_for_1.3.1#Custom_Block_renders
  22. If i'm sure this is the forge's command for registering block rendering,if you meant this. RenderingRegistry.instance().registerBlockHandler ClientRegistry.bindTileEntitySpecialRenderer
  23. Probably the player don't get the changes,add this after changing itemstack. ((EntityPlayer)entity).inventoryContainer.detectAndSendChanges();
  • Create New...

Important Information

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