Jump to content

Problem with adding multiple effects on food & with crafting recipe of bucket


Kander16

Recommended Posts

Hello,

 

I have a problem with adding 1 ore more effects on a food stuff.

 

This is the code of my food: http://pastebin.com/XG94TsQK

 

 

And i also have a problem with bucket recipes, When i wanted to make a recipe of my bucket, like adding cheese in your bucket on the workbench, i get the cheese-bucket but i also get another bucket.

If sommeone would help me with this, thanks anyway :-D

Creator of the Master Chef Mod and many more to come.

 

If I helped you, please click the 'thank you' button.

Link to comment
Share on other sites

The only way you can do this is:

In cheese class add method:

public void onCreated(ItemStack stack, World worldIn, EntityPlayer playerIn){
	playerIn.inventory.consumeInventoryItem(Items.bucket);
}

This when yours cheese is created will remove bucket from inventory of player.

If method doesn't override method from Item, just open Item.class and find this method. (I'm working in 1.8 ).

If it doesn't work, only way is creating a new bucket.

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.