Jump to content

Making a Dungeon Chest/Village Chest find


biggles2206
 Share

Recommended Posts

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)

Link to comment
Share on other sites

  • 2 weeks later...

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!

Link to comment
Share on other sites

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
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share



  • Recently Browsing

    • No registered users viewing this page.
  • Posts

    • Hello,   So I've been trying to setup Datagen for forge 1.19.3 in IntelliJ. All my files generate fine, but for some reason the game won't actually recognize any of the generated json files, yes they are named correctly. here is the log:  Also, for some reason the folder "generated" does not show up as "generated [main]" as I've seen in other tutorials and forks of open source mods. Could someone help point me in the right direction as to why? Thank you!    [13:29:33] [main/INFO] [minecraft/DataGenerator]: Recipes finished after 13 ms [13:29:33] [main/INFO] [minecraft/DataGenerator]: Starting provider: LootTables [13:29:33] [main/INFO] [minecraft/DataGenerator]: LootTables finished after 17 ms [13:29:33] [main/INFO] [minecraft/DataGenerator]: Starting provider: Block States: mystica [13:29:33] [main/INFO] [minecraft/DataGenerator]: Block States: mystica finished after 17 ms [13:29:33] [main/INFO] [minecraft/DataGenerator]: Starting provider: Item Models: mystica [13:29:33] [main/INFO] [minecraft/DataGenerator]: Item Models: mystica finished after 0 ms [13:29:33] [main/INFO] [minecraft/DataGenerator]: Starting provider: Languages: en_us [13:29:33] [main/INFO] [minecraft/DataGenerator]: Languages: en_us finished after 0 ms [13:29:33] [main/INFO] [minecraft/DataGenerator]: Starting provider: worldgen/configured_feature generator for mystica [13:29:33] [main/INFO] [minecraft/DataGenerator]: worldgen/configured_feature generator for mystica finished after 1 ms [13:29:33] [main/INFO] [minecraft/DataGenerator]: Starting provider: worldgen/placed_feature generator for mystica [13:29:33] [main/INFO] [minecraft/DataGenerator]: worldgen/placed_feature generator for mystica finished after 0 ms [13:29:33] [main/INFO] [minecraft/DataGenerator]: Starting provider: forge/biome_modifier generator for mystica [13:29:33] [main/INFO] [minecraft/DataGenerator]: forge/biome_modifier generator for mystica finished after 0 ms [13:29:33] [main/INFO] [minecraft/DataGenerator]: All providers took: 53 ms [13:29:33] [main/INFO] [minecraft/HashCache]: Caching: total files: 52, old count: 0, new count: 53, removed stale: 0, written: 52 Process finished with exit code 0  
    • tryign to run a server on a VM but I keep gettin this Error: Invalid or corrupt jarfile forge-1.19.2-43.2.0-server.jar
    • Ensure you have the latest version of Minecraft Forge and Java installed. Besides, make sure that other software on your system isn't conflicting with Minecraft Forge. But keep in mind that Windows 11 is a very new operating system. It may take some time for compatibility issues to be resolved by software developers. In the meantime, you may need to use a different operating system or wait for a compatible version of Minecraft Forge to be released. If I were you, I'd try installing windows 10 with a license activation key and enjoy playing.
    • I actually believe this is the issue too, but you see I have 300 mods and honestly searching through ALL that one by one, is gonna take forever is there any way I can identify the duplicate mods without needing to search one by one in the mods folder?
    • Well yeah, but it used to work and I definitely didn't change it. Where can I change it? Everytime I manually edit the pom-default.xml forge just overwrites it.   edit: oh my bad, i changed the folder name and its the reason the artifactId changed
  • Topics

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.