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.

CovexLy

Members
  • Joined

  • Last visited

Everything posted by CovexLy

  1. Aaah okay that makes sense. Thanks for such quick response!
  2. So I'm tracing some issues I have placing a block that has Meta-data. I'm using this library for reference: forgeSrc-1.11.2-13.20.0.2262.jar. For the sake of this post I updated to the most recent MDK just before posting. The problem seem to originate in the referenced library net.minecraft.item.ItemBlock.class in function onItemUse(). As you see the function does ItemStack itemstack = player.getHeldItem(hand); and then int i = this.getMetadata(itemstack.getMetadata()); The problem here is that this.getMetadata() has two different calltypes (net.minecraft.item.item.class) Now, seeing as itemstack.getMetadata() returns the actual meta-data of the item as an int, the code int i = this.getMetadata(itemstack.getMetadata()); will ALWAYS return 0 as it calls public int getMetadata(int damage). This causes the problem I have that whenever I have one of my added blocks with meta-data as an item, and right-click to place it as a block, the placed block is always default (0) meta-variant. If this was intentional behaviour it seems strange to call itemstack.getMetadata() in the first place. It feels like the variable decleration should be int i = itemstack.getMetadata(); or possibly public int getMetadata(int damage) { return damage; }. Does anyone have any information on something I might be doing wrong here? I Am fairly new to modding in minecraft so I might just be missing something.

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.