modrinth / code

The Modrinth monorepo containing all code which powers Modrinth!
https://modrinth.com
Other
762 stars 123 forks source link

Folder name com.modrinth.theseus breaks Structure Block's file creation in Vanilla #857

Closed Yetenol closed 5 months ago

Yetenol commented 8 months ago

Describe the bug

When I click SAVE in a structure block in Save Mode, it throws Unable to save structure 'minecraft:test' in the chat. I was able to fix the error by renaming Modrinth's app directory from com.modrinth.theseus to .modrinth. Can you change the default app directory name, so other players don't run into the save issue?

The structure block exports up to 32x32x32 block into an NBT file like

%AppData%\com.modrinth.theseus\profiles\Vanilla\saves\New World\generated\minecraft\structures\test.nbt

Steps to reproduce

Expected behavior

When I click SAVE in a minecraft structure block, a message Structure saved as 'minecraft:test' should appear in chat and the following file should be created:

%AppData%\com.modrinth.theseus\profiles\Vanilla\saves\New World\generated\minecraft\structures\test.nbt

System information

I run Modrinth App 0.6.0 on Microsoft Windows 11 Pro 10.0.22621 Build 22621

Additional context

No response

Yetenol commented 8 months ago

This issue also occurs in other Minecraft distributions: https://github.com/flathub/com.mojang.Minecraft/issues/64 https://www.reddit.com/r/MinecraftHelp/comments/15obirr/i_cannot_save_structure_using_structure_blocks/

Yetenol commented 8 months ago

Similar to #682 but I the read-only wasn't a problem

Yetenol commented 8 months ago

Until there is a more intended solution, here is how to fix it:

rowandevving commented 6 months ago

can confirm this issue still exists on minecraft 1.20.4 and theseus v0.6.3

Sketano commented 5 months ago

Please fix this issue, I cannot save structures.

ManicQuinn commented 5 months ago

Until there is a more intended solution, here is how to fix it:

  • Close Minecraft and Modrinth
  • Navigate to %AppData% in File Explorer
  • Backup Modrinth's app directory com.modrinth.theseus
  • Rename com.modrinth.theseus to .modrinth
  • Open Modrinth and skip the welcome screen and tutorial
  • Open Modrinth's settings and change to app directory to %AppData%/.modrinth
  • Launch your Minecraft instance again and click save in any structure block

This temporary fix breaks Modrinth's built-in Java, hope they will fix this soon..

triphora commented 5 months ago

Duplicate of #682

caleb53575Scratch commented 2 months ago

Refrence I tried it and now I can't open any of my mod packs, even after reverting all changes. Thanks for making me lose months of progress on multiple worlds, idiot.

LukaM01 commented 1 week ago

Refrence That happened to me too now I can't access my modpacks , I think I know how to fix it. I will comment the solution once I find it