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

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

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.

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.