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 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.

There clearly is a dungeon chest category in ChestGenHooks.

Then you can use whatever addItem method you want in that class.

  • 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.

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??

  • 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.

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.

  • 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.

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.

  • 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.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

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.