Custom Dimensions Do Not Work In 1.17 (maybe?)

    • Type: Bug
    • Resolution: Invalid
    • Priority: Major
    • None
    • Affects Version/s: None
    • Environment:

      Ubuntu, Java 16

    • This server is running CraftBukkit version 3117-Spigot-66f9d3c-4ac634a (MC: 1.17) (Implementing API version 1.17-R0.1-SNAPSHOT) You are 4 version(s) behind
    • none
    • Yes

      I have been updating a server that uses a custom dimension in a datapack.

      It worked throughout the Vanilla snapshots and Release Candidate 2.

      It does not work in Spigot.

      Spigot generates a folder path in the "/minecraft/world_kingdoms_spawn" directory that custom dimension datapacks ignore.

      Usually the directory for the dimension would happen in the "/minecraft/world/dimensions" folder but instead tries to put itself at "/minecraft/" folder.

      I cannot guarantee that it is not my fault, but I tried it several ways.

      I am solid enough to upgrade 4 out of 5 servers... but this one doesn't seem to work with spigot.

      It could be just something simple. but I will bash a head at a brick wall all of tomorrow!

      I appreciate the Spigot team, take a bit of a break!!! Good work!

        1. latest.log
          32 kB
        2. Kingdoms-City-Recode.zip
          134 kB
        3. image-2021-06-12-15-37-46-816.png
          image-2021-06-12-15-37-46-816.png
          48 kB
        4. image-2021-06-12-03-45-45-772.png
          image-2021-06-12-03-45-45-772.png
          363 kB
        5. image-2021-06-12-03-11-24-834.png
          image-2021-06-12-03-11-24-834.png
          617 kB
        6. image-2021-06-12-01-15-29-902.png
          image-2021-06-12-01-15-29-902.png
          245 kB
        7. image-2021-06-12-00-47-42-831.png
          image-2021-06-12-00-47-42-831.png
          38 kB

          [SPIGOT-6523] Custom Dimensions Do Not Work In 1.17 (maybe?)

          Hello, so how exactly do I fix this issue in 1.17, because I still have it. A small walkthrough would be very helpful! Thank you.

          Tamzid Rahman added a comment - Hello, so how exactly do I fix this issue in 1.17, because I still have it. A small walkthrough would be very helpful! Thank you.

          Norbert added a comment -

          Hey, I'm the author of that plugin. I made the plugin because Spigot didn't support custom dimensions in 1.16 at all, now it seems to support them, though I haven't done a lot of testing.

          The dimension folder name doesn't break the namespaces as they are treated separately. In my plugin I also added an option to rename dimensions in Bukkit. The name Bukkit uses can be anything, the plugins will see that name and the world folder is named after that, while the key of the dimension is used by the vanilla server and depends on the datapack.

          If you're still having this issue, add "type":"minecraft:overworld" before the "generator" key. I haven't tried the datapack but I noticed this. The flat type is kind of misleading, it's different than the dimension type. The dimension type has a lot of settings that you had initially but if you want to alter those then you will need to create a separate dimension type according to the Wiki, I'm not sure why does it work in vanilla that way.

          Norbert added a comment - Hey, I'm the author of that plugin. I made the plugin because Spigot didn't support custom dimensions in 1.16 at all, now it seems to support them, though I haven't done a lot of testing. The dimension folder name doesn't break the namespaces as they are treated separately. In my plugin I also added an option to rename dimensions in Bukkit. The name Bukkit uses can be anything, the plugins will see that name and the world folder is named after that, while the key of the dimension is used by the vanilla server and depends on the datapack. If you're still having this issue, add "type":"minecraft:overworld" before the "generator" key. I haven't tried the datapack but I noticed this. The flat type is kind of misleading, it's different than the dimension type. The dimension type has a lot of settings that you had initially but if you want to alter those then you will need to create a separate dimension type according to the Wiki, I'm not sure why does it work in vanilla that way.

          Nikolas added a comment -

          It seems other people have had this problem with Spigot in the past as well.

          Someone made a plugin to fix it in 1.16.5.

          https://www.spigotmc.org/resources/1-16-custom-dimensions.83731/

          Nikolas added a comment - It seems other people have had this problem with Spigot in the past as well. Someone made a plugin to fix it in 1.16.5. https://www.spigotmc.org/resources/1-16-custom-dimensions.83731/

          Nikolas added a comment - - edited
          {    "generator": {      "seed": 0,      "type""minecraft:flat",      "settings": {        "biome""minecraft:mushroom_fields",        "lakes"false,        "features"false,        "layers": [          {            "block""minecraft:grass_block",            "height": 1          }        ],        "structures": {          "structures": {}        }      }    }  }
          

          I changed the .json and got rid of the "type" segments. Still does not work in Spigot.

          Nikolas added a comment - - edited {     "generator" : {       "seed" : 0,       "type" :  "minecraft:flat" ,       "settings" : {         "biome" :  "minecraft:mushroom_fields" ,         "lakes" :  false ,         "features" :  false ,         "layers" : [          {             "block" :  "minecraft:grass_block" ,             "height" : 1          }        ],         "structures" : {           "structures" : {}        }      }    }  } I changed the .json and got rid of the "type" segments. Still does not work in Spigot.

          md_5 added a comment -

          No the dimension type is used for "type", the first dozen lines of your screenshot

          md_5 added a comment - No the dimension type is used for "type", the first dozen lines of your screenshot

          Nikolas added a comment -

          The "dimension_type" folder is only for custom dimension types. I am using "minecraft:flat" as my dimension type shown in the .json file in the image above that generates my custom Dimension.

          The "name" key that you say doesn't seem to be used is what is used to create the namespace. When loading this datapack, Vanilla will create a "dimensions/kingdoms/spawn" folder. Datapacks rely on the namespace "kingdoms:spawn" (in my case) to access the custom Dimension.

          Spigot does not create a "dimensions/kingdoms/spawn" folder. It instead tries to create a folder called "world_kingdoms_spawn" in the root Minecraft directory. This breaks the namespace system, making it invalid when trying to access in game.

          Nikolas added a comment - The "dimension_type" folder is only for custom dimension types. I am using "minecraft:flat" as my dimension type shown in the .json file in the image above that generates my custom Dimension. The "name" key that you say doesn't seem to be used is what is used to create the namespace. When loading this datapack, Vanilla will create a "dimensions/kingdoms/spawn" folder. Datapacks rely on the namespace "kingdoms:spawn" (in my case) to access the custom Dimension. Spigot does not create a "dimensions/kingdoms/spawn" folder. It instead tries to create a folder called "world_kingdoms_spawn" in the root Minecraft directory. This breaks the namespace system, making it invalid when trying to access in game.

          md_5 added a comment -

          The solution is to make a dimension_type folder like the wiki says and vanilla does

          md_5 added a comment - The solution is to make a dimension_type folder like the wiki says and vanilla does

          Nikolas added a comment -

          I'll dig into it more when I wake up. It is 4am. If I can get it running in Spigot, I will let you know my solution.

          Nikolas added a comment - I'll dig into it more when I wake up. It is 4am. If I can get it running in Spigot, I will let you know my solution.

          md_5 added a comment -

          Yeah sorry I didn't catch the caves the first time round, but I still think the pack is technically invalid even though it does work on vanilla

          md_5 added a comment - Yeah sorry I didn't catch the caves the first time round, but I still think the pack is technically invalid even though it does work on vanilla

          Nikolas added a comment - - edited

          Oh! Good to know!

          I will read up on that! Thanks!

          Although, I got this to load into a Vanilla 1.17 server just fine using the same methods as before. Here is a screenshot of that:

          (Same Datapack, be sure you are using CavesAndCliffsPreview.zip datapack with it too, like I mentioned above.)

          Nikolas added a comment - - edited Oh! Good to know! I will read up on that! Thanks! Although, I got this to load into a Vanilla 1.17 server just fine using the same methods as before. Here is a screenshot of that: (Same Datapack, be sure you are using CavesAndCliffsPreview.zip datapack with it too, like I mentioned above.)

            Assignee:
            Unassigned
            Reporter:
            Nikolas
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: