GreenWolf13 Posted October 9, 2012 Share Posted October 9, 2012 How would I go about creating a 5x5 crafting table? And how would I add recipes for it? The only tutorials I could find were on how to make another crafting table block, not a completely different block and GUI. Link to comment Share on other sites More sharing options...
andrewdonshik Posted October 9, 2012 Share Posted October 9, 2012 How would I go about creating a 5x5 crafting table? And how would I add recipes for it? The only tutorials I could find were on how to make another crafting table block, not a completely different block and GUI. I may sound crazy for this, but BTW has a 4x4 block, so you could analyze that code.. Link to comment Share on other sites More sharing options...
Jorcer Posted October 9, 2012 Share Posted October 9, 2012 I may sound crazy for this, but BTW has a 4x4 block, so you could analyze that code.. Blasphemer!!! Honestly though, there must be other mods that aren't so... Incompatible that you could look at. Link to comment Share on other sites More sharing options...
andrewdonshik Posted October 9, 2012 Share Posted October 9, 2012 Blasphemer!!! Honestly though, there must be other mods that aren't so... Incompatible that you could look at. Yea, crossbow mod 2, and swords++ have custom crafting, but the grid isn't square. Link to comment Share on other sites More sharing options...
The_New_Pro Posted October 9, 2012 Share Posted October 9, 2012 Not a square... WHAT? Link to comment Share on other sites More sharing options...
andrewdonshik Posted October 9, 2012 Share Posted October 9, 2012 Not a square... WHAT? It's either in the shape of a crossbow, or a sword, depending. Wait, is that two blasphlemies? Link to comment Share on other sites More sharing options...
phoenix987 Posted October 9, 2012 Share Posted October 9, 2012 Check out BlockWorkbench and ContainerWorkbench in the Minecraft source code. It looks like the grid size is abstracted enough that you change a few initialization values in the ContainerWorkbench constructor, then make a new crafting GUI for your new block. At worst you'll have to copy and modify the CraftingManager class to handle your recipes. Link to comment Share on other sites More sharing options...
The_New_Pro Posted October 9, 2012 Share Posted October 9, 2012 It's either in the shape of a crossbow, or a sword, depending. Wait, is that two blasphlemies? Looks like I may have to kill you now. With a square gun! Link to comment Share on other sites More sharing options...
GreenWolf13 Posted October 9, 2012 Author Share Posted October 9, 2012 Check out BlockWorkbench and ContainerWorkbench in the Minecraft source code. It looks like the grid size is abstracted enough that you change a few initialization values in the ContainerWorkbench constructor, then make a new crafting GUI for your new block. At worst you'll have to copy and modify the CraftingManager class to handle your recipes. Thank you! I never thought to look at the actual workbench code (silly me) as I assumed it was hard coded to be a 3x3. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now