Jump to content

Recommended Posts

Posted

Trying to make a tool (not a mod. Sorry if this is in the wrong category) that will dive through any jar file I give it.  It should be able to retrieve any new items/blocks added by the mod as well as any recipes and images related to said items/blocks.

 

Want to make some sort of modpack creator/server lister/mod detailer/super awesome thing in the future and this is a key component.

 

Any clue as to where I would start? Just diving through Tinker's Construct with WinRar points me to a bunch of classes with unreadable text..

I have a github https://github.com/sfxworks

 

Also try Public Desktop. It's the main thing I develop/talk about on my twitter.

 

https://twitter.com/quantomworks

 

http://www.speedyshare.com/bVBeE/ProjectDesktop2-0.exe#.V012CNPy7Kg.twitter

Posted
  On 5/31/2016 at 2:09 PM, diesieben07 said:

This is not easily possible at all. If anything this would be doable as a mod that runs alongside any other mods you want to analyze.

 

So something like Idfix http://www.minecraftforum.net/forums/mapping-and-modding/minecraft-mods/1291014-idfix-and-idfix-minus-mods-for-resolving-id where it pulls the mod items and changes their item ids? (The part where it pulls the items & recipes being the part I want)

 

Any idea on how to start using a method like that?

 

I guess I'd have a server that would start & stop and generate reports based on the mods loaded..

I have a github https://github.com/sfxworks

 

Also try Public Desktop. It's the main thing I develop/talk about on my twitter.

 

https://twitter.com/quantomworks

 

http://www.speedyshare.com/bVBeE/ProjectDesktop2-0.exe#.V012CNPy7Kg.twitter

Posted
  On 5/31/2016 at 12:41 PM, sfxworks said:

Just diving through Tinker's Construct with WinRar points me to a bunch of classes with unreadable text..

 

That's because you're looking at the raw bytecode for the mod, not the source code.

If you wanted to read .class files as code, you'd need to decompile it first (fortunately Java is an open source format, albeit complicated).

 

Or you can write it as a mod, as diesieben suggests.

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.

Posted
  On 5/31/2016 at 5:29 PM, Draco18s said:

  Quote

Just diving through Tinker's Construct with WinRar points me to a bunch of classes with unreadable text..

 

That's because you're looking at the raw bytecode for the mod, not the source code.

If you wanted to read .class files as code, you'd need to decompile it first (fortunately Java is an open source format, albeit complicated).

 

Or you can write it as a mod, as diesieben suggests.

 

Decompiling sounds interesting (but another learning curve). Making a mod sounds a bit more interesting. Only made one unlaunched bukkit mod before so playing with forge sounds like a cool new hobby.

 

  Quote

You would write a mod like normal. Then when the game has loaded you'd go through the registries of the stuff that you want and print out whatever info you need.

 

fx3kcF.jpg

 

Now we're talking. Is there some sort of get all items and blocks from the registry function? I can see that I can search for one as of now. Miiiight not be a good idea to cycle through all possible a-z0-9 variations.

 

I have a github https://github.com/sfxworks

 

Also try Public Desktop. It's the main thing I develop/talk about on my twitter.

 

https://twitter.com/quantomworks

 

http://www.speedyshare.com/bVBeE/ProjectDesktop2-0.exe#.V012CNPy7Kg.twitter

Posted

The

ForgeRegistries

class exposes each registry (blocks, items, etc.) as an

IForgeRegistry

. This extends

Iterable

, so you can iterate through the registry's values with a for-each/enhanced for loop.

 

You can also use

IForgeRegistry#getEntries

to get the entries (keys and values).

Please don't PM me to ask for help. Asking your question in a public thread preserves it for people who are having the same problem in the future.

Posted
  On 6/1/2016 at 9:09 AM, Choonster said:

The

ForgeRegistries

class exposes each registry (blocks, items, etc.) as an

IForgeRegistry

. This extends

Iterable

, so you can iterate through the registry's values with a for-each/enhanced for loop.

 

You can also use

IForgeRegistry#getEntries

to get the entries (keys and values).

 

Heh, this is pretty fun.

 

rLocwi.jpg

 

I see a lot of properties I can take advantage of. The only ones I can't find are a default recipe and an image representing the item/block. Where would I find said properties?

 

 

I have a github https://github.com/sfxworks

 

Also try Public Desktop. It's the main thing I develop/talk about on my twitter.

 

https://twitter.com/quantomworks

 

