RFTools

RFTools

74M Downloads

Adding A Custom Dimlet

TheBillsProject opened this issue ยท 12 comments

commented

Not really a major issue but I believe making a guide on creating your own dimlet would be nice as the last guide is back in 2015 and adding a dimlet to the config looks like it has changed quite a bit.

commented

I'm not sure how one would normally create a dimlet package, so I tried constructing a JSON file similar to the one at the top of this thread. I dropped it into config/rftoolsdim and configured the mod to use it, but it threw an error when I booted up a world with it. In the error, my file looked like the previously mentioned top file, so I don't think I did anything wrong when making it. I can't remember exactly what the error message was, but it was something about it not being a JSON array. Do you think I did something wrong, or is there a different method for creating dimlets in 1.19.2?

commented

how do you make a new dimlet for version 1.16.5 and up????

commented

What kind of dimlets? If material dimlets, just look at the others and follow their example, like this for awakened draconium:

  {
    "filter": {
      "mod": "draconicevolution",
      "name": "draconic_block",
      "type": "material"
    },
    "settings": {
      "rarity": 5,
      "create": 80000,
      "maintain": 20000,
      "ticks": 1000,
      "worldgen": true,
      "dimlet": true
    }
  },

Just put that right before "Everything below this line will be regenerated from defaults every time. Remove this line if you do not want that", in dimlets.json. Where's the old documentation that you're looking at, by the way?

commented

https://github.com/McJty/RFTools/wiki/Adding-a-Dimlet This is the old wiki guide on how to create a dimlet. I wanted to add a dimlet for awakended draconium but make the power requirements very large

commented

Also thanks for posting how to make a dimlet

commented

How do i add blocks with metadata .. ? "name": "block:metadata" doesnt seems to work

commented

image

commented

I tried:
{
"filter": {
"mod": "thermalfoundation",
"name": "storage:3",
"type": "material"
},
"settings": {
"rarity": 4,
"create": 40000,
"maintain": 30000,
"ticks": 1000,
"worldgen": true,
"dimlet": true
}
}
and:
{
"filter": {
"mod": "thermalfoundation",
"name": "storage",
"type": "material",
"property": {
"type": "LEAD"
}
},
"settings": {
"rarity": 4,
"create": 40000,
"maintain": 30000,
"ticks": 1000,
"worldgen": true,
"dimlet": true
}
},

commented

Hello friend! I used this and it added all thermal blocks successfully, however if you just wanted lead i think it would be "storage.3" I just used * for a wildcard.
{
"filter": {
"mod": "thermalfoundation",
"name": "storage.*",
"type": "material"
},
"settings": {
"rarity": 5,
"create": 300000,
"maintain": 100000,
"ticks": 100,
"worldgen": false,
"dimlet": true
}
},

commented

I tried adding yellorite ore from Big Reactors, on 1.12.2 and it's not working

this is the sample code that I tried adding, and it isn't working.
{
"filter": {
"mod": "bigreactors",
"name": "bigreactors:oreyellorite",
"type": "material"
},
"settings": {
"rarity": 1,
"create": 3000,
"maintain": 1000,
"ticks": 500,
"worldgen": true,
"dimlet": true
}
},

commented

"name": "bigreactors:oreyellorite",

@Nuklearfps That's the problem. The name should just be "oreyellorite", since you already put the mod on the last line. Take another look at my example.

commented

Hello, I'm trying to create a custom dimlet for the allthemodium ore but it doesn't seem to work, I'm using the 1.16 version and I can't seem to find much documentation about it.
I created a new file under config\rftoolsdim and called it allthemodium.json and then in the config file [server directory]\world\serverconfig\rftoolsdim-server.toml, under the section [dimlets], I added the string "allthemodium.json".

To make the "allthemodium.json" file I copied the file for the mekanism one, the content is this:
[ { "type": "material", "key": "allthemodium:allthemodium_ore", "rarity": "uncommon", "create": 100, "maintain": 100, "ticks": 100, "worldgen": true, "dimlet": true } ]

I tried to change the type to "block" too. By reading the server log it seems to me that it doesn't read the file:
`[03Jun2021 20:43:03.182] [modloading-worker-1/INFO] [mcjty.lib.setup.DefaultModSetup/]: Reading dimlet package: base.json, 37 valid dimlets found

[03Jun2021 20:43:03.201] [modloading-worker-1/INFO] [mcjty.lib.setup.DefaultModSetup/]: Reading dimlet package: vanilla_blocks.json, 267 valid dimlets found

[03Jun2021 20:43:03.204] [modloading-worker-1/INFO] [mcjty.lib.setup.DefaultModSetup/]: Reading dimlet package: vanilla_fluids.json, 2 valid dimlets found

[03Jun2021 20:43:03.209] [modloading-worker-1/INFO] [mcjty.lib.setup.DefaultModSetup/]: Reading dimlet package: vanilla_biomes.json, 79 valid dimlets found

[03Jun2021 20:43:03.217] [modloading-worker-1/INFO] [mcjty.lib.setup.DefaultModSetup/]: Reading dimlet package: rftools.json, 10 valid dimlets found

[03Jun2021 20:43:03.221] [modloading-worker-1/INFO] [mcjty.lib.setup.DefaultModSetup/]: Reading dimlet package: appliedenergistics2.json, 13 valid dimlets found

[03Jun2021 20:43:03.222] [modloading-worker-1/INFO] [mcjty.lib.setup.DefaultModSetup/]: Reading dimlet package: biggerreactors.json, 7 valid dimlets found

[03Jun2021 20:43:03.224] [modloading-worker-1/INFO] [mcjty.lib.setup.DefaultModSetup/]: Reading dimlet package: bigreactors.json, 0 valid dimlets found

[03Jun2021 20:43:03.229] [modloading-worker-1/INFO] [mcjty.lib.setup.DefaultModSetup/]: Reading dimlet package: botania.json, 121 valid dimlets found

[03Jun2021 20:43:03.239] [modloading-worker-1/INFO] [mcjty.lib.setup.DefaultModSetup/]: Reading dimlet package: immersiveengineering.json, 23 valid dimlets found

[03Jun2021 20:43:03.249] [modloading-worker-1/INFO] [mcjty.lib.setup.DefaultModSetup/]: Reading dimlet package: mekanism.json, 179 valid dimlets found

[03Jun2021 20:43:03.251] [modloading-worker-1/INFO] [mcjty.lib.setup.DefaultModSetup/]: Reading dimlet package: powah.json, 10 valid dimlets found

[03Jun2021 20:43:03.259] [modloading-worker-1/INFO] [mcjty.lib.setup.DefaultModSetup/]: Reading dimlet package: quark.json, 266 valid dimlets found

[03Jun2021 20:43:03.271] [modloading-worker-1/INFO] [mcjty.lib.setup.DefaultModSetup/]: Reading dimlet package: tconstruct.json, 73 valid dimlets found

[03Jun2021 20:43:03.282] [modloading-worker-1/INFO] [mcjty.lib.setup.DefaultModSetup/]: Reading dimlet package: thermal.json, 114 valid dimlets found

[03Jun2021 20:43:03.285] [modloading-worker-1/INFO] [mcjty.lib.setup.DefaultModSetup/]: Reading dimlet package: biomesoplenty.json, 156 valid dimlets found`

but no reading dimlet package: allthemodium.json.

I am sure I am doing something wrong but I can't seem to find an answer to what it is.
Thanks.