Jump to content

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


Recommended Posts

Posted

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.

Posted

a filled bucket with water.

 

So, a water bucket in the crafting table, together with 3 sugar canes when i take the item, it creates a new empty bucket.

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

 

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

Posted

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.

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.