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.

bebeli555

Members
  • Joined

  • Last visited

  1. How could i change the color of a block into like green? is there a easy way to do this So basicly like if the block is air for example how can i turn it to some color
  2. So i downloaded a open source code from github and ran. gradlew.bat setupDecompWorkspace and gradlew.bat build but it cant find anything from mc or minecraft? How can i like link minecraft's jar so it could use its methods
  3. Nvm i figured it out int newSlot = -1; for(int i = 0; i < 9; i++) { // filter out non-block items ItemStack stack = mc.player.inventory.getStackInSlot(i); if(stack == ItemStack.EMPTY || !(stack.getItem() instanceof ItemSkull)) { continue; } newSlot = i; break; } // check if any blocks were found if(newSlot == -1) return; // set slot int oldSlot = mc.player.inventory.currentItem; mc.player.inventory.currentItem = newSlot; This doesnt check if the skull is wither skeleton but whatever i never have other skulls than that so
  4. So i know how to get blocks in inventory like this int newSlot = -1; for(int i = 0; i < 9; i++) { // filter out non-block items ItemStack stack = mc.player.inventory.getStackInSlot(i); if(stack == ItemStack.EMPTY || !(stack.getItem() instanceof ItemBlock)) { continue; } // only use whitelisted blocks Block block = ((ItemBlock) stack.getItem()).getBlock(); if(!ec.getValBoolean()){ if (!(block instanceof BlockSoulSand)) { continue; } } else { if (!(block instanceof BlockSoulSand) && !(block instanceof BlockSoulSand)) { continue; } } newSlot = i; break; } // check if any blocks were found if(newSlot == -1) return; // set slot int oldSlot = mc.player.inventory.currentItem; mc.player.inventory.currentItem = newSlot; But how can i do this for a wither skeleton skull its not a block?
  5. bebeli555 joined the community
  6. So how can i like get a block 2 blocks below the coordinates of the player and then check if the block 2 Y below the player is AIR. In 1.12.2

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.