CleanPawnege Posted August 6, 2013 Posted August 6, 2013 So I was making a leaf block and got most of it correct, but for some reason I have trouble with the blockID's(metadata)? So I can place all the 3 different blocks correctly and they render correctly in inventory, but after they have been on the ground for about 5 - 30 seconds they start to randomly change texture to another of the leaf textures? When I middle mouse click(in creative u get the block your looking at in your inventory) and it still gives me the block I placed, but on on the ground it had the wrong texture? This also happens when you place a block on top of any of the leaf textures. And I have tried to use if statement and switch both have the same problem anybody know how to fix? Here is a direct link to the correct class in my github directory u can also look at all the other classes if necessary https://github.com/Rasmustof/Kitchenmod/blob/master/common/kitchenmod/blocks/BlockPearLeaves.java Quote
GotoLink Posted August 6, 2013 Posted August 6, 2013 At line 167 of your block, in updateTick(args) method: par1World.setBlockMetadataWithNotify(par2, par3, par4, l & -9, 4); This has a chance of changing your block metadata. Quote
Recommended Posts
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.