-
[1.16.1] How to change color of block?
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
-
IDE Cant find Minecraft's methods
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
-
Get WitherSkeletonSkull in inventory
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
-
Get WitherSkeletonSkull in inventory
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?
-
bebeli555 joined the community
-
Get block in coordinates below player
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
IPS spam blocked by CleanTalk.