Jump to content

Adding Names with Language Registry


Julienlego

Recommended Posts

This is silly, but all of the names to be used in-game aren't being registered right with Language Registry. All blocks have the same name as the last block name registered (in this case "Incinerator") and the exact same goes for items (in this case "Ash"). I first thought it was because I moved all the registering related stuff into a seperate class and that the methods are static, but when I tried registering the names in the mod initializer, I got the same issue. This is really frustrating cause it seems like I'm the only person who's having this kind of problem.

 

Here's my core mod class:

package mods.minetech;

import mods.minetech.block.*;
import mods.minetech.gui.GuiManager;
import mods.minetech.items.*;
import mods.minetech.util.RecipeManager;
import net.minecraft.block.Block;
import net.minecraft.creativetab.CreativeTabs;
import net.minecraft.item.Item;
import cpw.mods.fml.common.Mod;
import cpw.mods.fml.common.Mod.*;
import cpw.mods.fml.common.SidedProxy;
import cpw.mods.fml.common.event.*;
import cpw.mods.fml.common.network.*;
import cpw.mods.fml.common.registry.GameRegistry;
import cpw.mods.fml.common.registry.LanguageRegistry;

@Mod(modid = "Jules_Mod773", name = "minetech", version = "1.0.0")
@NetworkMod(clientSideRequired = true, serverSideRequired = false)
public class MTCore {

@Instance("minetech")
public static MTCore instance;
@SidedProxy(clientSide = "mods.minetech.ClientProxy", serverSide = "mods.minetech.CommonProxy")
public static CommonProxy proxy;

/* switch if advanced tools are enabled*/
private static boolean isAdvanced = false;

//declares items
    public static final Item coke = new ItemCoke(700).setUnlocalizedName("coke").setCreativeTab(CreativeTabs.tabMisc);
    public static final Item copperIngot = new GenericItem(701).setUnlocalizedName("copperIngot").setCreativeTab(CreativeTabs.tabMaterials);
    public static final Item aluminiumIngot = new GenericItem(702).setUnlocalizedName("aluminiumIngot").setCreativeTab(CreativeTabs.tabMaterials);
    public static final Item graphiteFlakes = new GenericItem(703).setUnlocalizedName("graphiteDust").setCreativeTab(CreativeTabs.tabMisc);
    public static final Item steelIngot = new GenericItem(704).setUnlocalizedName("steelIngot").setCreativeTab(CreativeTabs.tabMaterials);
    public static final Item carbonsteelIngot = new GenericItem(705).setUnlocalizedName("carbonSteelIngot").setCreativeTab(CreativeTabs.tabMaterials);
    public static final Item titaniumSponge = new GenericItem(706).setUnlocalizedName("titaniumSponge").setCreativeTab(CreativeTabs.tabMaterials);
    public static final Item titaniumIngot = new GenericItem(707).setUnlocalizedName("titaniumIngot").setCreativeTab(CreativeTabs.tabMaterials);
    public static final Item obsidiantitaniumIngot = new GenericItem(708).setUnlocalizedName("obsidianTitaniumIngot").setCreativeTab(CreativeTabs.tabMaterials);
    public static final Item magnesiumDust = new GenericItem(709).setUnlocalizedName("magnesiumDust").setCreativeTab(CreativeTabs.tabMisc);
    public static final Item slimegel = new GenericItem(710).setUnlocalizedName("slimeGel").setCreativeTab(CreativeTabs.tabMisc);
    public static final Item glycerin = new GenericItem(711).setUnlocalizedName("glycerin").setCreativeTab(CreativeTabs.tabMisc);
    public static final Item glycerinNitro = new ItemNitroGlycerin(712).setUnlocalizedName("glycerinNitro").setCreativeTab(CreativeTabs.tabTools);
    public static final Item stickyTorch = new ItemStickyTorch(713).setUnlocalizedName("stickyTorchItem").setCreativeTab(CreativeTabs.tabTools);
    public static final Item obsidianIngot = new GenericItem(714).setUnlocalizedName("obsidianIngot").setCreativeTab(CreativeTabs.tabMaterials);
    public static final Item ash = new ItemAsh(715).setUnlocalizedName("ash").setCreativeTab(CreativeTabs.tabMisc);
    
    //declares weapons and tools
    public static final Item swordCopper = new GenericSword(716, MTEnumToolMaterial.Copper).setUnlocalizedName("copperSword").setCreativeTab(CreativeTabs.tabTools);
    public static final Item pickaxeCopper = new GenericPickaxe(717, MTEnumToolMaterial.Copper).setUnlocalizedName("copperPickaxe").setCreativeTab(CreativeTabs.tabTools);
    public static final Item axeCopper = new GenericAxe(718, MTEnumToolMaterial.Copper).setUnlocalizedName("copperAxe").setCreativeTab(CreativeTabs.tabTools);
    public static final Item hoeCopper = new GenericHoe(719, MTEnumToolMaterial.Copper).setUnlocalizedName("copperHoe").setCreativeTab(CreativeTabs.tabTools);
    public static final Item shovelCopper = new GenericSpade(720, MTEnumToolMaterial.Copper).setUnlocalizedName("copperSpade").setCreativeTab(CreativeTabs.tabTools);
    public static final Item swordAluminium = new GenericSword(721, MTEnumToolMaterial.Aluminium).setUnlocalizedName("aluminiumSword").setCreativeTab(CreativeTabs.tabTools);
    public static final Item pickaxeAluminium = new GenericPickaxe(722, MTEnumToolMaterial.Aluminium).setUnlocalizedName("aluminiumPickaxe").setCreativeTab(CreativeTabs.tabTools);
    public static final Item axeAluminium = new GenericAxe(723, MTEnumToolMaterial.Aluminium).setUnlocalizedName("aluminiumAxe").setCreativeTab(CreativeTabs.tabTools);
    public static final Item hoeAluminium = new GenericHoe(724, MTEnumToolMaterial.Aluminium).setUnlocalizedName("aluminiumHoe").setCreativeTab(CreativeTabs.tabTools);
    public static final Item shovelAluminium = new GenericSpade(725, MTEnumToolMaterial.Aluminium).setUnlocalizedName("aluminiumSpade").setCreativeTab(CreativeTabs.tabTools);
    public static final Item swordSteel = new GenericSword(726, MTEnumToolMaterial.Steel).setUnlocalizedName("steelSword").setCreativeTab(CreativeTabs.tabTools);
    public static final Item pickaxeSteel = new GenericPickaxe(727, MTEnumToolMaterial.Steel).setUnlocalizedName("steelPickaxe").setCreativeTab(CreativeTabs.tabTools);
    public static final Item axeSteel = new GenericAxe(728, MTEnumToolMaterial.Steel).setUnlocalizedName("steelAxe").setCreativeTab(CreativeTabs.tabTools);
    public static final Item hoeSteel = new GenericHoe(729, MTEnumToolMaterial.Steel).setUnlocalizedName("steelHoe").setCreativeTab(CreativeTabs.tabTools);
    public static final Item shovelSteel = new GenericSpade(730, MTEnumToolMaterial.Steel).setUnlocalizedName("steelSpade").setCreativeTab(CreativeTabs.tabTools);
    public static final Item swordCarbonSteel = new GenericSword(731, MTEnumToolMaterial.CarbonSteel).setUnlocalizedName("carbonSteelSword").setCreativeTab(CreativeTabs.tabTools);
    public static final Item pickaxeCarbonSteel = new GenericPickaxe(732, MTEnumToolMaterial.CarbonSteel).setUnlocalizedName("carbonSteelPickaxe").setCreativeTab(CreativeTabs.tabTools);
    public static final Item axeCarbonSteel = new GenericAxe(733, MTEnumToolMaterial.CarbonSteel).setUnlocalizedName("carbonSteelAxe").setCreativeTab(CreativeTabs.tabTools);
    public static final Item hoeCarbonSteel = new GenericHoe(734, MTEnumToolMaterial.CarbonSteel).setUnlocalizedName("carbonSteelHoe").setCreativeTab(CreativeTabs.tabTools);
    public static final Item shovelCarbonSteel = new GenericSpade(735, MTEnumToolMaterial.CarbonSteel).setUnlocalizedName("carbonSteelSpade").setCreativeTab(CreativeTabs.tabTools);
    public static final Item swordTitanium = new GenericSword(736, MTEnumToolMaterial.Titanium).setUnlocalizedName("titaniumSword").setCreativeTab(CreativeTabs.tabTools);
    public static final Item pickaxeTitanium = new GenericPickaxe(737, MTEnumToolMaterial.Titanium).setUnlocalizedName("titaniumPickaxe").setCreativeTab(CreativeTabs.tabTools);
    public static final Item axeTitanium = new GenericAxe(738, MTEnumToolMaterial.Titanium).setUnlocalizedName("titaniumAxe").setCreativeTab(CreativeTabs.tabTools);
    public static final Item hoeTitanium = new GenericHoe(739, MTEnumToolMaterial.Titanium).setUnlocalizedName("titaniumHoe").setCreativeTab(CreativeTabs.tabTools);
    public static final Item shovelTitanium = new GenericSpade(740, MTEnumToolMaterial.Titanium).setUnlocalizedName("titaniumSpade").setCreativeTab(CreativeTabs.tabTools);
    public static final Item swordObsidianTitanium = new GenericSword(741, MTEnumToolMaterial.ObsidianTitanium).setUnlocalizedName("obsidianTitaniumSword").setCreativeTab(CreativeTabs.tabTools);
    public static final Item pickaxeObsidianTitanium = new GenericPickaxe(742, MTEnumToolMaterial.ObsidianTitanium).setUnlocalizedName("obsidianTitaniumPickaxe").setCreativeTab(CreativeTabs.tabTools);
    public static final Item axeObsidianTitanium = new GenericAxe(743, MTEnumToolMaterial.ObsidianTitanium).setUnlocalizedName("obsidianTitaniumAxe").setCreativeTab(CreativeTabs.tabTools);
    public static final Item hoeObsidianTitanium = new GenericHoe(744, MTEnumToolMaterial.ObsidianTitanium).setUnlocalizedName("obsidianTitaniumHoe").setCreativeTab(CreativeTabs.tabTools);
    public static final Item shovelObsidianTitanium = new GenericSpade(745, MTEnumToolMaterial.ObsidianTitanium).setUnlocalizedName("obsidianTitaniumSpade").setCreativeTab(CreativeTabs.tabTools);
    
