Jump to content

Recommended Posts

Posted

Heres the crash

 

---- Minecraft Crash Report ----
// Why is it breaking 

Time: 1/25/15 3:04 PM
Description: There was a severe problem during mod loading that has caused the game to fail

cpw.mods.fml.common.LoaderException: cpw.mods.fml.common.LoaderException
at cpw.mods.fml.common.ProxyInjector.inject(ProxyInjector.java:76)
at cpw.mods.fml.common.FMLModContainer.constructMod(FMLModContainer.java:492)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at com.google.common.eventbus.EventSubscriber.handleEvent(EventSubscriber.java:74)
at com.google.common.eventbus.SynchronizedEventSubscriber.handleEvent(SynchronizedEventSubscriber.java:47)
at com.google.common.eventbus.EventBus.dispatch(EventBus.java:322)
at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:304)
at com.google.common.eventbus.EventBus.post(EventBus.java:275)
at cpw.mods.fml.common.LoadController.sendEventToModContainer(LoadController.java:208)
at cpw.mods.fml.common.LoadController.propogateStateMessage(LoadController.java:187)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at com.google.common.eventbus.EventSubscriber.handleEvent(EventSubscriber.java:74)
at com.google.common.eventbus.SynchronizedEventSubscriber.handleEvent(SynchronizedEventSubscriber.java:47)
at com.google.common.eventbus.EventBus.dispatch(EventBus.java:322)
at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:304)
at com.google.common.eventbus.EventBus.post(EventBus.java:275)
at cpw.mods.fml.common.LoadController.distributeStateMessage(LoadController.java:118)
at cpw.mods.fml.common.Loader.loadMods(Loader.java:492)
at cpw.mods.fml.client.FMLClientHandler.beginMinecraftLoading(FMLClientHandler.java:204)
at net.minecraft.client.Minecraft.startGame(Minecraft.java:522)
at net.minecraft.client.Minecraft.run(Minecraft.java:931)
at net.minecraft.client.main.Main.main(Main.java:164)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at net.minecraft.launchwrapper.Launch.launch(Launch.java:135)
at net.minecraft.launchwrapper.Launch.main(Launch.java:28)
at net.minecraftforge.gradle.GradleStartCommon.launch(GradleStartCommon.java:78)
at GradleStart.main(GradleStart.java:45)
Caused by: cpw.mods.fml.common.LoaderException
at cpw.mods.fml.common.ProxyInjector.inject(ProxyInjector.java:69)
... 35 more


A detailed walkthrough of the error, its code path and all known details is as follows:
---------------------------------------------------------------------------------------

-- System Details --
Details:
Minecraft Version: 1.7.10
Operating System: Windows 8.1 (amd64) version 6.3
Java Version: 1.8.0_25, Oracle Corporation
Java VM Version: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Oracle Corporation
Memory: 934893688 bytes (891 MB) / 1037959168 bytes (989 MB) up to 1037959168 bytes (989 MB)
JVM Flags: 3 total; -Xincgc -Xmx1024M -Xms1024M
AABB Pool Size: 0 (0 bytes; 0 MB) allocated, 0 (0 bytes; 0 MB) used
IntCache: cache: 0, tcache: 0, allocated: 0, tallocated: 0
FML: MCP v9.05 FML v7.10.85.1230 Minecraft Forge 10.13.2.1230 4 mods loaded, 4 mods active
mcp{9.05} [Minecraft Coder Pack] (minecraft.jar) Unloaded->Constructed
FML{7.10.85.1230} [Forge Mod Loader] (forgeSrc-1.7.10-10.13.2.1230.jar) Unloaded->Constructed
Forge{10.13.2.1230} [Minecraft Forge] (forgeSrc-1.7.10-10.13.2.1230.jar) Unloaded->Constructed
testmod{1.0} [Test Mod] (bin) Unloaded->Errored

 

 

Heres the code

 

Blocks

package com.mcpixelplex.blocks;

import com.mcpixelplex.CreativeTabs.BlessedCreativeTab;
import com.mcpixelplex.lib.RefStrings;

