Jump to content

Wanting to use assets from other mods?


TheSgtPunishment

Recommended Posts

I'm just wondering if it's possible to "borrow" assets from other mods? I don't mean extract the textures and pack them with my mod, I mean in a pseudo code example

 

If(chisel2.isLoaded) {

Use textures

}

 

I've spoken to the chisel2 author / maintainer and he said something like "use getIcon() on the block"

 

But I can't seem to find any documentation on how to go about doing this.

 

Thank you for your time.

Link to comment
Share on other sites

When starting up your mod you can check if other is loaded and use it's assets by modid.

 

textures are pulled like:  modid:textures/...

So if you make sure that other mod has alredy registered its textures you can use them.

 

Unless I am wrong (speculating).

 

What's your forge version btw?

1.7.10 is no longer supported by forge, you are on your own.

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.