-
[1.7.2] Item not taking damage in crafting
They are not working means that I cannot set stack size to 1 , I still pick up 64 items in game. Is there anything to do with my main class? There is set the item like - public static Item damageItem;
-
[1.7.2] Item not taking damage in crafting
okay changed it but my super constructor is still not working. So I cannot setMaxStack and code not working.
-
[1.7.2] Item not taking damage in crafting
I know that this is a common topic but I just cant get it to work. I already have tried getContainerItem and getting return with +1 damage. Also my super constructor doesn't seem to work. Here is my code. public class DamageItem extends Item { public DamageItem(){ super(); setMaxStackSize(1); setNoRepair(); setMaxDamage(20); } @Override public boolean hasContainerItem(ItemStack stack) { return true; } @Override public boolean doesContainerItemLeaveCraftingGrid(ItemStack itemstack) { return true; } public boolean isItemStackDamageable() { return true; } public ItemStack getContainerItemStack(ItemStack itemStack, EntityPlayer player) { itemStack.setItemDamage(this.getDamage(itemStack) + 1); return itemStack; }
-
[1.7.2]Textures Not Appearing [Solved]
And It Worked... ALL HAIL DIESIEBEN
-
[1.7.2]Textures Not Appearing [Solved]
Okay so I edited the code (completely removed it) and just added a line in my base mod class. public static Block basicBlock = new BasicBlock(Material.rock).setCreativeTab(CreativeTabs.tabBlock).setBlockName("basicBlock").setLightLevel(1.0f).setBlockTextureName(Basic.modid + ":" + "basicBlock");
-
[1.7.2]Textures Not Appearing [Solved]
I started 1.7.2 modding just few days ago and I'm struggling with textures. No matter how much i try they just don't appear. I have my files in /src/main/resources/assets/Try/Mod/blocks/basicBlock.png Here is my code: <code> public class BasicBlock extends Block { @SideOnly(Side.CLIENT) protected IIcon blockIcon; protected BasicBlock() { super(Material.ground); this.setCreativeTab(CreativeTabs.tabBlock).setBlockTextureName(Basic.modid + ":" + "basicBlock"); } @SideOnly(Side.CLIENT) @Override public void registerBlockIcons(IIconRegister p_149651_1_) { blockIcon = p_149651_1_.registerIcon(Basic.modid + ":" + this.getUnlocalizedName().substring(5)); } @SideOnly(Side.CLIENT) @Override public IIcon getIcon(int p_149691_1_, int p_149691_2_) { return blockIcon; } } } </code> Here is what console shows : Using missing texture, unable to load basic:textures/blocks/basicBlock.png java.io.FileNotFoundException: basic:textures/blocks/basicBlock.png at net.minecraft.client.resources.SimpleReloadableResourceManager.getResource(SimpleReloadableResourceManager.java:71) ~[simpleReloadableResourceManager.class:?] at net.minecraft.client.renderer.texture.TextureMap.loadTextureAtlas(TextureMap.java:126) [TextureMap.class:?] at net.minecraft.client.renderer.texture.TextureMap.loadTexture(TextureMap.java:91) [TextureMap.class:?] at net.minecraft.client.renderer.texture.TextureManager.loadTexture(TextureManager.java:89) [TextureManager.class:?] at net.minecraft.client.renderer.texture.TextureManager.loadTickableTexture(TextureManager.java:71) [TextureManager.class:?] at net.minecraft.client.renderer.texture.TextureManager.loadTextureMap(TextureManager.java:58) [TextureManager.class:?] at net.minecraft.client.Minecraft.startGame(Minecraft.java:581) [Minecraft.class:?]
-
[1.6.4] Inventory Potion Effects [Solved]
Thx for the reply So I just use the onUpdate in my item Class ? Got it.
-
[1.6.4] Inventory Potion Effects [Solved]
Im working on a mod , in which I created a ring. So I want a little help. I know the way to get regeneration effect while holding the ring as your current item but I cannot find a way to get regeneration effect from the ring having it in your inventory and not necessarily in your hand. Please help. Any Help Will Be Appreciated.
IPS spam blocked by CleanTalk.