Jump to content

[1.12.2] Listing images in a resource pack folder. [SOLVED]


SaltyBrownie18

Recommended Posts

PROBLEM:

I was wondering if it's possible to list all files inside a resource pack's folder.

 

For example, let's say I have this a folder called flower, it's ResourceLocation would be example:blocks/flower.

Inside that folder, I have images called rose, dandelion, cyan_rose and etc. Is it possible to save their names for later use?

 

Note that I want to save them inside a list and then, on a resource pack reload, clear the list to accommodate any changes

 

SOLUTION:

See diesieben07's response below.

Edited by SaltyBrownie18
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.