    //declares blocks
    public static final Block bioCarbonizerOn = new BlockBioCarbonizer(900, true).setHardness(3.5F).setLightValue(0.875F);
    public static final Block bioCarbonizerOff = new BlockBioCarbonizer(901, false).setHardness(3.5F).setCreativeTab(CreativeTabs.tabDecorations);
    public static final Block bauxiteOre = new BlockBauxite(902).setUnlocalizedName("aluminiumOre").setHardness(3F).setResistance(5F).setStepSound(Block.soundStoneFootstep);//aluminium ore
    public static final Block copperOre = new BlockCopper(903).setUnlocalizedName("copperOre").setHardness(3F).setResistance(5F).setStepSound(Block.soundStoneFootstep);
    public static final Block titaniumOre = new BlockTitaniumOre(904, 6).setUnlocalizedName("titaniumOre").setHardness(3F).setResistance(5F).setStepSound(Block.soundStoneFootstep);
    public static final Block dolomite = new BlockDolomite(905, 3).setUnlocalizedName("magnesiumOre").setHardness(3F).setResistance(5F).setStepSound(Block.soundStoneFootstep);//magnesium ore
    public static final Block magnesiumBrick = new BlockMagnesiumBrick(906).setUnlocalizedName("magnesiumBrick").setHardness(0.3F).setResistance(10F).setLightValue(1.0F).setStepSound(Block.soundStoneFootstep).setCreativeTab(CreativeTabs.tabDecorations);
    public static final Block magnesiumBlock = new BlockMagnesium(907).setUnlocalizedName("magnesiumBlock").setHardness(0.1F).setStepSound(Block.soundClothFootstep).setCreativeTab(CreativeTabs.tabDecorations);
    public static final Block lumpgraphite = new BlockLumpGraphite(908).setUnlocalizedName("graphiteOre").setHardness(3F).setResistance(5F).setStepSound(Block.soundStoneFootstep);//graphite ore
    public static final Block blastOn = new BlockBlast(909, true).setHardness(3.5F);
    public static final Block blastOff = new BlockBlast(910, false).setHardness(3.5F).setLightValue(0.875F).setCreativeTab(CreativeTabs.tabDecorations);
    public static final Block incineratorOn = new BlockIncinerator(911, true).setHardness(3.5F).setLightValue(0.875F);
    public static final Block incineratorOff = new BlockIncinerator(912, false).setHardness(3.5F).setCreativeTab(CreativeTabs.tabDecorations);
    public static final Block miningTnt = new BlockMiningTNT(913).setHardness(0.0F).setStepSound(Block.soundGrassFootstep).setCreativeTab(CreativeTabs.tabDecorations);
    public static final Block stickyglowBlock = new BlockStickyTorch(914).setUnlocalizedName("stickyTorch").setLightValue(1.0F);
    public static final Block uraninite = new BlockUraniumOre(915).setUnlocalizedName("uraniumOre").setHardness(0.3F).setResistance(5F).setStepSound(Block.soundStoneFootstep).setCreativeTab(CreativeTabs.tabDecorations).setLightValue(0.875F);
    public static final Block redGlass = new BlockStainedGlass(916).setUnlocalizedName("glassRed").setHardness(0.3F).setCreativeTab(CreativeTabs.tabDecorations).setStepSound(Block.soundGlassFootstep);
    public static final Block blueGlass = new BlockStainedGlass(917).setUnlocalizedName("glassBlue").setHardness(0.3F).setCreativeTab(CreativeTabs.tabDecorations).setStepSound(Block.soundGlassFootstep);
    public static final Block yellowGlass = new BlockStainedGlass(918).setUnlocalizedName("glassYellow").setHardness(0.3F).setCreativeTab(CreativeTabs.tabDecorations).setStepSound(Block.soundGlassFootstep);
    public static final Block greenGlass = new BlockStainedGlass(919).setUnlocalizedName("glassGreen").setHardness(0.3F).setCreativeTab(CreativeTabs.tabDecorations).setStepSound(Block.soundGlassFootstep);
    
    @PreInit
    public void preInit(FMLPreInitializationEvent event){
    	/* checks for MTCoreAdvanced */
    	try{
    		Class a = Class.forName("minetech.common.MTCoreAdvanced");
    		isAdvanced = false;
    		System.out.println("MineTech Core: Advanced Core found !");
    	}
    	catch (ClassNotFoundException e) {
    	      System.out.println("MineTech Core: Advanced Core not detected, reason: " + e);
    	}
    }
    
    @Init
    public void loadMod(FMLInitializationEvent initEvent){
    	loadNames();
    	MTRegistry.registerNames(this);
	MTRegistry.registerBlocks(this);
	MTRegistry.registerAllEntities(this);
	RecipeManager.addAllRecipes();
	NetworkRegistry.instance().registerGuiHandler(instance, new GuiManager());
	GameRegistry.registerWorldGenerator(new MTWorldGenerator());
    }
    
    @PostInit
    public void postInit(FMLPostInitializationEvent event) {
            // Stub Method
    }
    
    /** Returns true if advanced is enabled */
    public static boolean isAdvanced(){
    	return isAdvanced;
    }
    
    public void loadNames(){
    	LanguageRegistry.addName(redGlass, "Red Glass");
        LanguageRegistry.addName(blueGlass, "Blue Glass");
        LanguageRegistry.addName(greenGlass, "Green Glass");
        LanguageRegistry.addName(yellowGlass, "Yellow Glass");
        LanguageRegistry.addName(coke, "Coke");
        LanguageRegistry.addName(bioCarbonizerOff, "Bio Carbonizer");
        LanguageRegistry.addName(blastOff, "Blast");
        LanguageRegistry.addName(bauxiteOre, "Bauxite");
        LanguageRegistry.addName(copperOre, "Porphyry Copper");
        LanguageRegistry.addName(aluminiumIngot, "Aluminum Ingot");
        LanguageRegistry.addName(copperIngot, "Copper Ingot");
        LanguageRegistry.addName(graphiteFlakes, "Graphite Flakes");
        LanguageRegistry.addName(lumpgraphite, "Lump Graphite");
        LanguageRegistry.addName(titaniumOre, "Titanium Ore");
        LanguageRegistry.addName(dolomite, "Dolomite");
        LanguageRegistry.addName(magnesiumBrick, "Magnesium Brick");
        LanguageRegistry.addName(titaniumIngot, "Titanium Ingot");
        LanguageRegistry.addName(titaniumSponge, "Titanium Sponge");
        LanguageRegistry.addName(magnesiumDust, "Magnesium Dust");
        LanguageRegistry.addName(magnesiumBlock, "Magnesium Block");
        LanguageRegistry.addName(steelIngot, "Steel Ingot");
        LanguageRegistry.addName(carbonsteelIngot, "Carbon-Steel Ingot");
        LanguageRegistry.addName(obsidiantitaniumIngot, "Obsidian-Titanium Ingot");
        LanguageRegistry.addName(swordCopper, "Copper Sword");
        LanguageRegistry.addName(pickaxeCopper, "Copper Pickaxe");
        LanguageRegistry.addName(axeCopper, "Copper Axe");
        LanguageRegistry.addName(hoeCopper, "Copper Hoe");
        LanguageRegistry.addName(shovelCopper, "Copper Shovel");
        LanguageRegistry.addName(swordAluminium, "Aluminium Sword");
        LanguageRegistry.addName(pickaxeAluminium, "Aluminium Pickaxe");
        LanguageRegistry.addName(axeAluminium, "Aluminium Axe");
        LanguageRegistry.addName(hoeAluminium, "Aluminium How");
        LanguageRegistry.addName(shovelAluminium, "Aluminium Shovel");
        LanguageRegistry.addName(swordTitanium, "Titanium Sword");
        LanguageRegistry.addName(pickaxeTitanium, "Titanium Pickaxe");
        LanguageRegistry.addName(axeTitanium, "Titanium Axe");
        LanguageRegistry.addName(hoeTitanium, "Titanium Hoe");
        LanguageRegistry.addName(shovelTitanium, "Ttitanium Shovel");
        LanguageRegistry.addName(swordSteel,"Steel Sword");
        LanguageRegistry.addName(pickaxeSteel, "Steel Pickaxe");
        LanguageRegistry.addName(axeSteel, "Steel Axe");
        LanguageRegistry.addName(hoeSteel, "Steel Hoe");
        LanguageRegistry.addName(shovelSteel, "Steel Shovel");
        LanguageRegistry.addName(swordCarbonSteel, "Carbon-Steel Sword");
        LanguageRegistry.addName(pickaxeCarbonSteel, "Carbon-Steel Pickaxe");
        LanguageRegistry.addName(axeCarbonSteel, "Carbon-Steel Axe");
        LanguageRegistry.addName(hoeCarbonSteel, "Carbon-Steel Hoe");
        LanguageRegistry.addName(shovelCarbonSteel, "Carbon-Steel Shovel");
        LanguageRegistry.addName(swordObsidianTitanium, "Obsidian-Titanium Sword");
        LanguageRegistry.addName(pickaxeObsidianTitanium, "Obsidian-Titanium Pickaxe");
        LanguageRegistry.addName(axeObsidianTitanium, "Obsidian-Titanium Axe");
        LanguageRegistry.addName(hoeObsidianTitanium, "Obsidian-Titanium Hoe");
        LanguageRegistry.addName(shovelObsidianTitanium, "Obsidian-Titanium Shovel");
        LanguageRegistry.addName(slimegel, "Slime Gel");
        LanguageRegistry.addName(glycerin, "Glycerin");
        LanguageRegistry.addName(stickyTorch, "Sticky Torch");
        LanguageRegistry.addName(uraninite, "Uranitite");
        LanguageRegistry.addName(obsidianIngot, "Obsidian Ingot");
        LanguageRegistry.addName(glycerinNitro, "Nitro-Glycerin");
        LanguageRegistry.addName(stickyglowBlock, "Sticky Torch Block");
        LanguageRegistry.addName(ash, "Ash");
        LanguageRegistry.addName(miningTnt, "Mining TNT");
        LanguageRegistry.addName(incineratorOff, "Incinerator");
    }
}

 

