Jump to content

Crafting Recipe Bug


AssassinHero

Recommended Posts

Hey Guys I have a bug while crafting

Here is a video \/\/

 

http://www.youtube.com/watch?v=WdLUUWPf0_o&feature=youtu.be

 

Here is  my code:

Main:

@NetworkMod(clientSideRequired=true, serverSideRequired= true,
clientPacketHandlerSpec = @cpw.mods.fml.common.network.NetworkMod.SidedPacketHandler(channels = {"ParallelWorlds"} , packetHandler = ParallelWorldsClientPacketHandler.class),
serverPacketHandlerSpec = @cpw.mods.fml.common.network.NetworkMod.SidedPacketHandler(channels = {"ParallelWorlds"} , packetHandler = ParallelWorldsServerPacketHandler.class))

@Mod(modid="Parallel Worlds", name = "ParallelWorlds",version = "1.0.0")


public class ParallelWorlds {

@cpw.mods.fml.common.Mod.Instance("ParallelWorlds")
public static ParallelWorlds Instance = new ParallelWorlds();

	@SidedProxy(clientSide = "assassinhero.parallelworlds.client.ParallelWorldsClientProxy", serverSide = "assassinhero.parallelworlds.common.ParallelWorldsCommonProxy")
	public static ParallelWorldsCommonProxy proxy;





	public static Item TimeGem;
	public static Block TimeStone;
	public static Block NightStone;
	public static Item NightGem;
	@cpw.mods.fml.common.Mod.PreInit
	public void PreInit(FMLPreInitializationEvent event){
		NightStone = new BlockNightStoneBlock(3658).setUnlocalizedName("Night Stone");
		NightGem = new ItemNightGemItem(5000).setUnlocalizedName("Night Gem");
		TimeStone = new BlockTimeStoneBlock(3659).setUnlocalizedName("Time Stone");
		TimeGem = new ItemTimeStoneItem(5001).setUnlocalizedName("Time Gem");


	}

	@Init
	public void InitParallelWorlds(FMLInitializationEvent event){
		NetworkRegistry.instance().registerGuiHandler(this, proxy);
		proxy.registerBlocks();
		proxy.registerItems();
		craftingRecipes();
	}

	public void craftingRecipes(){
		GameRegistry.addRecipe(new ItemStack(ParallelWorlds.NightStone, 1), "XX", "XX", Character.valueOf('X'), ParallelWorlds.NightGem);
		GameRegistry.addRecipe(new ItemStack(ParallelWorlds.TimeStone, 1 ), "XX", "XX", Character.valueOf('x'), ParallelWorlds.TimeGem); 
	}

}

 

CommonProxy:

public class ParallelWorldsCommonProxy implements IGuiHandler{

public void registerRenderInformation(){

}

@Override
public Object getServerGuiElement(int ID, EntityPlayer player, World world, int x, int y, int z){
	return null;
}

@Override
public Object getClientGuiElement(int ID, EntityPlayer player, World world, int x, int y, int z){
	return null;
}

public void registerTiles(){

}

public void registerBlocks(){

GameRegistry.registerBlock(ParallelWorlds.NightStone, "Night Stone");
LanguageRegistry.addName(ParallelWorlds.NightStone, "Night Stone");
GameRegistry.registerBlock(ParallelWorlds.TimeStone, "Time Stone");
LanguageRegistry.addName(ParallelWorlds.TimeStone, "Time Stone");
}

public void registerItems(){
	GameRegistry.registerItem(ParallelWorlds.NightGem, "Night Gem");
	LanguageRegistry.addName(ParallelWorlds.NightGem, "Night Gem");
	GameRegistry.registerItem(ParallelWorlds.TimeGem, "Time Gem");
	LanguageRegistry.addName(ParallelWorlds.TimeGem, "Time Gem");

}

}

 

Time Gem:

public class ItemTimeStoneItem extends Item{
public ItemTimeStoneItem(int par1){
	super(par1);
	setCreativeTab(CreativeTabs.tabMaterials);
}

@Override
public void func_94581_a(IconRegister iconregister){
	iconIndex = iconregister.func_94245_a("ParallelWorlds.TimeGem");

}


}

 

It says time stone on purpose all other code fits it

 

Time Stone:

 

public class BlockTimeStoneBlock extends Block{

public BlockTimeStoneBlock(int ID){
	super(ID,Material.iron);
	setHardness(10.F);
	setResistance(1000000.0F);
	setCreativeTab(CreativeTabs.tabBlock);

}

@Override
public void func_94332_a(IconRegister par1IconRegister){
	this.field_94336_cN = par1IconRegister.func_94245_a("ParallelWorlds.TimeStone");

}

}

STOP CRUCIFYING NEW MODDERS!!!!

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.

Announcements



×
×
  • Create New...

Important Information

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