Customise Lost Cities loot tables

Started by Ypermat on

Topic category: User side tutorials

Joined Aug 2018
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Customise Lost Cities loot tables
Mon, 05/30/2022 - 12:20 (edited)

Once you launched the game with The Lost Cities installed, you should see a config file appear.

Here, you want to create a pre-initialised* config file to overwrite the others. You should name it "userassets.json".

*the common.toml loads assets in a pre-defined order. The userassets.json is loaded in last, so it will for sure overwrite all the other assets loaded before. If you want to create multiple json, add it in the common.toml, in the "assets" tab.

Then, you can put your loot tables in the "userassets.json".

Namespace 

My mod namespace in the Workspace settings

[
   {
      "type": "condition",
      "name": "chestloot",
      "values": [
        {
          "factor": 8,
          "value": "lostcities:chests/lostcitychest",
          "range": "4,100"
        },
        {
          "factor": 8,
          "value": "lostcities:chests/lostcitychest",
          "range": "-100,-3"
        },
        {
          "factor": 20,
          "value": "lostcities:chests/raildungeonchest",
          "inpart": "rail_dungeon1"
        },
        {
          "factor": 20,
          "value": "lostcities:chests/raildungeonchest",
          "inpart": "rail_dungeon2"
        },
        {
          "factor": 1,
          "value": "minecraft:chests/buried_treasure"
        }
    }
]

Example

Link to my research

Edited by Ypermat on Mon, 05/30/2022 - 12:20