And here's my registry class:

package mods.minetech;

import mods.minetech.entities.EntityNitroGlycerin;
import mods.minetech.entities.EntityStickyTorch;
import mods.minetech.tileentities.TileEntityBioCarbonizer;
import mods.minetech.tileentities.TileEntityBlast;
import mods.minetech.tileentities.TileEntityIncinerator;
import net.minecraft.item.ItemStack;
import net.minecraft.src.ModLoader;
import net.minecraftforge.oredict.OreDictionary;
import cpw.mods.fml.common.registry.EntityRegistry;
import cpw.mods.fml.common.registry.GameRegistry;
import cpw.mods.fml.common.registry.LanguageRegistry;

public class MTRegistry{

//Registers names for all blocks, items, entities
	public static void registerNames(MTCore mod){

        /*LanguageRegistry.addName(mod.redGlass, "Red Glass");
        LanguageRegistry.addName(mod.blueGlass, "Blue Glass");
        LanguageRegistry.addName(mod.greenGlass, "Green Glass");
        LanguageRegistry.addName(mod.yellowGlass, "Yellow Glass");
        LanguageRegistry.addName(mod.coke, "Coke");
        LanguageRegistry.addName(mod.bioCarbonizerOff, "Bio Carbonizer");
        LanguageRegistry.addName(mod.blastOff, "Blast");
        LanguageRegistry.addName(mod.bauxiteOre, "Bauxite");
        LanguageRegistry.addName(mod.copperOre, "Porphyry Copper");
        LanguageRegistry.addName(mod.aluminiumIngot, "Aluminum Ingot");
        LanguageRegistry.addName(mod.copperIngot, "Copper Ingot");
        LanguageRegistry.addName(mod.graphiteFlakes, "Graphite Flakes");
        LanguageRegistry.addName(mod.lumpgraphite, "Lump Graphite");
        LanguageRegistry.addName(mod.titaniumOre, "Titanium Ore");
        LanguageRegistry.addName(mod.dolomite, "Dolomite");
        LanguageRegistry.addName(mod.magnesiumBrick, "Magnesium Brick");
        LanguageRegistry.addName(mod.titaniumIngot, "Titanium Ingot");
        LanguageRegistry.addName(mod.titaniumSponge, "Titanium Sponge");
        LanguageRegistry.addName(mod.magnesiumDust, "Magnesium Dust");
        LanguageRegistry.addName(mod.magnesiumBlock, "Magnesium Block");
        LanguageRegistry.addName(mod.steelIngot, "Steel Ingot");
        LanguageRegistry.addName(mod.carbonsteelIngot, "Carbon-Steel Ingot");
        LanguageRegistry.addName(mod.obsidiantitaniumIngot, "Obsidian-Titanium Ingot");
        LanguageRegistry.addName(mod.swordCopper, "Copper Sword");
        LanguageRegistry.addName(mod.pickaxeCopper, "Copper Pickaxe");
        LanguageRegistry.addName(mod.axeCopper, "Copper Axe");
        LanguageRegistry.addName(mod.hoeCopper, "Copper Hoe");
        LanguageRegistry.addName(mod.shovelCopper, "Copper Shovel");
        LanguageRegistry.addName(mod.swordAluminium, "Aluminium Sword");
        LanguageRegistry.addName(mod.pickaxeAluminium, "Aluminium Pickaxe");
        LanguageRegistry.addName(mod.axeAluminium, "Aluminium Axe");
        LanguageRegistry.addName(mod.hoeAluminium, "Aluminium How");
        LanguageRegistry.addName(mod.shovelAluminium, "Aluminium Shovel");
        LanguageRegistry.addName(mod.swordTitanium, "Titanium Sword");
        LanguageRegistry.addName(mod.pickaxeTitanium, "Titanium Pickaxe");
        LanguageRegistry.addName(mod.axeTitanium, "Titanium Axe");
        LanguageRegistry.addName(mod.hoeTitanium, "Titanium Hoe");
        LanguageRegistry.addName(mod.shovelTitanium, "Ttitanium Shovel");
        LanguageRegistry.addName(mod.swordSteel,"Steel Sword");
        LanguageRegistry.addName(mod.pickaxeSteel, "Steel Pickaxe");
        LanguageRegistry.addName(mod.axeSteel, "Steel Axe");
        LanguageRegistry.addName(mod.hoeSteel, "Steel Hoe");
        LanguageRegistry.addName(mod.shovelSteel, "Steel Shovel");
        LanguageRegistry.addName(mod.swordCarbonSteel, "Carbon-Steel Sword");
        LanguageRegistry.addName(mod.pickaxeCarbonSteel, "Carbon-Steel Pickaxe");
        LanguageRegistry.addName(mod.axeCarbonSteel, "Carbon-Steel Axe");
        LanguageRegistry.addName(mod.hoeCarbonSteel, "Carbon-Steel Hoe");
        LanguageRegistry.addName(mod.shovelCarbonSteel, "Carbon-Steel Shovel");
        LanguageRegistry.addName(mod.swordObsidianTitanium, "Obsidian-Titanium Sword");
        LanguageRegistry.addName(mod.pickaxeObsidianTitanium, "Obsidian-Titanium Pickaxe");
        LanguageRegistry.addName(mod.axeObsidianTitanium, "Obsidian-Titanium Axe");
        LanguageRegistry.addName(mod.hoeObsidianTitanium, "Obsidian-Titanium Hoe");
        LanguageRegistry.addName(mod.shovelObsidianTitanium, "Obsidian-Titanium Shovel");
        LanguageRegistry.addName(mod.slimegel, "Slime Gel");
        LanguageRegistry.addName(mod.glycerin, "Glycerin");
        LanguageRegistry.addName(mod.stickyTorch, "Sticky Torch");
        LanguageRegistry.addName(mod.uraninite, "Uranitite");
        LanguageRegistry.addName(mod.obsidianIngot, "Obsidian Ingot");
        LanguageRegistry.addName(mod.glycerinNitro, "Nitro-Glycerin");
        LanguageRegistry.addName(mod.stickyglowBlock, "Sticky Torch Block");
        LanguageRegistry.addName(mod.ash, "Ash");
        LanguageRegistry.addName(mod.miningTnt, "Mining TNT");
        LanguageRegistry.addName(mod.incineratorOff, "Incinerator");*/
        
        /* adds Advanced Machines if enabled */
        if(mod.isAdvanced()){
        	//LanguageRegistry.addName(MTCoreAdvanced.transformer, "Transformer");
	        //LanguageRegistry.addName(MTCoreAdvanced.inductionFurnaceOff, "Induction Furnace");
	        //LanguageRegistry.addName(MTCoreAdvanced.geoGenOff, "Thermal Generator");
	        //LanguageRegistry.addName(MTCoreAdvanced.combGenOff, "Combustion Generator");
	        //LanguageRegistry.addName(MTCoreAdvanced.copperWire, "Copper Wire");
	        //LanguageRegistry.addName(MTCoreAdvanced.aluminiumWireItem, "Aluminium Wire");
	        //LanguageRegistry.addName(MTCoreAdvanced.copperWireItem, "Copper Wire");
	        //LanguageRegistry.addName(MTCoreAdvanced.aluminiumWire, "Aluminium Wire");
        	LanguageRegistry.addName(MTCoreAdvanced.twostrokeEngine, "2-Stroke Engine");
	        LanguageRegistry.addName(MTCoreAdvanced.alternator, "Alternator");
	        LanguageRegistry.addName(MTCoreAdvanced.electricMotor, "Electric Motor");
	        LanguageRegistry.addName(MTCoreAdvanced.aluminiumCasing, "Aluminium Casing");
        }
	}

