Jump to content
View in the app

A better way to browse. Learn more.

Forge Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Featured Replies

Posted

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.

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

 

  • 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.

try adding this

 

    /** Do blocks fall instantly to where they stop or do they fall over time */
    public static boolean fallInstantly = false;

  • 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.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

Important Information

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

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.