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

Im currently working on a new mod, and in this mod I have an item that needs to be created using bonemeal. When I say created using bonemeal I dont mean when this item is on the ground it will grow or something with a right click of bonemeal. Im saying that in the crafting table I need an actual recipe that involves bonemeal. The problem is whenever I look in the items class theres not name that I can see that represents bone meal. If anyone knows the answer to this please help! Thanks!

  • Author

How would you desplay a damage value in code? Like Item.dyePowder:15 or what?

  • Author

Ok thanks I figured that out, do you know the group a flower falls under? I was looking all around and theres really nothing on it.

  • Author

Haha wow thank you. I was so used to something like that being an item but now thinking about it since it generates it would have to have a block structure

  • Author

Ok so i guess I got in game and tested the bonemeal and It didnt work. Here is the line of code I used that I thought would work:

 

GameRegistry.addRecipe(new ItemStack(FertalizerCan, 1), new Object[]{ " cb", " b ", " b ", 'c', Item.coal, 'b', new ItemStack(Item.dyePowder, [glow=red,2,300]15[/glow]) });

 

The glowing number is where I thought the damage value would be declared but I dont know why its not working I tested out different numbers and none of the powders work. If you know how to fix this please help! THANKS!

Im looking for an answer if you have one?! Thanks!

 

this is how i did it:

 

 

GameRegistry.addRecipe(new ItemStack(BlueStoneShard), new Object[]{
         "L  "," C ","  L", 'C', BlueStoneChunk, 'L', new ItemStack(Item.dyePowder, 1, 4),
      });

 

So to break it down a little. to define L as Lapis I had to do

 

'L', new ItemStack(Item.dyePowder

 

now the 1 defines how many in the stack.

 

'L', new ItemStack(Item.dyePowder, 1,

 

the four is the damage value and now we have

 

 'L', new ItemStack(Item.dyePowder, 1, 4)

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.