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

So When you read about the problem im having, many of you who know what they are doing are gonna be like "Dude, gtfo and go learn Java before you attempt to mod" I've looked up tutorials(Generic on the wiki is what im specifically having problems with) so I copied it(because Im not very familiar with modding Minecraft(I know some Java but Im not in College Majoring in it or anything)) and Im having problems.(Spiler for you all)

 

GameRegistry.addRecipe(new ItemStack(Item.myFirstItem), "iii", " s ", " s "

'i', myFirstItemStack, 's', stickStack

 

Im getting errors on the 'i', myFirstItemStack, 's', stickStack part. It Says they cannot be resolved to a variable(So i obviously need a variable) but Im very dumb so Im confused. Feel free to yell at me and all for not knowing Java. I accept that. I learn by doing. reading stuff on how to do it doesnt work for me. Well if you can please help. Thanks.

 

You have to tell forge what myFirstItemStack and sitckStack are. You could change stickStack to Item.stick and define myFirstItemStack like this: ItemStack myFirstItemStack = new ItemStack(Item.WhateverItemThisIs);

I think there might be a better way to do this because I to am not that experienced

  • Author

I messed up lol, I meant for the 'i', myFirstItem to be myFirstBlock. So What do I do then, and could I do Block.myFirstBlock ?

 

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.