Jump to content
View in the app

A better way to browse. Learn more.

Forge Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Featured Replies

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.

  • Author

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.

  • Author

Is there nothing you can do? like override the '.setContainer'?

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

 

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

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.

  • Author

I got it fixed, Thanks for the help everybody!

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

 

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

just a point, milk makes better cheese than water does

 

also you could create a special block (Cheese vat) for creating the cheese then recipes are irrelevant

 

  • Author

Yeah, tis was just a example :-P

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

 

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

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...

Important Information

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

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.