ChaoticTrials / SkyblockBuilder

Let you create a custom skyblock island via config
https://modrinth.com/mod/skyblock-builder
Apache License 2.0
8 stars 6 forks source link

Only template appears in game #131

Closed Hyrcas closed 1 year ago

Hyrcas commented 1 year ago

Minecraft version

1.19.2

LibX version

1.19.2-4.2.8

Skyblock Builder version

1.19.2-4.2.10

Forge version

43.2.11

The latest.log file

none

Issue description

whenever i go to customize only the default skyblock appears i don't know if i missed a something in the wiki.

this is the config

{
  // The template which will be used for spawn only
  // Example: 
  // {
  //     "name": "default",
  //     "desc": "",
  //     "file": "default.nbt",
  //     "spawns": "default",
  //     "direction": "south",
  //     "offset": [ 0, 0 ]
  // }
  "spawn": null,

  "spawns": {
    "default": [
      [ 6, 3, 5 ]
    ]
  },

  // The list of templates being available. The first entry is the default template.
  "templates": [
    {
      "name": "default",
      "file": "default.nbt",
      "spawns": "default",
      "direction": "south"

      "name": "One Block",
      "file": "one_block.nbt",
      "spawns": "default",
      "direction": "south"
    }
  ]
}

Steps to reproduce

No response

Other information

No response

MelanX commented 1 year ago

This would work, but it would use the default template as starting island (if the other one was not selected in customize screen). You forgot to close and open the objects using brackets. If you don’t want the default island, just remove the code Block including the default stuff in the templates array.

{
  // The template which will be used for spawn only
  // Example: 
  // {
  //     "name": "default",
  //     "desc": "",
  //     "file": "default.nbt",
  //     "spawns": "default",
  //     "direction": "south",
  //     "offset": [ 0, 0 ]
  // }
  "spawn": null,

  "spawns": {
    "default": [
      [ 6, 3, 5 ]
    ]
  },

  // The list of templates being available. The first entry is the default template.
  "templates": [
    {
      "name": "default",
      "file": "default.nbt",
      "spawns": "default",
      "direction": "south"
    },
    {
      "name": "One Block",
      "file": "one_block.nbt",
      "spawns": "default",
      "direction": "south"
    }
  ]
}
Hyrcas commented 1 year ago

This would work, but it would use the default template as starting island (if the other one was not selected in customize screen). You forgot to close and open the objects using brackets. If you don’t want the default island, just remove the code Block including the default stuff in the templates array.

{
  // The template which will be used for spawn only
  // Example: 
  // {
  //     "name": "default",
  //     "desc": "",
  //     "file": "default.nbt",
  //     "spawns": "default",
  //     "direction": "south",
  //     "offset": [ 0, 0 ]
  // }
  "spawn": null,

  "spawns": {
    "default": [
      [ 6, 3, 5 ]
    ]
  },

  // The list of templates being available. The first entry is the default template.
  "templates": [
    {
      "name": "default",
      "file": "default.nbt",
      "spawns": "default",
      "direction": "south"
    },
    {
      "name": "One Block",
      "file": "one_block.nbt",
      "spawns": "default",
      "direction": "south"
    }
  ]
}```

thanks for the reply but this doesn't fix the fact that the one block world dosn't appear in the games customize screen

MelanX commented 1 year ago

I need the log then.

Hyrcas commented 1 year ago

latest.log here it is

MelanX commented 1 year ago

Did you change anything else in the templates config? It looks like you already changed spawns for your oneblock template but didn't add it to the spawns config, where you define the spawn positions. Maybe I'm interpreting it wrong, correct me then.

Hyrcas commented 1 year ago

The code looks like this now, i tried creating a spawn only for the one block . It worked when there were many different templates but it seem to not work with only this two. (the log is from this code sorry i forgot to tell you) As you can see the game only shows the default template and not the one block one. immagine_2023-05-11_190156601

{
  // The template which will be used for spawn only
  // Example: 
  // {
  //     "name": "default",
  //     "desc": "",
  //     "file": "default.nbt",
  //     "spawns": "default",
  //     "direction": "south",
  //     "offset": [ 0, 0 ]
  // }
  "spawn": null,

  "spawns": {
    "default": [
      [ 6, 3, 5 ]
    ],
    "oneblock": [
      [ 6, 5, 5 ]
    ],
  },

  // The list of templates being available. The first entry is the default template.
  "templates": [
    {
      "name": "default",
      "file": "default.nbt",
      "spawns": "default",
      "direction": "south"
    },
        {
      "name": "Oneblock",
      "desc": "Just dirt and a tree how far can you go?",
      "file": "one_block.nbt",
      "spawns": "oneblock",
      "direction": "south"
    },
  ]
}
MelanX commented 1 year ago

Line 20 (under the "oneblock" block in "spawns"), remove the comma

Hyrcas commented 1 year ago

Thank you very much this seem to have resolved it