Ore Localizations and changed ore names to "techreborn.ore"

This commit is contained in:
Gig 2015-04-11 17:24:32 +01:00
parent 5d76333dd1
commit 57c38eb99e
5 changed files with 21 additions and 5 deletions

View file

@ -30,7 +30,7 @@ public class BlockOre extends Block{
public BlockOre(Material material)
{
super(material);
setBlockName("ore");
setBlockName("techreborn.ore");
setCreativeTab(TechRebornCreativeTab.instance);
setHardness(1f);
}

View file

@ -36,7 +36,7 @@ public class ModBlocks {
GameRegistry.registerTileEntity(TileQuantumChest.class, "TileQuantumChest");
ore = new BlockOre(Material.rock);
GameRegistry.registerBlock(ore, ItemBlockOre.class, "ore");
GameRegistry.registerBlock(ore, ItemBlockOre.class, "techreborn.ore");
}

View file

@ -4,6 +4,7 @@ import java.util.List;
import techreborn.Core;
import techreborn.client.TechRebornCreativeTab;
import techreborn.lib.ModInfo;
import net.minecraft.client.renderer.texture.IIconRegister;
import net.minecraft.creativetab.CreativeTabs;
import net.minecraft.item.Item;
@ -40,7 +41,7 @@ public class ItemDusts extends ItemTR
for (int i = 0; i < types.length; ++i)
{
textures[i] = iconRegister.registerIcon("techreborn" + "dust");
textures[i] = iconRegister.registerIcon(ModInfo.MOD_ID + "dust");
}
}

View file

@ -1,6 +1,7 @@
package techreborn.items;
import techreborn.client.TechRebornCreativeTab;
import techreborn.lib.ModInfo;
import net.minecraft.client.renderer.texture.IIconRegister;
import net.minecraft.item.Item;
@ -15,7 +16,7 @@ public class ItemTR extends Item{
@Override
public void registerIcons(IIconRegister iconRegister)
{
itemIcon = iconRegister.registerIcon("techreborn" + ":" + getUnlocalizedName().toLowerCase().substring(5));
itemIcon = iconRegister.registerIcon(ModInfo.MOD_ID + ":" + getUnlocalizedName().toLowerCase().substring(5));
}
}

View file

@ -3,3 +3,17 @@ itemGroup.techreborn=Tech Reborn
tile.techreborn.thermalGenerator.name=Thermal Generator
tile.techreborn.quantumTank.name=Quantum Tank
tile.techreborn.quantumChest.name=Quantum Chest
#Ores
tile.techreborn.ore.Galena.name=Galena Ore
tile.techreborn.ore.Iridium.name=Iridium Ore
tile.techreborn.ore.Ruby.name=Ruby Ore
tile.techreborn.ore.Sapphire.name=Sapphire Ore
tile.techreborn.ore.Bauxite.name=Bauxite Ore
tile.techreborn.ore.Pyrite.name=Pyrite Ore
tile.techreborn.ore.Cinnabar.name=Cinnabar Ore
tile.techreborn.ore.Sphalerite.name=Sphalerite Ore
tile.techreborn.ore.Tungston.name=Tungston Ore
tile.techreborn.ore.Sheldonite.name=Sheldonite Ore
tile.techreborn.ore.Olivine.name=Olivine Ore
tile.techreborn.ore.Sodalite.name=Sodalite Ore