Posted October 5, 201312 yr I got pointed at this tutorial and it's clearly both inaccurate (uses both MinecraftForge.addDungeonLoot and DungeonHooks.addDungeonLoot in its examples) and out of date (this method exists in neither). Where has it gone? ChestGenHooks has this comment: //Currently implemented categories for chests/dispensers, Dungeon loot is still in DungeonHooks Which is also...wrong, as DungeonHooks only has add/remove mob. 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.
October 6, 201312 yr There clearly is a dungeon chest category in ChestGenHooks. Then you can use whatever addItem method you want in that class.
October 6, 201312 yr Author My goal was to allow other mods to build dungeons that would get my loot without adding it to the vanilla dungeon loot list. Apparently the person who sent me that link doesn't understand what dungeon loot is properly. 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.
October 6, 201312 yr I hope this works, but my mod adds items to appear in structure chests from Vanilla, using this method: ChestGenHooks.getInfo(ChestGenHooks.CHEST_TYPE_HERE.addItem(new WeightedRandomChestContent(new ItemStack(ITEM HERE), MINIMUM STACK SIZE, MAXIMUM STACK SIZE, CHANCE TO GENERATE[higher=more often])); Hope this helped you. All the chest types can be found in ChestGenHooks, and maybe some in the actual structure file. Probably not though. The last three variables are all ints. Do you know how to code a sphere of particles??
October 6, 201312 yr Author I am already aware of how to use ChestGenHooks, ty. As for your question: that you have your own thread for and no, I do not. 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.
October 6, 201312 yr That tutorial didn't help me either. I seem to have misunderstood your question. I think they could just add your loot through their own code, when they decide what will be in their chests. I did that with my mod (unfortunately structures were too much for me) and my own items.
October 6, 201312 yr Author That tutorial didn't help me either. I seem to have misunderstood your question. I think they could just add your loot through their own code, when they decide what will be in their chests. I did that with my mod (unfortunately structures were too much for me) and my own items. To help get into structures, take a look at this: http://www.minecraftforum.net/topic/1336152-132-updated-metadata-support-simple-schematic-to-java-file-converter/ While the code outputted is for 1.3.2, there's only a handful of names that need to be changed to make it work. I've also been pointed at MCreator, as it will output Java files that you can edit as well. 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.
October 8, 201312 yr Thanks a lot. I'm sure that tutorial and the program will help me a lot. I'm sorry I can't help with your problem, I'm still fairly new at modding.
October 8, 201312 yr Author Thanks a lot. I'm sure that tutorial and the program will help me a lot. I'm sorry I can't help with your problem, I'm still fairly new at modding. My problem was one of confusion. And the program is glorious. It messes up the orientation on dispensers frequently (still not sure why)--last use I had 6 dispeners, 3 facing the other three. In the converted code only one is facing the right direction. 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.
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.