http://www.speedyshare.com/bVBeE/ProjectDesktop2-0.exe#.V012CNPy7Kg.twitter

Posted

You don't need to use an

Iterator

to iterate through an

Iterable

, just use an enhanced for loop.

 

Blocks don't have a single recipe or image. There are many recipes, some of which may output a specified block. Each block can have a model per state, each model can use multiple textures.

 

CraftingManager#getRecipeList

returns the recipe list,

IRecipe#getRecipeOutput

returns the recipe's default output (may be

null

). Recipes can change their actual output based on the contents of the crafting grid, so the default output may not be what the player actually gets when they craft it.

 

BlockModelShapes#getModelForState

returns the model for the specified block state.

IBakedModel#getParticleTexture

returns the model's particle texture (could be used as the default texture).

IBakedModel#getQuads

returns a list of

BakedQuad

s,

BakedQuad#getSprite

returns the quad's texture.

Please don't PM me to ask for help. Asking your question in a public thread preserves it for people who are having the same problem in the future.

Posted

Mind there's also Smelting recipes (Furnace.getSmelting() iirc) and brewing recipes.

Mods then may add their own recipes devices (grinders, sifters, macerators, crushers, extractors, compressers, canners, electrolyzers, injectors, washers, mixers...).

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.

Posted
  On 6/1/2016 at 3:57 PM, Draco18s said:

Mind there's also Smelting recipes (Furnace.getSmelting() iirc) and brewing recipes.

Mods then may add their own recipes devices (grinders, sifters, macerators, crushers, extractors, compressers, canners, electrolyzers, injectors, washers, mixers...).

 

Is there a sort of official registry for said types of recipes or would I have to try to work with each mod individually?

I have a github https://github.com/sfxworks

 

Also try Public Desktop. It's the main thing I develop/talk about on my twitter.

 

https://twitter.com/quantomworks

 

http://www.speedyshare.com/bVBeE/ProjectDesktop2-0.exe#.V012CNPy7Kg.twitter

Posted
  On 6/1/2016 at 4:16 PM, sfxworks said:

Is there a sort of official registry for said types of recipes or would I have to try to work with each mod individually?

 

There is not. You would need to handle every mod individually.

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.

Posted
  On 6/1/2016 at 4:37 PM, Draco18s said:

  Quote

Is there a sort of official registry for said types of recipes or would I have to try to work with each mod individually?

 

There is not. You would need to handle every mod individually.

 

Does Too Many Items and Not Enough Items go through the trouble of doing this? I would figure they would have some sort of way to bring up different crafting styles automatically.

 

Is there a sort of default property inside a Mod that stories it's custom recipes along with some detail on it's crafting mechanics?

I have a github https://github.com/sfxworks

 

Also try Public Desktop. It's the main thing I develop/talk about on my twitter.

 

https://twitter.com/quantomworks

 

http://www.speedyshare.com/bVBeE/ProjectDesktop2-0.exe#.V012CNPy7Kg.twitter

Posted
  On 6/1/2016 at 4:58 PM, sfxworks said:

Does Too Many Items and Not Enough Items go through the trouble of doing this? I would figure they would have some sort of way to bring up different crafting styles automatically.

 

Is there a sort of default property inside a Mod that stories it's custom recipes along with some detail on it's crafting mechanics?

 

They have an API that allows mods to register handlers for their custom recipe types, there's no way to automatically handle every recipe type.

Please don't PM me to ask for help. Asking your question in a public thread preserves it for people who are having the same problem in the future.

Posted

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

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

