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

I have been trying to figure out why my  mods crafting recipes for my tools wont work except for my sword.

 

CODE:

//crafting

 

GameRegistry.addRecipe(new ItemStack(TitaniumMod.TitaniumBlock,1), new Object[]{

"TTT","TTT","TTT",'T',Titanium,  });

 

GameRegistry.addShapedRecipe(new ItemStack(TitaniumMod.TitaniumSword, 1), "X","X","A", Character.valueOf('X'), Titanium,

Character.valueOf('A'), Item.stick);

 

GameRegistry.addShapedRecipe(new ItemStack(TitaniumMod.TitaniumAxe, 1), "XX", "XA", "A",

        ('X'), Titanium, ('A'), Item.stick);

 

GameRegistry.addShapedRecipe(new ItemStack(TitaniumMod.TitaniumHoe, 1), "XX","A","A", Character.valueOf('X'), Titanium,

Character.valueOf('A'), Item.stick);

 

GameRegistry.addShapedRecipe(new ItemStack(TitaniumMod.TitaniumPickaxe, 1), "XXX","A","A", Character.valueOf('X'), TitaniumMod.Titanium,

Character.valueOf('A'), Item.stick);

 

 

 

 

I have been trying to figure out why my  mods crafting recipes for my tools wont work except for my sword.

 

CODE:

//crafting

 

GameRegistry.addRecipe(new ItemStack(TitaniumMod.TitaniumBlock,1), new Object[]{

"TTT","TTT","TTT",'T',Titanium,  });

 

GameRegistry.addShapedRecipe(new ItemStack(TitaniumMod.TitaniumSword, 1), "X","X","A", Character.valueOf('X'), Titanium,

Character.valueOf('A'), Item.stick);

 

GameRegistry.addShapedRecipe(new ItemStack(TitaniumMod.TitaniumAxe, 1), "XX", "XA", "A",

        ('X'), Titanium, ('A'), Item.stick);

 

GameRegistry.addShapedRecipe(new ItemStack(TitaniumMod.TitaniumHoe, 1), "XX","A","A", Character.valueOf('X'), Titanium,

Character.valueOf('A'), Item.stick);

 

GameRegistry.addShapedRecipe(new ItemStack(TitaniumMod.TitaniumPickaxe, 1), "XXX","A","A", Character.valueOf('X'), TitaniumMod.Titanium,

Character.valueOf('A'), Item.stick);

 

Spot the difference between your Sword and Axe. It might help you if they were all one line, but there are quite a few characters missing.

 

Just a stab in the dark but fix the problem with your Axe and the others might work. It might be the problem with your axe that's stopping them from being read properly.

width=463 height=200

http://s13.postimg.org/z9mlly2av/siglogo.png[/img]

My mods (Links coming soon)

Cities | Roads | Remula | SilvaniaMod | MoreStats

  • Author

I tried doing that just now but the problem is still there. Everything above the sword is working but everything below it isn't.

Edit: every other item/block crafting recipes work its only the tools that have problems. I also tried deleting the sword crafting recipe but I could only craft a hoe by using the sword recipe no other item crafts.

 

//crafting

 

GameRegistry.addRecipe(new ItemStack(TitaniumMod.TitaniumBlock,1), new Object[]{"TTT","TTT","TTT",'T',Titanium,  });

 

GameRegistry.addShapedRecipe(new ItemStack(TitaniumMod.TitaniumSword, 1), "X","X","A", Character.valueOf('X'), Titanium,Character.valueOf('A'), Item.stick);

 

GameRegistry.addShapedRecipe(new ItemStack(TitaniumMod.TitaniumAxe, 1), "XX","XA","A", Character.valueOf('X'), Titanium,Character.valueOf('A'), Item.stick);

 

GameRegistry.addShapedRecipe(new ItemStack(TitaniumMod.TitaniumHoe, 1), "XX","A","A", Character.valueOf('X'), Titanium,Character.valueOf('A'), Item.stick);

 

GameRegistry.addShapedRecipe(new ItemStack(TitaniumMod.TitaniumPickaxe, 1), "XXX","A","A", Character.valueOf('X'), TitaniumMod.Titanium,Character.valueOf('A'), Item.stick);

 

Guest
This topic is now closed to further replies.

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.