import cpw.mods.fml.common.registry.GameRegistry;
import cpw.mods.fml.common.registry.LanguageRegistry;
import net.minecraft.block.Block;
import net.minecraft.block.material.Material;
import net.minecraft.creativetab.CreativeTabs;
import net.minecraft.item.Item;

public class BBlocks {

public static void mainRegistry(){
	initializeBlock();
	reigsterBlock();
	init();
	addNames();
}

public static Block xpBlock;
public static Block clearGlass;

public static Block testBlock;

public static Block machineBlock;

public static void init() {

}

public static void initializeBlock(){
	xpBlock = new xpBlock(Material.glass).setBlockName("xpBlock").setCreativeTab(BlessedCreativeTab.tabBlocks).setBlockTextureName(RefStrings.MODID + ":test");
	clearGlass = new clearGlass(Material.glass).setBlockName("clearGlass").setCreativeTab(BlessedCreativeTab.tabBlocks).setBlockTextureName(RefStrings.MODID + ":Air");

	testBlock = new testBlock(Material.ground).setBlockName("testBlock").setCreativeTab(BlessedCreativeTab.tabBlocks);

	machineBlock = new machineBlock(Material.iron).setBlockName("machineBlock").setCreativeTab(BlessedCreativeTab.tabBlocks).setHardness(5F).setResistance(10F);

}

public static void reigsterBlock(){
	GameRegistry.registerBlock(xpBlock, xpBlock.getUnlocalizedName());
	GameRegistry.registerBlock(clearGlass, clearGlass.getUnlocalizedName());

	GameRegistry.registerBlock(testBlock, testBlock.getUnlocalizedName());

	GameRegistry.registerBlock(machineBlock, "machineBlock");
}

public static void addNames() {
	LanguageRegistry.addName(machineBlock, "machineBlock");
	}
}

 

 

machineBlock

package com.mcpixelplex.blocks;

import com.mcpixelplex.CreativeTabs.BlessedCreativeTab;
import com.mcpixelplex.lib.RefStrings;

import cpw.mods.fml.relauncher.Side;
import cpw.mods.fml.relauncher.SideOnly;
import net.minecraft.block.Block;
import net.minecraft.block.material.Material;
import net.minecraft.client.renderer.texture.IIconRegister;
import net.minecraft.util.IIcon;

public class machineBlock extends Block{

public machineBlock(Material p_i45394_1_) {
	super(p_i45394_1_);
}

@SideOnly(Side.CLIENT)
public static IIcon topIcon;
@SideOnly(Side.CLIENT)
public static IIcon sideIcon;
@SideOnly(Side.CLIENT)
public static IIcon frontIcon;

@SideOnly(Side.CLIENT)
public void registerIcons(IIconRegister icon) {
	topIcon = icon.registerIcon(RefStrings.MODID + ":machineBlockTop"); //top
	sideIcon = icon.registerIcon(RefStrings.MODID + ":machineBlockSide"); //side
	frontIcon = icon.registerIcon(RefStrings.MODID + ":machineBlockFront"); //front
}

@Override
public IIcon getIcon(int side, int meta) {
if(side == 0 || side == 1) {
		return topIcon;
	} else if(side == 2) {
		return frontIcon;
	} else {
		return sideIcon;
	}
}

}

Posted

Your @SidedProxy is broken. Show your main mod and your proxy classes.

 

CommonProxy

package com.mcpixelplex.proxy;

public class CommonProxy {

public void initRenderers() {

}

public void initSounds() {

}

}

 

ClientProxy

package com.mcpixelplex.proxy;

public class ClientProxy extends CommonProxy {

@Override
public void initRenderers() {

}

@Override
public void initSounds() {

}

}

 

 

Main

package com.mcpixelplex;

import net.minecraft.item.Item;

import com.mcpixelplex.CreativeTabs.BlessedCreativeTab;
import com.mcpixelplex.Gui.ItemGui;
import com.mcpixelplex.blocks.BBlocks;
import com.mcpixelplex.items.BItems;
import com.mcpixelplex.lib.*;
import com.mcpixelplex.proxy.ClientProxy;
import com.mcpixelplex.proxy.ServerProxy;

