Uploaded image for project: 'Minecraft: Java Edition'
  1. Minecraft: Java Edition
  2. MC-229555

Datapacks zipped by Java program can't read data files

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • None
    • 1.17
    • None
    • Windows 10 Home, 64 bit
    • Confirmed
    • (Unassigned)

      I am currently working on a datapack and wrote an automated build process in Java to produce a zipped datapack.

      When I drag that Java-zipped datapack into the datapack folder of a world, it will load the meta file and provide the description when using /datapack list but nothing from the datapack works, such as recipes or functions.

      When I zip the datapack via the windows right-click menu, the datapack is detected and works perfectly fine.

      The structure inside the zipped file is the same for both of them and yet, only the self-sipped seems to work.

       

      I have attached:

      • the datapack that doesn't work (Java-zipped) (mc_betterpack.zip)
      • the datapack that is working (self-zipped) (mc_betterpack working.zip)
      • the code that I use to zip the datapack (zip.txt)
      • an image that shows that the datapack loads in either cases but won't work in the Java case (loaded datapack.png)

        1. zip.txt
          0.6 kB
          Yan Wittmann
        2. loaded datapack.png
          60 kB
          Yan Wittmann

            Unassigned Unassigned
            Skyball Yan Wittmann
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              CHK: