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.

Dwargkiller

Members
  • Joined

  • Last visited

Everything posted by Dwargkiller

  1. Much progress! It is working! I implemented it wrong. My code declared that there was a new recipe, but didn't actually register it. For others with similar problem, here's what I did: GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(Block.wood,3), true, new Object[]{"x ","xx", 'x', "logWood"}));
  2. Okay, some progress. The game no longer crashes when the mod is included. It is however not adding the recipe, as far as I can tell. new ShapedOreRecipe(new ItemStack(Block.wood,3), true, new Object[]{"x ","xx", 'x', "logWood"});
  3. Thank you! That gives me something to work with. If you are so inclined you can save me quite a bit of googling, trial and error and give me either a code snippet or a brief explanation, but you've already provided more than enough! Thank you!
  4. The "logWood" is an attempt to use the oredictionary entry for wood, in order to convert any type of wood added by mods into the dictionary into oak wood. It's an attempt to work around the fact that some mods don't use oredictionary in their recipes.
  5. Hello! I understand it may be frustrating when someone doesn't know what the hell they are doing, but I'm at my wits end. I'm getting an exception when I launch the game with my mod after trying to add oredictionary to my recipe. Below is my code that is causing the crash. GameRegistry.addRecipe(new ItemStack(Block.wood,3),"x ","xx", 'x', "logWood"); Below is working code (that doesn't do what I'm trying to accomplish) GameRegistry.addRecipe(new ItemStack(Block.wood,3),"x ","xx", 'x', Block.wood); The error is below. Thank you for any help you can give me. Sometimes I make myself tired.. EDIT: Here's what I was supposed to do: GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(Block.wood,3), true, new Object[]{"x ","xx", 'x', "logWood"}));

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.