Announcements



  • Recently Browsing

    • No registered users viewing this page.
  • Posts

    • Thank you so much! I didnt see it in the log๐Ÿ˜ญ๐Ÿ˜ญ  
    • So im completely new to modding in general, i have some experience in Behavior packs in minecraft bedrock and i would like to modify entities stats and attributes like in a behavior pack (health, damage, speed, xp drop...). The problem is that i cant find any information online on how to do that, and I have no clue on what to do and where to start. I am currently modding in 1.20.4 with IntelliJ if that helps. My final objective is to buff mobs health and damage (double it for exemple), but since there is no entity file anywhere i don't know how to change it... ๐Ÿ˜ข
    • Unlock an Instant $100 OFF with the Exclusive Temu Coupon Code ALF401700! Whether you're a first-time shopper or a loyal returning customer, this verified Temu promo code ALF401700 is your gateway to incredible savings on thousands of products. By applying code ALF401700 at checkout, youโ€™ll receive a guaranteed $100 discount on your purchase, plus enjoy additional savings of up to 50% OFF on selected items. This special coupon is designed to maximize your discounts, making your shopping experience at Temu more affordable than ever. Why Choose Temu Coupon Code ALF401700 in 2025? First-Time Shoppers: Score a massive 50% off your first order plus a flat $100 OFF using promo code ALF401700. Returning Customers: Donโ€™t miss out! Use ALF401700 to claim a generous $100 OFF on your next purchase. Massive Clearance Sales: With Temuโ€™s ongoing 2025 clearance events, this code unlocks up to 90% OFF on select deals. Global Reach: Whether you shop from the USA, Canada, Europe, Asia, or beyond, Temu coupon ALF401700 works worldwide. 2025โ€™s Top Temu Discounts Powered by ALF401700: Temu $100 OFF New User Promo โ€” ALF401700 Temu Exclusive Discount for Returning Shoppers โ€” ALF401700 Memorial Day Special: $100 OFF Using ALF401700 Country-Specific Offers: USA, Japan, Mexico, Chile, Colombia, Malaysia, Philippines, South Korea, Saudi Arabia, Qatar, Germany, France, Israel โ€” all accept code ALF401700 Free Gift Unlocks โ€” Apply ALF401700 Without Referrals Stackable Bundles: Combine ALF401700 for $100 OFF with up to 50% sitewide discounts 100% OFF Flash Deals during Temu Events with ALF401700 How to Redeem Your Temu Coupon Code ALF401700: Visit the official Temu website or open the Temu app. Select your favorite products and add them to your cart. Enter the promo code ALF401700 in the discount code field at checkout. Watch your total instantly drop by $100 and enjoy any additional percentage discounts automatically applied. Complete your order and enjoy huge savings! Key Benefits of Using ALF401700 Temu Promo Code: Verified and Tested: This code is active and guaranteed to work for 2025. Applicable for All Users: New or existing customers get to enjoy the perks. Works Across Multiple Countries: Perfect for international shoppers. No Minimum Purchase Required: Use it anytime to save $100. Perfect for Big and Small Orders: Whether buying essentials or splurging, save big with ALF401700. Temu Coupon Code ALF401700 by Region: ๐Ÿ‡บ๐Ÿ‡ธ United States โ€” Save $100 OFF ๐Ÿ‡จ๐Ÿ‡ฆ Canada โ€” Instant $100 Discount ๐Ÿ‡ฌ๐Ÿ‡ง United Kingdom โ€” Exclusive $100 OFF ๐Ÿ‡ฏ๐Ÿ‡ต Japan โ€” Hot $100 OFF Deal ๐Ÿ‡ฒ๐Ÿ‡ฝ Mexico โ€” Get $100 OFF ๐Ÿ‡จ๐Ÿ‡ฑ Chile โ€” 2025 Special Discount ๐Ÿ‡ฐ๐Ÿ‡ท South Korea โ€” Massive Savings ๐Ÿ‡ต๐Ÿ‡ญ Philippines โ€” Extra $100 OFF ๐Ÿ‡ธ๐Ÿ‡ฆ Saudi Arabia โ€” Verified Promo ๐Ÿ‡ถ๐Ÿ‡ฆ Qatar โ€” Top Discount ๐Ÿ‡ฉ๐Ÿ‡ช Germany โ€” Exclusive Savings ๐Ÿ‡ซ๐Ÿ‡ท France โ€” Coupon Works ๐Ÿ‡ฎ๐Ÿ‡ฑ Israel โ€” Huge Discount Final Words: Make 2025 your year of unbeatable savings with the Temu coupon code ALF401700. Act now to claim your $100 OFF plus unlock additional discounts on thousands of products. Whether shopping for fashion, electronics, home essentials, or gifts, this is the best Temu promo code to maximize your budget. Download the Temu app today, enter ALF401700 at checkout, and watch the savings roll in!
    • Verified users can now unlock a $100 OFF Temu Coupon Code using the verified promo code [ALF401700]. This Temu $100 OFF code works for both new and existing customers and can be used to redeem up to 50% off your next order. Our exclusive Temu coupon code [ALF401700] delivers a flat $100 OFF on top of existing deals. First-time customers using code ALF401700 can save an extra 100% off select items. Returning users also qualify for an automatic $100 OFF discount just by applying this code at checkout. But waitโ€”thereโ€™s more. With our Temu coupon codes for 2025, users can score up to 90% OFF on clearance items. Whether youโ€™re shopping in the USA, Canada, UK, or elsewhere, Temu promo code ALF401700 unlocks extra discounts tailored to your account. Some users are saving 100% on items using this 2025 Temu promo code. ๐Ÿ”ฅ Temu Coupon Highlights Using Code [ALF401700]: Temu new user code โ€“ ALF401700: Save 50% off your first order + $100 OFF. Temu promo for existing customers โ€“ ALF401700: Enjoy flat $100 OFF instantly. Global availability: Works in the USA, UK, Canada, Germany, France, Japan, Chile, Colombia, Malaysia, Mexico, South Korea, Philippines, Saudi Arabia, Qatar, Pakistan, and more. Top 2025 Coupon Deal: Get $200 OFF plus 100% bonus discounts using code ALF401700. Top-Ranked Temu Deals for 2025 (Coupon Code: ALF401700): โœ… Temu $100 OFF Memorial Day Sale โ€” Use ALF401700 โœ… Temu First Order Coupon โ€” Use ALF401700 for 50% + $100 OFF โœ… Temu USA Coupon Code โ€” Save $100 instantly with ALF401700 โœ… Temu Japan, Germany, Chile Codes โ€” All support ALF401700 โœ… Temu Reddit Discount โ€“ $100 OFF: Valid for both new and old users โœ… Temu Coupon Bundle 2025 โ€” $100 OFF + up to 50% slash โœ… 100% OFF Free Gift Code โ€” Use ALF401700, no invite needed โœ… Temu Sign-Up Bonus Promo โ€” Get a welcome $100 OFF instantly โœ… Free Temu Code for New Users โ€” Use ALF401700, no referral required  Temu Clearance Codes 2025 โ€” Use ALF401700 for 85โ€“100% discounts Why ALF401700 is the Best Temu Code in 2025 Using Temu code ALF401700 is your ticket to massive savings, free shipping, first-order discounts, and stackable coupon bundles. Whether you're browsing electronics, fashion, home goods, or beauty products, this verified Temu discount code offers real savingsโ€”up to 90% OFF + $100 OFF on qualified orders. ๐Ÿ’ก Pro Tip: Apply ALF401700 during checkout in the Temu app or website to activate your instant $100 discount, even if youโ€™re not a new user. Temu $100 OFF Code by Country (All Use ALF401700): ๐Ÿ‡บ๐Ÿ‡ธ Temu USA โ€“ ALF401700 ๐Ÿ‡ฏ๐Ÿ‡ต Temu Japan โ€“ ALF401700 ๐Ÿ‡ฒ๐Ÿ‡ฝ Temu Mexico โ€“ ALF401700 ๐Ÿ‡จ๐Ÿ‡ฑ Temu Chile โ€“ ALF401700 ๐Ÿ‡จ๐Ÿ‡ด Temu Colombia โ€“ ALF401700 ๐Ÿ‡ฒ๐Ÿ‡พ Temu Malaysia โ€“ ALF401700 ๐Ÿ‡ต๐Ÿ‡ญ Temu Philippines โ€“ ALF401700 ๐Ÿ‡ฐ๐Ÿ‡ท Temu Korea โ€“ ALF401700 ๐Ÿ‡ต๐Ÿ‡ฐ Temu Pakistan โ€“ ALF401700 ๐Ÿ‡ซ๐Ÿ‡ฎ Temu Finland โ€“ ALF401700 ๐Ÿ‡ธ๐Ÿ‡ฆ Temu Saudi Arabia โ€“ ALF401700 ๐Ÿ‡ถ๐Ÿ‡ฆ Temu Qatar โ€“ ALF401700 ๐Ÿ‡ซ๐Ÿ‡ท Temu France โ€“ ALF401700 ๐Ÿ‡ฉ๐Ÿ‡ช Temu Germany โ€“ ALF401700 ๐Ÿ‡ฎ๐Ÿ‡ฑ Temu Israel โ€“ ALF401700 Temu Coupon Code [ALF401700] Summary for SEO: Temu $100 OFF Code  Temu First Order Discount Code 2025  Temu Verified Promo Code ALF401700  Temu 50% OFF + $100 Bonus  Temu 100% OFF Code 2025  Temu App Promo ALF401700  Temu Working Discount Code 2025 
    • Hey there, nothing to do with the code, I am just suggesting you use Intelij IDEA. Trust me, it is the best.
  • Topics

ร—
ร—
  • Create New...

Important Information

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