LKloosterman Posted August 30, 2016 Author Posted August 30, 2016 Something something, recipes still don't respect stack size something something. ItemStack oneCopperCoin = new ItemStack(ModItems.copper_coin, 1); GameRegistry.addShapelessRecipe(new ItemStack(ModItems.silver_coin), oneCopperCoin, oneCopperCoin, oneCopperCoin, oneCopperCoin, oneCopperCoin); Forgive me if I'm wrong, but would that not be the same as doing GameRegistry.addShapelessRecipe(new ItemStack(ModItems.silver_coin), ModItems.copper_coin, ModItems.copper_coin, ModItems.copper_coin, ModItems.copper_coin, ModItems.copper_coin); Just trying to wrap my head around what you did. Quote
TheMasterGabriel Posted August 30, 2016 Posted August 30, 2016 Something something, recipes still don't respect stack size something something. ItemStack oneCopperCoin = new ItemStack(ModItems.copper_coin, 1); GameRegistry.addShapelessRecipe(new ItemStack(ModItems.silver_coin), oneCopperCoin, oneCopperCoin, oneCopperCoin, oneCopperCoin, oneCopperCoin); I tried that but what happens is the 5 coins then need to be spread out in the crafting area, instead of being able to be used in a stack of 5. This way, it can be used in the player's inventory. Quote
LKloosterman Posted August 30, 2016 Author Posted August 30, 2016 Something something, recipes still don't respect stack size something something. ItemStack oneCopperCoin = new ItemStack(ModItems.copper_coin, 1); GameRegistry.addShapelessRecipe(new ItemStack(ModItems.silver_coin), oneCopperCoin, oneCopperCoin, oneCopperCoin, oneCopperCoin, oneCopperCoin); I tried that but what happens is the 5 coins then need to be spread out in the crafting area, instead of being able to be used in a stack of 5. This way, it can be used in the player's inventory. That's what I was thinking... Quote
Draco18s Posted August 30, 2016 Posted August 30, 2016 If you want a "stack of 5" to be used, you need to create your own IRecipe implementation. Quote Apparently I'm a complete and utter jerk and come to this forum just like to make fun of people, be confrontational, and make your personal life miserable. If you think this is the case, JUST REPORT ME. Otherwise you're just going to get reported when you reply to my posts and point it out, because odds are, I was trying to be nice. Exception: If you do not understand Java, I WILL NOT HELP YOU and your thread will get locked. DO NOT PM ME WITH PROBLEMS. No help will be given.
LKloosterman Posted August 30, 2016 Author Posted August 30, 2016 For now I'm going to sleep, but tomorrow I will try out TheMasterGabriel and Draco18s's idea with the custom IRecipe class. Thanks everyone, will update tomorrow. (I hate unfinished/solved forum topics when I'm searching for a solution to a problem...) Quote
Recommended Posts
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.