Posted May 1, 201510 yr More questions! So I've got a shapeless recipe, of one dirt block and one poop, but it just doesn't work. What am I doing wrong? I apologise in advance if it's something glaringly obvious. GameRegistry.addShapelessRecipe(new ItemStack(gotchiFertiliser, 4), new ItemStack(Blocks.dirt), new ItemStack(BlockRegistry.poopBlock)); EDIT: Just to add, the code is most certainly being executed. I have a print statement above it that triggers.
May 1, 201510 yr Author No, but I figured it out. I was registering the recipe before I was registering the poop block, so it was getting nothing. I feel so stupid.
May 1, 201510 yr More questions! So I've got a shapeless recipe, of one dirt block and one poop, but it just doesn't work. What am I doing wrong? I apologise in advance if it's something glaringly obvious. GameRegistry.addShapelessRecipe(new ItemStack(gotchiFertiliser, 4), new ItemStack(Blocks.dirt), new ItemStack(BlockRegistry.poopBlock)); EDIT: Just to add, the code is most certainly being executed. I have a print statement above it that triggers. isnt it GameRegistry.addRecipe instead of GameRegistry.addShapelessRecipe? this is how i do it GameRegistry.addRecipe(new ItemStack(modID.kingitem, 1), "S", "B", 'S', Blocks.stone, 'B', Blocks.dirt); NEWB! in java im sorry
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.