	//Registers all blocks
	public static void registerBlocks(MTCore mod){
        GameRegistry.registerBlock(mod.miningTnt, "miningTNT");
        GameRegistry.registerBlock(mod.bauxiteOre, "aluminiumOre");
        GameRegistry.registerBlock(mod.bioCarbonizerOff, "bioCarbonizer");
        GameRegistry.registerBlock(mod.copperOre, "copperOre");
        GameRegistry.registerBlock(mod.lumpgraphite, "graphiteOre");
        GameRegistry.registerBlock(mod.dolomite, "magnesiumOre");
        GameRegistry.registerBlock(mod.titaniumOre, "titaniumOre");
        GameRegistry.registerBlock(mod.magnesiumBrick, "magnesiumBrick");
        GameRegistry.registerBlock(mod.magnesiumBlock, "magnesiumBlock");
        GameRegistry.registerBlock(mod.blastOff, "blast");
        GameRegistry.registerBlock(mod.uraninite, "uraninite");
        GameRegistry.registerBlock(mod.stickyglowBlock, "stickyglowBlock");
        GameRegistry.registerBlock(mod.redGlass, "glassRed");
        GameRegistry.registerBlock(mod.blueGlass, "glassBlue");
        GameRegistry.registerBlock(mod.greenGlass, "glassGreen");
        GameRegistry.registerBlock(mod.yellowGlass, "glassYellow");
        GameRegistry.registerBlock(mod.incineratorOff, "incinerator");
        
        /* adds Advanced Machines if enabled */
        if(mod.isAdvanced()){
        	/*
        	GameRegistry.registerBlock(MTCoreAdvanced.inductionFurnaceOff);
	        GameRegistry.registerBlock(MTCoreAdvanced.inductionFurnaceOn);
	        GameRegistry.registerBlock(MTCoreAdvanced.geoGenOff);
	        GameRegistry.registerBlock(MTCoreAdvanced.geoGenOn);
	        GameRegistry.registerBlock(MTCoreAdvanced.transformer);
	        GameRegistry.registerBlock(MTCoreAdvanced.combGenOff);
	        GameRegistry.registerBlock(MTCoreAdvanced.combGenOn);
	        GameRegistry.registerBlock(MTCoreAdvanced.copperWire);
	        GameRegistry.registerBlock(MTCoreAdvanced.aluminiumWire);
	        */
        }
	}

	/** registers all entities and tile entities*/
	public static void registerAllEntities(MTCore mod){
		//EntityRegistry.registerModEntity(EntityNitroGlycerin.class, "nitroGlycerin", 1, MTCore.instance, 80, 3, false);
		//EntityRegistry.registerModEntity(EntityStickyTorch.class, "stickyTorch", 2, MTCore.instance, 80, 3, false);
		ModLoader.registerEntityID(EntityNitroGlycerin.class, "nitroGlycerin", 300);
		ModLoader.registerEntityID(EntityStickyTorch.class, "stickyTorch", 301);

		GameRegistry.registerTileEntity(TileEntityBioCarbonizer.class, "bioCarbonizer");
		GameRegistry.registerTileEntity(TileEntityBlast.class, "blast");
		GameRegistry.registerTileEntity(TileEntityIncinerator.class, "incinerator");
	}

	public static void OreRegistry(MTCore mod){
		OreDictionary.registerOre("ingotCopper", new ItemStack(mod.copperIngot));
		OreDictionary.registerOre("ingotAluminium", new ItemStack(mod.aluminiumIngot));
		OreDictionary.registerOre("ingotSteel", new ItemStack(mod.steelIngot));
		OreDictionary.registerOre("ingotCarbonSteel", new ItemStack(mod.carbonsteelIngot));
		OreDictionary.registerOre("ingotTitanium", new ItemStack(mod.titaniumIngot));
		OreDictionary.registerOre("oreCopper", mod.copperOre);
		OreDictionary.registerOre("oreAluminium", mod.bauxiteOre);
		OreDictionary.registerOre("oreMagnesium", mod.dolomite);
		OreDictionary.registerOre("oreTitanium", mod.titaniumOre);
		OreDictionary.registerOre("oreUranium", mod.uraninite);
	}

	public static void addSmeltingRecipes(MTCore mod){
		GameRegistry.addSmelting(mod.copperOre.blockID, new ItemStack(mod.copperIngot, 1), 1.0F);
		GameRegistry.addSmelting(mod.bauxiteOre.blockID, new ItemStack(mod.aluminiumIngot, 1), 1.0F);
		GameRegistry.addSmelting(mod.titaniumOre.blockID, new ItemStack(mod.titaniumSponge, 1), 2.0F);
		GameRegistry.addSmelting(mod.titaniumSponge.itemID, new ItemStack(mod.titaniumIngot, 1), 2F);
	}
}

Link to comment
Share on other sites

Instead of using the separate class for registering your names, just do it in your main class in the @Init method.  This piece of code is what is giving you errors:

 

MTRegistry.registerNames(this);

 

When it calls this it calls all of your mod blocks and names them all every name in the order they are in the class file, meaning that all of your blocks end up being named "Incinerator." Same goes for items.

Link to comment
Share on other sites

Unrelated, but worth pointing out:

 

 public static final Block greenGlass = new BlockStainedGlass(919).setUnlocalizedName("glassGreen").setHardness(0.3F).setCreativeTab(CreativeTabs.tabDecorations).setStepSound(Block.soundGlassFootstep);

 

Ew.  You're not using a config file for your block and item IDs!

Also, all those function calls to set names, hardness, and so on, I'd put those inside the class file, except where needed to override (eg. all your stained glass has the same hardness, so put that IN the class BlockStainedGlass, but they have different names, so keep that outside).

Apparently I'm a complete and utter jerk and come to this forum just like to make fun of people, be confrontational, and make your personal life miserable.  If you think this is the case, JUST REPORT ME.  Otherwise you're just going to get reported when you reply to my posts and point it out, because odds are, I was trying to be nice.

 

Exception: If you do not understand Java, I WILL NOT HELP YOU and your thread will get locked.

 

