Jump to content

Making a grinder compatable with other mods


MistaOmega

Recommended Posts

Hello all! So I have made a grinder, and a custom recipe for it, that grinds starlight ore, to stardust

https://github.com/MistaOmega/Opes/blob/master/src/main/java/mistaomega/opes/tiles/GrinderTile.java

 

I would like to make this tile compatable with other mods so that for example, if I put osmium ore from Mekanism in, osmium dust comes in.

How would I get started doing this?

 

Thank you all, sorry for no meme, I will leave two next time ❤️

 

~Omega

Link to comment
Share on other sites

https://github.com/MistaOmega/Opes/blob/master/src/main/java/mistaomega/opes/tiles/GrinderTile.java#L79

You need to clone this stack or things will go very wrong indeed.

 

https://github.com/MistaOmega/Opes/blob/master/src/main/java/mistaomega/lib/inventory/outputStackHandler.java#L7

This class should start with a capital letter to follow naming convention

 

https://github.com/MistaOmega/Opes/blob/master/src/main/java/mistaomega/lib/inventory/outputStackHandler.java#L17

You do not need to override this method, you're not doing anything that the base implementation does not already do.

 

https://github.com/MistaOmega/Opes/blob/master/src/main/java/mistaomega/lib/inventory/ProcessingBlockItemHandler.java#L10

This comment is objectively wrong. The int passed there is how many slots the handler has, so this "won't be shown" stuff is bollocs.

 

https://github.com/MistaOmega/Opes/blob/master/src/main/java/mistaomega/opes/tiles/GrinderTile.java#L80

This line assumes that all outputs are size 1. This may or may not be true.

 

And finally, you have no data assets which use your recipe type, but the above issues not withstanding, your grinder is compatible with any mod that has a recipe that matches your grinder recipe.

  • Thanks 1

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.

Link to comment
Share on other sites

4 hours ago, Draco18s said:

And finally, you have no data assets which use your recipe type, but the above issues not withstanding, your grinder is compatible with any mod that has a recipe that matches your grinder recipe. 

Ah, I forgot to flag IntelliJ to upload my data asset to github, but I will fix that, 

 

As for other stuff, thank you for the heads up, I'll iterate through and fix them 

 

Relating back to my original question, does this mean in the context of making it compatable with something like Mekanism, I'd need to write a recipe for osmium dust specifically for my grinder? 

Link to comment
Share on other sites

9 hours ago, MistaOmega said:

Relating back to my original question, does this mean in the context of making it compatable with something like Mekanism, I'd need to write a recipe for osmium dust specifically for my grinder? 

Either you do, or Mekanism does.

  • Thanks 1

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.

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



×
×
  • Create New...

Important Information

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