LordDeatHunter / FabricaeExNihilo

Fabricate from nothing
MIT License
11 stars 9 forks source link

Datapack support #73

Closed rekky1aws closed 23 hours ago

rekky1aws commented 23 hours ago

Hello.

Does the mod support the use of datapacks to add no recipes ? And if so, is there any documentation ?

Context : Basic Create kinda gets boring to me and I wanted to try something new so I search a Skyblock modpack focused on Create. To my surprise, the few that exist do not run on my computer or are very uncomplete. That's how I started to think about making my own modpack and I started it with Fabric since I'm more experienced than with Forge. I got everything I needed for the first phase, but now I need Zinc and I'm kinda stuck since nothing can give me Zinc. Since I already have a datapack to obtain Dust and Silt from crushing wheel (I made it myself for a previous modpack that wasn't a skyblock), I decide to upgrade it.

I copied the arborescence from the mod .jar and made a version for zinc : create_enf/data/create_enf/recipes/sieve/ore/zinc_from_gravel.json and basically copied copper_from_gravel.json, replacing fabricaeexnihilo:raw_copper_piece with create:zinc_nugget (I will adjust drop rates later)

The create_enf/data/create_enf/recipes/sieve/ore/zinc_from_gravel.json file contains :

{
  "type": "fabricaeexnihilo:sieve",
  "input": {
    "item": "minecraft:gravel"
  },
  "result": {
    "count": 1,
    "item": "create:zinc_nugget"
  },
  "rolls": {
    "fabricaeexnihilo:diamond_mesh": [
      0.25
    ],
    "fabricaeexnihilo:flint_mesh": [
      0.1
    ],
    "fabricaeexnihilo:iron_mesh": [
      0.15
    ],
    "fabricaeexnihilo:netherite_mesh": [
      0.32
    ]
  },
  "waterlogged": false
}

The previous part of the datapack works fine but I can't get to make it work toe sieve gravel to zinc nuggets.

Am I making something wrong ? Or is there no compatibility with datapacks tet ?

And if so, I can help and make some documentation about it !

rekky1aws commented 23 hours ago

Okay, I'm so dumb, the datapack wasn't in correct folder (global datapacks instead of save datapack)

So sorry for all this.