#Get Resource URI

14 messages · Page 1 of 1 (latest)

kindred oxide
#

Hello! I want to put some HTML files in my resources folder so it gets bundled with the jar. The issue is I need a URI of the file. Any ideas? Thanks!

#

Mention on response

rustic lily
# kindred oxide Mention on response

PathUtil#getResourcePath lead me to StructureTemplateManager#loadTemplateFromSnbt, which uses the path Paths.get("Minecraft.Server/src/test/convertables/data")

#

So that might be a good place to start

kindred oxide
#

uhh

#

why is it so hard to just get the path of a resource :C

rustic lily
#

Cuz it's zipped i guess

kindred oxide
#

unlucky

#

ok well I'll look at that after math homeworks

#

ty

proud pagoda
#

You should also look into ModContainer. Mod paths are slightly cursed

kindred oxide
kindred oxide
#

unfortunately I don't think I can just get the file path