Jump to content

Recommended Posts

Posted

Hey guys,
i will set a name to my Block and i don't know why, but there is a problem with my "en_US" file and thats why it won't work i think...
And the ID is also wrong...

 

I am so sorry, but could you might help me?
Would be lovely!


Here is the report:

[Client thread/WARN] [FML]: Zip file en_US.lang failed to read properly, it will be ignored
java.util.zip.ZipException: error in opening zip file
	at java.util.zip.ZipFile.open(Native Method) ~[?:1.8.0_131]
	at java.util.zip.ZipFile.<init>(Unknown Source) ~[?:1.8.0_131]
	at java.util.zip.ZipFile.<init>(Unknown Source) ~[?:1.8.0_131]
	at java.util.jar.JarFile.<init>(Unknown Source) ~[?:1.8.0_131]
	at java.util.jar.JarFile.<init>(Unknown Source) ~[?:1.8.0_131]
	at cpw.mods.fml.common.discovery.JarDiscoverer.discover(JarDiscoverer.java:41) [JarDiscoverer.class:?]
	at cpw.mods.fml.common.discovery.ContainerType.findMods(ContainerType.java:42) [ContainerType.class:?]
	at cpw.mods.fml.common.discovery.ModCandidate.explore(ModCandidate.java:71) [ModCandidate.class:?]
	at cpw.mods.fml.common.discovery.ModDiscoverer.identifyMods(ModDiscoverer.java:131) [ModDiscoverer.class:?]
	at cpw.mods.fml.common.Loader.identifyMods(Loader.java:364) [Loader.class:?]
	at cpw.mods.fml.common.Loader.loadMods(Loader.java:489) [Loader.class:?]
	at cpw.mods.fml.client.FMLClientHandler.beginMinecraftLoading(FMLClientHandler.java:208) [FMLClientHandler.class:?]
	at net.minecraft.client.Minecraft.startGame(Minecraft.java:522) [Minecraft.class:?]
	at net.minecraft.client.Minecraft.run(Minecraft.java:942) [Minecraft.class:?]
	at net.minecraft.client.main.Main.main(Main.java:164) [Main.class:?]
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_131]
	at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_131]
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_131]
	at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.8.0_131]
	at net.minecraft.launchwrapper.Launch.launch(Launch.java:135) [launchwrapper-1.12.jar:?]
	at net.minecraft.launchwrapper.Launch.main(Launch.java:28) [launchwrapper-1.12.jar:?]
	at net.minecraftforge.gradle.GradleStartCommon.launch(Unknown Source) [start/:?]
	at GradleStart.main(Unknown Source) [start/:?]

 

package com.minermod.main;

import cpw.mods.fml.common.Mod;
import cpw.mods.fml.common.Mod.EventHandler;
import cpw.mods.fml.common.Mod.Metadata;
import cpw.mods.fml.common.ModMetadata;
import cpw.mods.fml.common.event.FMLInitializationEvent;
import cpw.mods.fml.common.registry.GameRegistry;
import net.minecraft.block.Block;
import net.minecraft.block.material.Material;
import net.minecraft.creativetab.CreativeTabs;
import com.minermod.blocks.*;

@Mod(modid = MinerMod.MODID, version = MinerMod.VERSION)
public class MinerMod
{
	public static final String MODID = "minermod";
	public static final String VERSION = "1.0";
	
	@Metadata
	public static ModMetadata meta;
	
	public static Block miner;
	int minerID = 202;
	
	

	@EventHandler
	public void init(FMLInitializationEvent event)
	{
		miner = new miner(minerID, Material.rock).setHardness(5.0F).setBlockName("miner").setBlockTextureName("minermod:miner").setCreativeTab(CreativeTabs.tabBlock);
		
		
		GameRegistry.registerBlock(miner, "miner");
	}
}
package com.minermod.blocks;

import net.minecraft.block.Block;
import net.minecraft.block.material.Material;

public class miner extends Block 
{
	private static Block miner;
	public miner(int id, Material mat)
	{
		super(mat);
		this.setHarvestLevel("pickaxe", 3);
	}
}

Best regards,
ZwibblTV

  • Guest locked this topic
Guest
This topic is now closed to further replies.

Announcements



×
×
  • Create New...

Important Information

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