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.

jibbity

Members
  • Joined

  • Last visited

  1. Thank you very much for the help
  2. gotta hate typo's I will have a look thought http://www.minecraftforge.net/wiki/Packet_Handling i think that's what your getting at. But for now im off to party, Happy new years (even if it's a bit late / early depending on timezones)
  3. I missed that, I must have used add unimplemented method at one point. I think that made some progress, it still flickers however it doesn't require to be clicked for it to be seen.
  4. I have set up the block so that I has multiple textures however, there seems to be a bug were it only displays the correct textures when it's clicked you can see what I mean Does anyone know why this is happening The git hubs Block https://github.com/PandaTeam/HydroBlocks/blob/master/src/hydroblocks/blocks/BatteryBlock.java TileEntity https://github.com/PandaTeam/HydroBlocks/blob/master/src/hydroblocks/blocks/tileentities/TileEntityBattery.java
  5. setMaxDamage(0);
  6. I cant think of any way to do this is a crafting table, but you could create your own version of the FurnaceRecipes.class and build a custom block to do it for you.
  7. I have updated the code slightly, the main problem I'm having before I address scheduling updates (for now i'm just manually updating the texture my adding and breaking a block next to it), is that in the tool bar the block Icon appears correctly and when it's first placed it the texture changes correctly however it wont change under manual update to the correct texture. I think it may have to do with @Override @SideOnly(Side.CLIENT) public Icon getBlockTexture(IBlockAccess world, int x, int y, int z, int side) { TileEntityBattery battery = (TileEntityBattery)world.getBlockTileEntity(x, y, z); if (battery.isEmpty()) return emptyIcon; if (battery.isCharging()) return chargingIcon; if (battery.isFull()) return fullIcon; return blockIcon; } is there anther way to do this? or is this even correct Block Tile Entity
  8. What Im trying to do is change the texture of a block to have the appearance of a battery charge meter, and that every 10% the block updates the textures to show progress. I have tried to follow Vswe's tutorial however I haven't had much success. Is there something I have missed or im doing wrong? BatteryBlock TileEntityBattery.
  9. Thank you so much I have been looking in vain for a way to do this.
  10. That block ID belongs to forestry, and so far I haven't found an effective way other than using block ID to Idenfity that that block is Copper Ore.
  11. How do I fix the error with the X Y Z variable or make it so it knows that the X Y Z are. package hydroblocks.lib; import java.util.Random; import hydroblocks.items.Items; import net.minecraft.block.Block; import net.minecraft.client.resources.data.MetadataSection; import net.minecraft.entity.player.EntityPlayer; import net.minecraft.item.ItemStack; import net.minecraft.world.World; import net.minecraftforge.event.ForgeSubscribe; import net.minecraftforge.event.world.BlockEvent; import net.minecraftforge.event.world.BlockEvent.HarvestDropsEvent; public class EventHooks { Random random = new Random(); @ForgeSubscribe public void onHarvestDrops(HarvestDropsEvent event) { int meta = World.getBlockMetaData(x,y,z); // cobble sledgehammer if (event.harvester != null && event.harvester.getHeldItem() != null && event.harvester.getHeldItem().itemID == Items.cobblesledgehammer.itemID) { if (event.block.blockID == 1398 && meta == 2) { event.drops.clear(); event.dropChance = 1.0F; event.drops.add(new ItemStack(Items.copperfragments, random.nextInt(2) + 1)); } }
  12. I want to check for a blocks meta data but im not sure how. Im useing this within the onHarvestDrops(BlockEvent.HarvestDropsEvent event) forge event. if (event.block.blockID == 1398){ //if block meta data == 2 { event.drops.clear(); event.drops.add(new ItemStack(Items.tinfragments, random.nextInt(2) + 1)); event.dropChance = 1.0F;
  13. Are there any videos of setting u gradle, and btw What is gradle and how is it better or worse then current eclipse setup.
  14. Check out these are the most up to date setup and by Pahimar
  15. Check out the videos by Pahimar

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.