Jump to content

Animated Textures


BlackMage

Recommended Posts

So im trying to add a animated texture to my mod using a mcmeta file and am having some trouble doing so, the BluStoneOre.png and BluStoneOre.png.mcmeta are both in the texture folder though the block is not properly rendering.

 

BluStoneOre.java

package com.BlackMage.BluTech.Blocks;

import java.util.Random;

import com.BlackMage.BluTech.BluTech;
import com.BlackMage.BluTech.CreativeTabsBluTech;

import net.minecraft.block.Block;
import net.minecraft.block.material.Material;
import net.minecraft.creativetab.CreativeTabs;
import net.minecraft.item.Item;

public class BluStoneOre extends Block
{
public BluStoneOre()
{
	super(Material.rock);
	setBlockName(BluTech.MODID + "_" + "BluStoneOre");
        setBlockTextureName(BluTech.MODID + ":" + "BluStoneOre");
        setCreativeTab(CreativeTabsBluTech.BLOCKS.get());
     //@param level Harvest level:
     //Wood:    0
     //Stone:   1
     //Iron:    2
     //Diamond: 3
     //Gold:    0
	setHarvestLevel("pickaxe",3);
	//sets how long it takes to harvest (3.0F is normal ore)
	setHardness(5.0F);
	//sets explosion resistance (5.0F is normal ore)
	setResistance(7.0F);
}

public Block getBlockDropped(int metadata, Random rand, int fortune)
    {
        return BluTech.BluStoneOre;
    }
}

 

BluStoneOre.png.mcmeta

{
  "animation": {
    "frametime": 3,
    "frames": [
      0,
      1,
      2,
      3,
      4,
      5,
      6,
      5,
      4,
      3,
      2,
      1
    ]
  }
}

 

BluStoneOre.png

http://forgewareinc.com/modpack/BluStoneOre.png

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.