-
Flickering Texture bug
Thank you very much for the help
-
Flickering Texture bug
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)
-
Flickering Texture bug
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.
-
Flickering Texture bug
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
-
Unbreaking Armor
setMaxDamage(0);
-
Ore Dictionary: replacing single recipe
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.
-
Chaning block texture
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
-
Chaning block texture
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.
-
How to check for a blocks metadata
Thank you so much I have been looking in vain for a way to do this.
-
How to check for a blocks metadata
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.
-
How to check for a blocks metadata
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)); } }
-
How to check for a blocks metadata
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;
-
Installing a New Forge Development Environment
Are there any videos of setting u gradle, and btw What is gradle and how is it better or worse then current eclipse setup.
-
Minecraft not launching in eclipse
Check out these are the most up to date setup and by Pahimar
-
Installing a New Forge Development Environment
Check out the videos by Pahimar
IPS spam blocked by CleanTalk.