import cpw.mods.fml.common.Mod;
import cpw.mods.fml.common.Mod.EventHandler;
import cpw.mods.fml.common.SidedProxy;
import cpw.mods.fml.common.event.FMLInitializationEvent;
import cpw.mods.fml.common.event.FMLPostInitializationEvent;
import cpw.mods.fml.common.event.FMLPreInitializationEvent;
import cpw.mods.fml.common.registry.GameRegistry;

@Mod(modid = RefStrings.MODID , name = RefStrings.NAME, version = RefStrings.VERSION)
public class Main {

@SidedProxy(clientSide = RefStrings.CLIENTSIDE, serverSide = RefStrings.SERVERSIDE)

public static ServerProxy serverProxy;
public static ClientProxy clientProxy;


@EventHandler
public static void PreLoad(FMLPreInitializationEvent PreEvent){
	BlessedCreativeTab.initializeTabs();

	BItems.mainRegistry();
	BBlocks.mainRegistry();
	CraftingManager.mainRegistry();
	//serverProxy.registerRenderInfo();
	clientProxy.initRenderers();
	clientProxy.initSounds();

}

@EventHandler
public static void load(FMLInitializationEvent event){

}

@EventHandler
public static void PostLoad(FMLPostInitializationEvent PostEvent){

}

}

Posted

That's not how proxies work. You should be using the @SidedProxy annotation on one field which is an instance of CommonProxy, call all your proxy methods on that.

 

Ok I got it working now why isnt my icon rendering the texture

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.

Announcements



  • Recently Browsing

    • No registered users viewing this page.
  • Posts

    • When I first heard about Bitcoin back in 2018, I was skeptical. The idea of a decentralized, digital currency seemed too good to be true. But I was intrigued as I learned more about the technology behind it and its potential. I started small, investing just a few hundred dollars, dipping my toes into the cryptocurrency waters. At first, it was exhilarating to watch the value of my investment grow exponentially. I felt like I was part of the future, an early adopter of this revolutionary new asset. But that euphoria was short-lived. One day, I logged into my digital wallet only to find it empty - my Bitcoin had vanished without a trace. It turned out that the online exchange I had trusted had been hacked, and my funds were stolen. I was devastated, both financially and emotionally. All the potential I had seen in Bitcoin was tainted by the harsh reality that with decentralization came a lack of regulation and oversight. My hard-earned money was gone, lost to the ether of the digital world. This experience taught me a painful lesson about the price of trust in the uncharted territory of cryptocurrency. While the technology holds incredible promise, the risks can be catastrophic if you don't approach it with extreme caution. My Bitcoin investment gamble had failed, and I was left to pick up the pieces, wiser but poorer for having placed my faith in the wrong hands. My sincere appreciation goes to MUYERN TRUST HACKER. You are my hero in recovering my lost funds. Send a direct m a i l ( muyerntrusted ( @ ) mail-me ( . )c o m ) or message on whats app : + 1 ( 4-4-0 ) ( 3 -3 -5 ) ( 0-2-0-5 )
    • You could try posting a log (if there is no log at all, it may be the launcher you are using, the FAQ may have info on how to enable the log) as described in the FAQ, however this will probably need to be reported to/remedied by the mod author.
    • So me and a couple of friends are playing with a shitpost mod pack and one of the mods in the pack is corail tombstone and for some reason there is a problem with it, where on death to fire the player will get kicked out of the server and the tombstone will not spawn basically deleting an entire inventory, it doesn't matter what type of fire it is, whether it's from vanilla fire/lava, or from modded fire like ice&fire/lycanites and it's common enough to where everyone on the server has experienced at least once or twice and it doesn't give any crash log. a solution to this would be much appreciated thank you!
    • It is 1.12.2 - I have no idea if there is a 1.12 pack
  • Topics

×
×
  • Create New...

Important Information

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