Posted October 22, 201312 yr I have changed the vanilla sand block to a sand block of my own. Everything works fine, except.... The sand doesn't fall. It looks like it tries to when you place it, but it doesn't fall. I am not sure what else I need to do to fix this. I am mostly doing this for a learning experience so any help is nice. Currently the sand drops diamonds, why not, but there is a recipe to take the diamonds and make my custom sand block that replaces the vanilla sand. Here is the code for what I have: http://gw.minecraftforge.net/bqgY If you can help out that would be great. thanks.
October 22, 201312 yr Hi I'm not sure why, but it should be pretty straightforward to figure it out if you put breakpoints or println into the various BlockSand methods, and see if you can figure out what is happening differently to the vanilla sand. -TGG
October 22, 201312 yr Author Thanks for the reminder that I can do that. I will check it out and see. If you think of anything different let me know.
October 22, 201312 yr try adding this /** Do blocks fall instantly to where they stop or do they fall over time */ public static boolean fallInstantly = false;
October 22, 201312 yr Author try adding this /** Do blocks fall instantly to where they stop or do they fall over time */ public static boolean fallInstantly = false; Thanks for your efforts in finding a solution to this problem. I did find the issue through much searching. I found that I was missing a line of code in the preInit stage. I only had Block.blocklist[block.sand.blockID] = this.myblock but I found that I was missing Block.blocklist[block.sand.blockID] = null right before it. The game still thought that sand existed and therefore was trying o make a block fall that wasn't there at all. After I found that it all worked out correctly. Thanks again for your help in trying to solve this issue.
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.