DO NOT PM ME WITH PROBLEMS. No help will be given.

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.



  • Recently Browsing

    • No registered users viewing this page.
  • Posts

    • Maybe it refers to the OpenGL error spam Make a test without Rubidium and Oculus
    • You can use the BlockBehaviour.canBeReplaced() method
    • Hey I'm trying to run minecraft ith some mods on forge but every time I get this error and I dont know what to do Here's the crash record: ---- Minecraft Crash Report ---- // Oh - I know what I did wrong! Time: 2024-02-25 17:51:26 Description: Initializing game org.spongepowered.asm.mixin.transformer.throwables.MixinTransformerError: An unexpected critical error was encountered     at org.spongepowered.asm.mixin.transformer.MixinProcessor.applyMixins(MixinProcessor.java:392) ~[mixin-0.8.5.jar:0.8.5+Jenkins-b310.git-155314e6e91465dad727e621a569906a410cd6f4] {}     at org.spongepowered.asm.mixin.transformer.MixinTransformer.transformClass(MixinTransformer.java:250) ~[mixin-0.8.5.jar:0.8.5+Jenkins-b310.git-155314e6e91465dad727e621a569906a410cd6f4] {}     at org.spongepowered.asm.service.modlauncher.MixinTransformationHandler.processClass(MixinTransformationHandler.java:131) ~[mixin-0.8.5.jar:0.8.5+Jenkins-b310.git-155314e6e91465dad727e621a569906a410cd6f4] {}     at org.spongepowered.asm.launch.MixinLaunchPluginLegacy.processClass(MixinLaunchPluginLegacy.java:131) ~[mixin-0.8.5.jar:0.8.5+Jenkins-b310.git-155314e6e91465dad727e621a569906a410cd6f4] {}     at cpw.mods.modlauncher.serviceapi.ILaunchPluginService.processClassWithFlags(ILaunchPluginService.java:156) ~[modlauncher-10.0.9.jar:10.0.9+10.0.9+main.dcd20f30] {}     at cpw.mods.modlauncher.LaunchPluginHandler.offerClassNodeToPlugins(LaunchPluginHandler.java:88) ~[modlauncher-10.0.9.jar:?] {}     at cpw.mods.modlauncher.ClassTransformer.transform(ClassTransformer.java:120) ~[modlauncher-10.0.9.jar:?] {}     at cpw.mods.modlauncher.TransformingClassLoader.maybeTransformClassBytes(TransformingClassLoader.java:50) ~[modlauncher-10.0.9.jar:?] {}     at cpw.mods.cl.ModuleClassLoader.readerToClass(ModuleClassLoader.java:113) ~[securejarhandler-2.1.10.jar:?] {}     at cpw.mods.cl.ModuleClassLoader.lambda$findClass$15(ModuleClassLoader.java:219) ~[securejarhandler-2.1.10.jar:?] {}     at cpw.mods.cl.ModuleClassLoader.loadFromModule(ModuleClassLoader.java:229) ~[securejarhandler-2.1.10.jar:?] {}     at cpw.mods.cl.ModuleClassLoader.findClass(ModuleClassLoader.java:219) ~[securejarhandler-2.1.10.jar:?] {}     at cpw.mods.cl.ModuleClassLoader.loadClass(ModuleClassLoader.java:135) ~[securejarhandler-2.1.10.jar:?] {}     at java.lang.ClassLoader.loadClass(ClassLoader.java:525) ~[?:?] {}     at net.minecraft.client.gui.Gui.<init>(Gui.java:142) ~[client-1.20.1-20230612.114412-srg.jar%23178!/:?] {re:mixin,pl:accesstransformer:B,xf:OptiFine:default,re:classloading,pl:accesstransformer:B,xf:OptiFine:default,pl:mixin:APP:do_a_barrel_roll.mixins.json:client.InGameHudMixin,pl:mixin:A}     at net.minecraftforge.client.gui.overlay.ForgeGui.<init>(ForgeGui.java:69) ~[forge-1.20.1-47.1.29-universal.jar%23183!/:?] {re:classloading}     at net.minecraft.client.Minecraft.<init>(Minecraft.java:521) ~[client-1.20.1-20230612.114412-srg.jar%23178!/:?] {re:mixin,pl:accesstransformer:B,pl:runtimedistcleaner:A,re:mixin,pl:accesstransformer:B,pl:runtimedistcleaner:A,re:classloading,pl:accesstransformer:B,pl:mixin:A,pl:runtimedistcleaner:A}     at net.minecraft.client.main.Main.main(Main.java:182) ~[1.20.1-forge-47.1.29-wrapper.jar:?] {re:classloading,pl:runtimedistcleaner:A}     at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:?] {}     at jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77) ~[?:?] {}     at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:?] {}     at java.lang.reflect.Method.invoke(Method.java:568) ~[?:?] {}     at net.minecraftforge.fml.loading.targets.CommonLaunchHandler.runTarget(CommonLaunchHandler.java:111) ~[fmlloader-1.20.1-47.1.29.jar:?] {}     at net.minecraftforge.fml.loading.targets.CommonLaunchHandler.clientService(CommonLaunchHandler.java:99) ~[fmlloader-1.20.1-47.1.29.jar:?] {}     at net.minecraftforge.fml.loading.targets.CommonClientLaunchHandler.lambda$makeService$0(CommonClientLaunchHandler.java:25) ~[fmlloader-1.20.1-47.1.29.jar:?] {}     at cpw.mods.modlauncher.LaunchServiceHandlerDecorator.launch(LaunchServiceHandlerDecorator.java:30) ~[modlauncher-10.0.9.jar:?] {}     at cpw.mods.modlauncher.LaunchServiceHandler.launch(LaunchServiceHandler.java:53) ~[modlauncher-10.0.9.jar:?] {}     at cpw.mods.modlauncher.LaunchServiceHandler.launch(LaunchServiceHandler.java:71) ~[modlauncher-10.0.9.jar:?] {}     at cpw.mods.modlauncher.Launcher.run(Launcher.java:108) ~[modlauncher-10.0.9.jar:?] {}     at cpw.mods.modlauncher.Launcher.main(Launcher.java:78) ~[modlauncher-10.0.9.jar:?] {}     at cpw.mods.modlauncher.BootstrapLaunchConsumer.accept(BootstrapLaunchConsumer.java:26) ~[modlauncher-10.0.9.jar:?] {}     at cpw.mods.modlauncher.BootstrapLaunchConsumer.accept(BootstrapLaunchConsumer.java:23) ~[modlauncher-10.0.9.jar:?] {}     at cpw.mods.bootstraplauncher.BootstrapLauncher.main(BootstrapLauncher.java:141) ~[bootstraplauncher-1.1.2.jar:?] {}     at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:?] {}     at jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77) ~[?:?] {}     at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:?] {}     at java.lang.reflect.Method.invoke(Method.java:568) ~[?:?] {}     at io.github.zekerzhayard.forgewrapper.installer.Main.main(Main.java:57) ~[?:?] {} Caused by: org.spongepowered.asm.mixin.injection.throwables.InjectionError: Critical injection failure: Argument modifier method doABarrelRoll$modifyDebugHudText(Ljava/lang/String;)Ljava/lang/String; in do_a_barrel_roll.mixins.json:client.roll.DebugHudMixin failed injection check, (0/1) succeeded. Scanned 1 target(s). Using refmap do_a_barrel_roll.refmap.json     at org.spongepowered.asm.mixin.injection.struct.InjectionInfo.postInject(InjectionInfo.java:468) ~[mixin-0.8.5.jar:0.8.5+Jenkins-b310.git-155314e6e91465dad727e621a569906a410cd6f4] {}     at org.spongepowered.asm.mixin.transformer.MixinTargetContext.applyInjections(MixinTargetContext.java:1362) ~[mixin-0.8.5.jar:0.8.5+Jenkins-b310.git-155314e6e91465dad727e621a569906a410cd6f4] {}     at org.spongepowered.asm.mixin.transformer.MixinApplicatorStandard.applyInjections(MixinApplicatorStandard.java:1051) ~[mixin-0.8.5.jar:0.8.5+Jenkins-b310.git-155314e6e91465dad727e621a569906a410cd6f4] {}     at org.spongepowered.asm.mixin.transformer.MixinApplicatorStandard.applyMixin(MixinApplicatorStandard.java:400) ~[mixin-0.8.5.jar:0.8.5+Jenkins-b310.git-155314e6e91465dad727e621a569906a410cd6f4] {}     at org.spongepowered.asm.mixin.transformer.MixinApplicatorStandard.apply(MixinApplicatorStandard.java:325) ~[mixin-0.8.5.jar:0.8.5+Jenkins-b310.git-155314e6e91465dad727e621a569906a410cd6f4] {}     at org.spongepowered.asm.mixin.transformer.TargetClassContext.apply(TargetClassContext.java:383) ~[mixin-0.8.5.jar:0.8.5+Jenkins-b310.git-155314e6e91465dad727e621a569906a410cd6f4] {}     at org.spongepowered.asm.mixin.transformer.TargetClassContext.applyMixins(TargetClassContext.java:365) ~[mixin-0.8.5.jar:0.8.5+Jenkins-b310.git-155314e6e91465dad727e621a569906a410cd6f4] {}     at org.spongepowered.asm.mixin.transformer.MixinProcessor.applyMixins(MixinProcessor.java:363) ~[mixin-0.8.5.jar:0.8.5+Jenkins-b310.git-155314e6e91465dad727e621a569906a410cd6f4] {}     ... 37 more A detailed walkthrough of the error, its code path and all known details is as follows: --------------------------------------------------------------------------------------- -- Head -- Thread: Render thread nullStacktrace:     at org.spongepowered.asm.mixin.transformer.MixinProcessor.applyMixins(MixinProcessor.java:392) ~[mixin-0.8.5.jar:0.8.5+Jenkins-b310.git-155314e6e91465dad727e621a569906a410cd6f4] {}     at org.spongepowered.asm.mixin.transformer.MixinTransformer.transformClass(MixinTransformer.java:250) ~[mixin-0.8.5.jar:0.8.5+Jenkins-b310.git-155314e6e91465dad727e621a569906a410cd6f4] {}     at org.spongepowered.asm.service.modlauncher.MixinTransformationHandler.processClass(MixinTransformationHandler.java:131) ~[mixin-0.8.5.jar:0.8.5+Jenkins-b310.git-155314e6e91465dad727e621a569906a410cd6f4] {}     at org.spongepowered.asm.launch.MixinLaunchPluginLegacy.processClass(MixinLaunchPluginLegacy.java:131) ~[mixin-0.8.5.jar:0.8.5+Jenkins-b310.git-155314e6e91465dad727e621a569906a410cd6f4] {}     at cpw.mods.modlauncher.serviceapi.ILaunchPluginService.processClassWithFlags(ILaunchPluginService.java:156) ~[modlauncher-10.0.9.jar:10.0.9+10.0.9+main.dcd20f30] {}     at cpw.mods.modlauncher.LaunchPluginHandler.offerClassNodeToPlugins(LaunchPluginHandler.java:88) ~[modlauncher-10.0.9.jar:?] {}     at cpw.mods.modlauncher.ClassTransformer.transform(ClassTransformer.java:120) ~[modlauncher-10.0.9.jar:?] {}     at cpw.mods.modlauncher.TransformingClassLoader.maybeTransformClassBytes(TransformingClassLoader.java:50) ~[modlauncher-10.0.9.jar:?] {}     at cpw.mods.cl.ModuleClassLoader.readerToClass(ModuleClassLoader.java:113) ~[securejarhandler-2.1.10.jar:?] {}     at cpw.mods.cl.ModuleClassLoader.lambda$findClass$15(ModuleClassLoader.java:219) ~[securejarhandler-2.1.10.jar:?] {}     at cpw.mods.cl.ModuleClassLoader.loadFromModule(ModuleClassLoader.java:229) ~[securejarhandler-2.1.10.jar:?] {}     at cpw.mods.cl.ModuleClassLoader.findClass(ModuleClassLoader.java:219) ~[securejarhandler-2.1.10.jar:?] {}     at cpw.mods.cl.ModuleClassLoader.loadClass(ModuleClassLoader.java:135) ~[securejarhandler-2.1.10.jar:?] {}     at java.lang.ClassLoader.loadClass(ClassLoader.java:525) ~[?:?] {}     at net.minecraft.client.gui.Gui.<init>(Gui.java:142) ~[client-1.20.1-20230612.114412-srg.jar%23178!/:?] {re:mixin,pl:accesstransformer:B,xf:OptiFine:default,re:classloading,pl:accesstransformer:B,xf:OptiFine:default,pl:mixin:APP:do_a_barrel_roll.mixins.json:client.InGameHudMixin,pl:mixin:A}     at net.minecraftforge.client.gui.overlay.ForgeGui.<init>(ForgeGui.java:69) ~[forge-1.20.1-47.1.29-universal.jar%23183!/:?] {re:classloading}     at net.minecraft.client.Minecraft.<init>(Minecraft.java:521) ~[client-1.20.1-20230612.114412-srg.jar%23178!/:?] {re:mixin,pl:accesstransformer:B,pl:runtimedistcleaner:A,re:mixin,pl:accesstransformer:B,pl:runtimedistcleaner:A,re:classloading,pl:accesstransformer:B,pl:mixin:A,pl:runtimedistcleaner:A} -- Initialization -- Details:     Modules:          ADVAPI32.dll:Erweiterte Windows 32 Base-API:10.0.19041.3691 (WinBuild.160101.0800):Microsoft Corporation         COMCTL32.dll:Bibliothek für Steuerelemente:6.10 (WinBuild.160101.0800):Microsoft Corporation         CRYPT32.dll:Krypto-API32:10.0.19041.3691 (WinBuild.160101.0800):Microsoft Corporation         CRYPTBASE.dll:Base cryptographic API DLL:10.0.19041.3636 (WinBuild.160101.0800):Microsoft Corporation         CRYPTSP.dll:Cryptographic Service Provider API:10.0.19041.3636 (WinBuild.160101.0800):Microsoft Corporation         ColorAdapterClient.dll:Microsoft Color Adapter Client:10.0.19041.3636 (WinBuild.160101.0800):Microsoft Corporation         CoreMessaging.dll:Microsoft CoreMessaging Dll:10.0.19041.3930:Microsoft Corporation         CoreUIComponents.dll:Microsoft Core UI Components Dll:10.0.19041.3636:Microsoft Corporation         DBGHELP.DLL:Windows Image Helper:10.0.19041.3636 (WinBuild.160101.0800):Microsoft Corporation         DEVOBJ.dll:Device Information Set DLL:10.0.19041.3996 (WinBuild.160101.0800):Microsoft Corporation         DNSAPI.dll:DNS-Client-API-DLL:10.0.19041.3691 (WinBuild.160101.0800):Microsoft Corporation         GDI32.dll:GDI Client DLL:10.0.19041.3996 (WinBuild.160101.0800):Microsoft Corporation         GLU32.dll:OpenGL-Hilfsprogrammbibliotheks-DLL:10.0.19041.3691 (WinBuild.160101.0800):Microsoft Corporation         IMM32.DLL:Multi-User Windows IMM32 API Client DLL:10.0.19041.3996 (WinBuild.160101.0800):Microsoft Corporation         IPHLPAPI.DLL:IP-Hilfs-API:10.0.19041.3691 (WinBuild.160101.0800):Microsoft Corporation         KERNEL32.DLL:Client-DLL für Windows NT-Basis-API:10.0.19041.3691 (WinBuild.160101.0800):Microsoft Corporation         KERNELBASE.dll:Client-DLL für Windows NT-Basis-API:10.0.19041.3691 (WinBuild.160101.0800):Microsoft Corporation         MMDevApi.dll:MMDevice-API:10.0.19041.3691 (WinBuild.160101.0800):Microsoft Corporation         MSASN1.dll:ASN.1 Runtime APIs:10.0.19041.3636 (WinBuild.160101.0800):Microsoft Corporation         MSCTF.dll:MSCTF-Server-DLL:10.0.19041.3691 (WinBuild.160101.0800):Microsoft Corporation         MpOav.dll:IOfficeAntiVirus Module:4.18.2203.5 (WinBuild.160101.0800):Microsoft Corporation         NLAapi.dll:Network Location Awareness 2:10.0.19041.3636 (WinBuild.160101.0800):Microsoft Corporation         NSI.dll:NSI User-mode interface DLL:10.0.19041.3636 (WinBuild.160101.0800):Microsoft Corporation         NTASN1.dll:Microsoft ASN.1 API:10.0.19041.1 (WinBuild.160101.0800):Microsoft Corporation         OLEAUT32.dll:OLEAUT32.DLL:10.0.19041.3636 (WinBuild.160101.0800):Microsoft Corporation         OpenAL.dll:Main implementation library:1.21.1:         POWRPROF.dll:Power Profile Helper DLL:10.0.19041.3691 (WinBuild.160101.0800):Microsoft Corporation         PROPSYS.dll:Microsoft-Eigenschaftensystem:7.0.19041.3691 (WinBuild.160101.0800):Microsoft Corporation         PSAPI.DLL:Process Status Helper:10.0.19041.3636 (WinBuild.160101.0800):Microsoft Corporation         RPCRT4.dll:Remoteprozeduraufruf-Laufzeitumgebung:10.0.19041.3691 (WinBuild.160101.0800):Microsoft Corporation         SETUPAPI.dll:Windows Setup-API:10.0.19041.3691 (WinBuild.160101.0800):Microsoft Corporation         SHCORE.dll:SHCORE:10.0.19041.3691 (WinBuild.160101.0800):Microsoft Corporation         SHELL32.dll:Allgemeine Windows-Shell-DLL:10.0.19041.3691 (WinBuild.160101.0800):Microsoft Corporation         UMPDC.dll         USER32.dll:Client-DLL für Windows USER-API (mehrere Benutzer):10.0.19041.3691 (WinBuild.160101.0800):Microsoft Corporation         USERENV.dll:Userenv:10.0.19041.3691 (WinBuild.160101.0800):Microsoft Corporation         VCRUNTIME140.dll:Microsoft® C Runtime Library:14.29.30139.0 built by: vcwrkspc:Microsoft Corporation         VERSION.dll:Version Checking and File Installation Libraries:10.0.19041.3636 (WinBuild.160101.0800):Microsoft Corporation         WINHTTP.dll:Windows HTTP-Dienste:10.0.19041.3691 (WinBuild.160101.0800):Microsoft Corporation         WINMM.dll:MCI API-DLL:10.0.19041.3691 (WinBuild.160101.0800):Microsoft Corporation         WINSTA.dll:Winstation Library:10.0.19041.3636 (WinBuild.160101.0800):Microsoft Corporation         WINTRUST.dll:Microsoft Trust Verification APIs:10.0.19041.3996 (WinBuild.160101.0800):Microsoft Corporation         WS2_32.dll:Windows Socket 2.0-32-Bit-DLL:10.0.19041.3691 (WinBuild.160101.0800):Microsoft Corporation         WSOCK32.dll:Windows Socket 32-Bit DLL:10.0.19041.3691 (WinBuild.160101.0800):Microsoft Corporation         WTSAPI32.dll:Windows Remote Desktop Session Host Server SDK APIs:10.0.19041.3636 (WinBuild.160101.0800):Microsoft Corporation         Wldp.dll:Windows-Sperrungsrichtlinie:10.0.19041.3691 (WinBuild.160101.0800):Microsoft Corporation         amsi.dll:Anti-Malware Scan Interface:10.0.19041.3636 (WinBuild.160101.0800):Microsoft Corporation         apphelp.dll:Clientbibliothek für Anwendungskompatibilität:10.0.19041.3691 (WinBuild.160101.0800):Microsoft Corporation         awt.dll:OpenJDK Platform binary:17.0.8.0:Microsoft         bcrypt.dll:Bibliothek mit kryptografischen Primitiven von Windows:10.0.19041.3691 (WinBuild.160101.0800):Microsoft Corporation         bcryptPrimitives.dll:Windows Cryptographic Primitives Library:10.0.19041.3636 (WinBuild.160101.0800):Microsoft Corporation         cfgmgr32.dll:Configuration Manager DLL:10.0.19041.3996 (WinBuild.160101.0800):Microsoft Corporation         clbcatq.dll:COM+ Configuration Catalog:2001.12.10941.16384 (WinBuild.160101.0800):Microsoft Corporation         combase.dll:Microsoft COM für Windows:10.0.19041.3691 (WinBuild.160101.0800):Microsoft Corporation         d3d11.dll:Direct3D 11 Runtime:10.0.19041.3636 (WinBuild.160101.0800):Microsoft Corporation         dbgcore.DLL:Windows Core Debugging Helpers:10.0.19041.3636 (WinBuild.160101.0800):Microsoft Corporation         dcomp.dll:Microsoft DirectComposition Library:10.0.19041.4046 (WinBuild.160101.0800):Microsoft Corporation         dhcpcsvc.DLL:DHCP Clientdienst:10.0.19041.3691 (WinBuild.160101.0800):Microsoft Corporation         dhcpcsvc6.DLL:DHCPv6-Client:10.0.19041.3691 (WinBuild.160101.0800):Microsoft Corporation         dinput8.dll:Microsoft DirectInput:10.0.19041.3691 (WinBuild.160101.0800):Microsoft Corporation         dwmapi.dll:Microsoft Desktopfenster-Manager-API:10.0.19041.3691 (WinBuild.160101.0800):Microsoft Corporation         dxcore.dll:DXCore:10.0.19041.3996 (WinBuild.160101.0800):Microsoft Corporation         dxgi.dll:DirectX Graphics Infrastructure:10.0.19041.3636 (WinBuild.160101.0800):Microsoft Corporation         fwpuclnt.dll:FWP/IPsec Benutzermodus-API:10.0.19041.3691 (WinBuild.160101.0800):Microsoft Corporation         gdi32full.dll:GDI Client DLL:10.0.19041.3996 (WinBuild.160101.0800):Microsoft Corporation         glfw.dll:GLFW 3.4.0 DLL:3.4.0:GLFW         icm32.dll:Microsoft Color Management Module (CMM):10.0.19041.3636 (WinBuild.160101.0800):Microsoft Corporation         igd10iumd64.dll:User Mode Driver for Intel(R) Graphics Technology:20.19.15.4835:Intel Corporation         igdusc64.dll:Unified Shader Compiler for Intel(R) Graphics Accelerator:20.19.15.4835:Intel Corporation         imagehlp.dll:Windows NT Image Helper:10.0.19041.3636 (WinBuild.160101.0800):Microsoft Corporation         inputhost.dll:InputHost:10.0.19041.3636 (WinBuild.160101.0800):Microsoft Corporation         java.dll:OpenJDK Platform binary:17.0.8.0:Microsoft         javaw.exe:OpenJDK Platform binary:17.0.8.0:Microsoft         jemalloc.dll         jimage.dll:OpenJDK Platform binary:17.0.8.0:Microsoft         jli.dll:OpenJDK Platform binary:17.0.8.0:Microsoft         jna14725188975779657708.dll:JNA native library:6.1.4:Java(TM) Native Access (JNA)         jsvml.dll:OpenJDK Platform binary:17.0.8.0:Microsoft         jvm.dll:OpenJDK 64-Bit server VM:17.0.8.0:Microsoft         kernel.appcore.dll:AppModel API Host:10.0.19041.3758 (WinBuild.160101.0800):Microsoft Corporation         lwjgl.dll         lwjgl_opengl.dll         lwjgl_stb.dll         management.dll:OpenJDK Platform binary:17.0.8.0:Microsoft         management_ext.dll:OpenJDK Platform binary:17.0.8.0:Microsoft         mscms.dll:Microsoft-Farbabstimmungssystem-DLL:10.0.19041.3691 (WinBuild.160101.0800):Microsoft Corporation         msvcp140.dll:Microsoft® C Runtime Library:14.29.30139.0 built by: vcwrkspc:Microsoft Corporation         msvcp_win.dll:Microsoft® C Runtime Library:10.0.19041.3636 (WinBuild.160101.0800):Microsoft Corporation         msvcrt.dll:Windows NT CRT DLL:7.0.19041.3636 (WinBuild.160101.0800):Microsoft Corporation         mswsock.dll:Microsoft Windows Sockets 2.0-Dienstanbieter:10.0.19041.3691 (WinBuild.160101.0800):Microsoft Corporation         napinsp.dll:E-Mail-Namenshimanbieter:10.0.19041.3691 (WinBuild.160101.0800):Microsoft Corporation         ncrypt.dll:Windows NCrypt-Router:10.0.19041.3691 (WinBuild.160101.0800):Microsoft Corporation         net.dll:OpenJDK Platform binary:17.0.8.0:Microsoft         nio.dll:OpenJDK Platform binary:17.0.8.0:Microsoft         ntdll.dll:DLL für NT-Layer:10.0.19041.3691 (WinBuild.160101.0800):Microsoft Corporation         ntmarta.dll:Windows NT MARTA-Anbieter:10.0.19041.3691 (WinBuild.160101.0800):Microsoft Corporation         nvapi64.dll:NVIDIA NVAPI Library, Version 382.64 :22.21.13.8264:NVIDIA Corporation         nvldumdx.dll:NVIDIA Driver Loader, Version 382.64 :22.21.13.8264:NVIDIA Corporation         nvoglv64.DLL:NVIDIA Compatible OpenGL ICD:22.21.13.8264:NVIDIA Corporation         nvwgf2umx.dll:NVIDIA D3D10 Driver, Version 382.64 :22.21.13.8264:NVIDIA Corporation         ole32.dll:Microsoft OLE für Windows:10.0.19041.3691 (WinBuild.160101.0800):Microsoft Corporation         opengl32.dll:OpenGL Client DLL:10.0.19041.3636 (WinBuild.160101.0800):Microsoft Corporation         pdh.dll:Windows Unterstützungs-DLL für Leistungsdaten:10.0.19041.3691 (WinBuild.160101.0800):Microsoft Corporation         pnrpnsp.dll:PNRP-Namespaceanbieter:10.0.19041.3691 (WinBuild.160101.0800):Microsoft Corporation         profapi.dll:User Profile Basic API:10.0.19041.3636 (WinBuild.160101.0800):Microsoft Corporation         rasadhlp.dll:Remote Access AutoDial Helper:10.0.19041.3636 (WinBuild.160101.0800):Microsoft Corporation         rsaenh.dll:Microsoft Enhanced Cryptographic Provider:10.0.19041.1 (WinBuild.160101.0800):Microsoft Corporation         sechost.dll:Host for SCM/SDDL/LSA Lookup APIs:10.0.19041.1 (WinBuild.160101.0800):Microsoft Corporation         shlwapi.dll:Shell Light-weight-Hilfsprogrammbibliothek:10.0.19041.3691 (WinBuild.160101.0800):Microsoft Corporation         sunmscapi.dll:OpenJDK Platform binary:17.0.8.0:Microsoft         textinputframework.dll:"TextInputFramework.DYNLINK":10.0.19041.3996 (WinBuild.160101.0800):Microsoft Corporation         ucrtbase.dll:Microsoft® C Runtime Library:10.0.19041.3636 (WinBuild.160101.0800):Microsoft Corporation         uxtheme.dll:Microsoft UxTheme-Bibliothek:10.0.19041.3691 (WinBuild.160101.0800):Microsoft Corporation         vcruntime140_1.dll:Microsoft® C Runtime Library:14.29.30139.0 built by: vcwrkspc:Microsoft Corporation         verify.dll:OpenJDK Platform binary:17.0.8.0:Microsoft         win32u.dll:Win32u:10.0.19041.3996 (WinBuild.160101.0800):Microsoft Corporation         windows.storage.dll:Microsoft WinRT Storage-API:10.0.19041.3691 (WinBuild.160101.0800):Microsoft Corporation         winrnr.dll:LDAP RnR Provider DLL:10.0.19041.3636 (WinBuild.160101.0800):Microsoft Corporation         wintypes.dll:Windows-Basistypen-DLL:10.0.19041.3691 (WinBuild.160101.0800):Microsoft Corporation         wshbth.dll:Windows Sockets Helper DLL:10.0.19041.3636 (WinBuild.160101.0800):Microsoft Corporation         xinput1_4.dll:API für Microsoft Common Controller:10.0.19041.3691 (WinBuild.160101.0800):Microsoft Corporation         zip.dll:OpenJDK Platform binary:17.0.8.0:Microsoft Stacktrace:     at net.minecraft.client.main.Main.main(Main.java:182) ~[1.20.1-forge-47.1.29-wrapper.jar:?] {re:classloading,pl:runtimedistcleaner:A}     at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:?] {}     at jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77) ~[?:?] {}     at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:?] {}     at java.lang.reflect.Method.invoke(Method.java:568) ~[?:?] {}     at net.minecraftforge.fml.loading.targets.CommonLaunchHandler.runTarget(CommonLaunchHandler.java:111) ~[fmlloader-1.20.1-47.1.29.jar:?] {}     at net.minecraftforge.fml.loading.targets.CommonLaunchHandler.clientService(CommonLaunchHandler.java:99) ~[fmlloader-1.20.1-47.1.29.jar:?] {}     at net.minecraftforge.fml.loading.targets.CommonClientLaunchHandler.lambda$makeService$0(CommonClientLaunchHandler.java:25) ~[fmlloader-1.20.1-47.1.29.jar:?] {}     at cpw.mods.modlauncher.LaunchServiceHandlerDecorator.launch(LaunchServiceHandlerDecorator.java:30) ~[modlauncher-10.0.9.jar:?] {}     at cpw.mods.modlauncher.LaunchServiceHandler.launch(LaunchServiceHandler.java:53) ~[modlauncher-10.0.9.jar:?] {}     at cpw.mods.modlauncher.LaunchServiceHandler.launch(LaunchServiceHandler.java:71) ~[modlauncher-10.0.9.jar:?] {}     at cpw.mods.modlauncher.Launcher.run(Launcher.java:108) ~[modlauncher-10.0.9.jar:?] {}     at cpw.mods.modlauncher.Launcher.main(Launcher.java:78) ~[modlauncher-10.0.9.jar:?] {}     at cpw.mods.modlauncher.BootstrapLaunchConsumer.accept(BootstrapLaunchConsumer.java:26) ~[modlauncher-10.0.9.jar:?] {}     at cpw.mods.modlauncher.BootstrapLaunchConsumer.accept(BootstrapLaunchConsumer.java:23) ~[modlauncher-10.0.9.jar:?] {}     at cpw.mods.bootstraplauncher.BootstrapLauncher.main(BootstrapLauncher.java:141) ~[bootstraplauncher-1.1.2.jar:?] {}     at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:?] {}     at jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77) ~[?:?] {}     at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:?] {}     at java.lang.reflect.Method.invoke(Method.java:568) ~[?:?] {}     at io.github.zekerzhayard.forgewrapper.installer.Main.main(Main.java:57) ~[?:?] {} -- System Details -- Details:     Minecraft Version: 1.20.1     Minecraft Version ID: 1.20.1     Operating System: Windows 10 (amd64) version 10.0     Java Version: 17.0.8, Microsoft     Java VM Version: OpenJDK 64-Bit Server VM (mixed mode), Microsoft     Memory: 329926560 bytes (314 MiB) / 704643072 bytes (672 MiB) up to 2147483648 bytes (2048 MiB)     CPUs: 4     Processor Vendor: GenuineIntel     Processor Name: Intel(R) Core(TM) i3-5005U CPU @ 2.00GHz     Identifier: Intel64 Family 6 Model 61 Stepping 4     Microarchitecture: Broadwell (Client)     Frequency (GHz): 2.00     Number of physical packages: 1     Number of physical CPUs: 2     Number of logical CPUs: 4     Graphics card #0 name: NVIDIA GeForce 920M     Graphics card #0 vendor: NVIDIA (0x10de)     Graphics card #0 VRAM (MB): 1024.00     Graphics card #0 deviceId: 0x1299     Graphics card #0 versionInfo: DriverVersion=22.21.13.8264     Graphics card #1 name: Intel(R) HD Graphics 5500     Graphics card #1 vendor: Intel Corporation (0x8086)     Graphics card #1 VRAM (MB): 1024.00     Graphics card #1 deviceId: 0x1616     Graphics card #1 versionInfo: DriverVersion=20.19.15.4835     Memory slot #0 capacity (MB): 4096.00     Memory slot #0 clockSpeed (GHz): 1.60     Memory slot #0 type: DDR3     Memory slot #1 capacity (MB): 4096.00     Memory slot #1 clockSpeed (GHz): 1.60     Memory slot #1 type: DDR3     Virtual memory max (MB): 15530.45     Virtual memory used (MB): 9763.88     Swap memory total (MB): 7424.00     Swap memory used (MB): 0.00     JVM Flags: 9 total; -XX:HeapDumpPath=MojangTricksIntelDriversForPerformance_javaw.exe_minecraft.exe.heapdump -Xss1M -Xmx2G -XX:+UnlockExperimentalVMOptions -XX:+UseG1GC -XX:G1NewSizePercent=20 -XX:G1ReservePercent=20 -XX:MaxGCPauseMillis=50 -XX:G1HeapRegionSize=32M     Launched Version: 1.20.1-forge-47.1.29-wrapper     Backend library: LWJGL version 3.3.1 build 7     Backend API: GeForce 920M/PCIe/SSE2 GL version 4.5.0 NVIDIA 382.64, NVIDIA Corporation     Window size: <not initialized>     GL Caps: Using framebuffer using OpenGL 3.2     GL debug messages:      Using VBOs: Yes     Is Modded: Definitely; Client brand changed to 'forge'     Type: Client (map_client.txt)     CPU: 4x Intel(R) Core(TM) i3-5005U CPU @ 2.00GHz     OptiFine Version: OptiFine_1.20.1_HD_U_I6     OptiFine Build: 20231221-120401     Render Distance Chunks: 15     Mipmaps: 4     Anisotropic Filtering: 1     Antialiasing: 0     Multitexture: false     Shaders: (internal)     OpenGlVersion: 4.5.0 NVIDIA 382.64     OpenGlRenderer: GeForce 920M/PCIe/SSE2     OpenGlVendor: NVIDIA Corporation     CpuCount: 4     ModLauncher: 10.0.9+10.0.9+main.dcd20f30     ModLauncher launch target: forgeclient     ModLauncher naming: srg     ModLauncher services:          mixin-0.8.5.jar mixin PLUGINSERVICE          eventbus-6.0.5.jar eventbus PLUGINSERVICE          fmlloader-1.20.1-47.1.29.jar slf4jfixer PLUGINSERVICE          fmlloader-1.20.1-47.1.29.jar object_holder_definalize PLUGINSERVICE          fmlloader-1.20.1-47.1.29.jar runtime_enum_extender PLUGINSERVICE          fmlloader-1.20.1-47.1.29.jar capability_token_subclass PLUGINSERVICE          accesstransformers-8.0.4.jar accesstransformer PLUGINSERVICE          fmlloader-1.20.1-47.1.29.jar runtimedistcleaner PLUGINSERVICE          modlauncher-10.0.9.jar mixin TRANSFORMATIONSERVICE          modlauncher-10.0.9.jar OptiFine TRANSFORMATIONSERVICE          modlauncher-10.0.9.jar essential-loader TRANSFORMATIONSERVICE          modlauncher-10.0.9.jar fml TRANSFORMATIONSERVICE      FML Language Providers:          minecraft@1.0         lowcodefml@null         javafml@null     Mod List:          client-1.20.1-20230612.114412-srg.jar             |Minecraft                     |minecraft                     |1.20.1              |COMMON_SET|Manifest: a1:d4:5e:04:4f:d3:d6:e0:7b:37:97:cf:77:b0:de:ad:4a:47:ce:8c:96:49:5f:0a:cf:8c:ae:b2:6d:4b:8a:3f         mixinextras-forge-0.3.2.jar                       |MixinExtras                   |mixinextras                   |0.3.2               |COMMON_SET|Manifest: NOSIGNATURE         do_a_barrel_roll-forge-3.5.1+1.20.1.jar           |Do a Barrel Roll              |do_a_barrel_roll              |3.5.1+1.20.1        |COMMON_SET|Manifest: NOSIGNATURE         connectedglass-1.1.11-forge-mc1.20.1.jar          |Connected Glass               |connectedglass                |1.1.11              |COMMON_SET|Manifest: NOSIGNATURE         yet-another-config-lib-forge-3.2.2+1.20.jar       |YetAnotherConfigLib           |yet_another_config_lib_v3     |3.2.2+1.20          |COMMON_SET|Manifest: NOSIGNATURE         spectrelib-forge-0.13.14+1.20.1.jar               |SpectreLib                    |spectrelib                    |0.13.14+1.20.1      |COMMON_SET|Manifest: NOSIGNATURE         supermartijn642corelib-1.1.17-forge-mc1.20.1.jar  |SuperMartijn642's Core Lib    |supermartijn642corelib        |1.1.17              |COMMON_SET|Manifest: NOSIGNATURE         fusion-1.1.1-forge-mc1.20.1.jar                   |Fusion                        |fusion                        |1.1.1               |COMMON_SET|Manifest: NOSIGNATURE         caelus-forge-3.1.0+1.20.jar                       |Caelus API                    |caelus                        |3.1.0+1.20          |COMMON_SET|Manifest: NOSIGNATURE         forge-1.20.1-47.1.29-universal.jar                |Forge                         |forge                         |47.1.29             |COMMON_SET|Manifest: 84:ce:76:e8:45:35:e4:0e:63:86:df:47:59:80:0f:67:6c:c1:5f:6e:5f:4d:b3:54:47:1a:9f:7f:ed:5e:f2:90         colytra-forge-6.2.2+1.20.1.jar                    |Colytra                       |colytra                       |6.2.2+1.20.1        |COMMON_SET|Manifest: NOSIGNATURE         Essential (forge_1.20.1).jar                      |Essential                     |essential                     |1.3.0.6+g4dc55a95bd |COMMON_SET|Manifest: NOSIGNATURE         sit-1.20.1-1.3.4.jar                              |Sit                           |sit                           |1.3.4               |COMMON_SET|Manifest: NOSIGNATURE     Crash Report UUID: f8dbba00-2339-4d76-a83d-544c800d51bf     FML: 47.1     Forge: net.minecraftforge:47.1.29 please help me 
    • Hi everyone, I need to make a converter from net.minecraft.text.Text to legacy string "&aHello" with HEX support "&#084CFBb&#2064FBi&#377CFCr&#4F94FCd&#66ABFCf&#7EC3FCl&#95DBFDo&#ADF3FDp". Who has such a function or maybe there is a special API for this?
  • Topics

×
×
  • Create New...

Important Information

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