Posted August 10, 201312 yr How do I make my swords a dengeon/villager chest find? - Thomas Lets make forge modding the best it can be!
August 10, 201312 yr How do I make my swords a dengeon/villager chest find? - Thomas Check out ChestGenHooks. //Example code: ChestGenHooks.getInfo(ChestGenHooks.VILLAGE_BLACKSMITH).addItem(new WeightedRandomChestContent(new ItemStack(yourItem),1,4,20)); ChestGenHooks.getInfo(ChestGenHooks.DUNGEON_CHEST).addItem(new WeightedRandomChestContent(new ItemStack(yourItem),1,3,5)); // Last three params: numMin, numMax, and chance to appear in chest (golden apple 1, bread 100)
August 23, 201312 yr Author How do I make my swords a dengeon/villager chest find? - Thomas Check out ChestGenHooks. //Example code: ChestGenHooks.getInfo(ChestGenHooks.VILLAGE_BLACKSMITH).addItem(new WeightedRandomChestContent(new ItemStack(yourItem),1,4,20)); ChestGenHooks.getInfo(ChestGenHooks.DUNGEON_CHEST).addItem(new WeightedRandomChestContent(new ItemStack(yourItem),1,3,5)); // Last three params: numMin, numMax, and chance to appear in chest (golden apple 1, bread 100) Thank you Lets make forge modding the best it can be!
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.