Jump to content

Recommended Posts

Posted

yeah, did that

 

private static void addCraftingRec() {

//shaped

GameRegistry.addShapedRecipe(new ItemStack(Bong.appleb), "AP ", "BN ", "  ", 'A', Items.apple, 'P', PlasticPen.ppen, 'B', Bong.bbowl, 'N', MarijuanaBud.nBud);

GameRegistry.addShapedRecipe(new ItemStack(Bong.pbong), "LP ", "BN ", "  ", 'L', PlasticBottle.pbot, 'P', PlasticPen.ppen, 'B', Bong.bbowl, 'N', MarijuanaBud.nBud);

//shapeless

GameRegistry.addShapelessRecipe(new ItemStack(MarijuanaBud.nBud, 9), " X ", 'X', MarijuanaBud.mBud);

GameRegistry.addShapelessRecipe(new ItemStack(Bong.bbowl, 3), " B ", 'B', Items.iron_ingot);

}

 

private static void addSmeltingRec(){

GameRegistry.addSmelting(Items.apple, new ItemStack(BakedApple.bapple), 5.0F);

 

}

}

still not working

Posted

theyre not working in game, i cant use the recipes.

 

and could you write a definitive one, using my recipe up there.

i dont learn by reading, i need to see and do it for me to remember.

and i didnt know one thing about code before i started this endeaver. i'm loving it, so please help me.

Posted

you mean the console?

 

 

  Reveal hidden contents

 

Posted

Okay great. How should I rectify that?

 

As I said I have each item being it's own class with a few exceptions. And my itializeitem and registeritem  are always in there under public void marijuanacraft.

I find this to be coherent and organized when called the items . Or am I just an idiot?

Posted

Thanks for that.

 

I'm pretty sure I said I'm learning and only been doing it for a month at best.

 

I'll figure it out. I always do with everything else I teach myself. This isn't new for me.

Posted

I see a possible problem: There are several methods called "registerRender" in various non-sided classes, and each tries to get Minecraft. If I recall correctly, that's a client-only call. Methods called registerRender should either be in your client proxy or calling proxy.something to avoid blowing up the server. Indeed, you'd be well served to relegate all mention of "render" to your client proxy, because all rendering (graphics) is display stuff that is toxic to a server

 

And if you haven't done so already, get rid of the server proxy. You want common and client. I know it's hard to wrap one's head around, but it has something to do with the difference between physical and logical clients in MP and SP environments. Therefore you need client extends common or else bad things happen in one of those environments (I think that a true server proxy would never exist in SP).

The debugger is a powerful and necessary tool in any IDE, so learn how to use it. You'll be able to tell us more and get better help here if you investigate your runtime problems in the debugger before posting.

Posted
  On 3/11/2016 at 2:11 AM, jeffryfisher said:

I see a possible problem: There are several methods called "registerRender" in various non-sided classes, and each tries to get Minecraft. If I recall correctly, that's a client-only call. Methods called registerRender should either be in your client proxy or calling proxy.something to avoid blowing up the server. Indeed, you'd be well served to relegate all mention of "render" to your client proxy, because all rendering (graphics) is display stuff that is toxic to a server

 

More or less correct.

The problem is not the code running, but the class loading into the JVM.

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.

Posted

Thanks to everyone who gave me their time to help. It was defiantly a step in the right direction and I have taken everyone's advice and remodeled my mod so it's a little more like everyone else's.  In a manor of speaking.

 

I have everything running at the moment. So thanks again.

And I'll be back because mobs are next and I've got the weekend.

Posted

And while it is in my head. 

 

What about recipes for the brewing stand?

Posted

Use

BrewingRecipeRegistry

to add brewing recipes.

Please don't PM me to ask for help. Asking your question in a public thread preserves it for people who are having the same problem in the future.

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.