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.

Featured Replies

Posted

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

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...

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.