Marwinkas / Mystical-Nature

Mystical Crops is a mod allow growing your resources with crops. Use crops to grow essences used to make materials!
4 stars 2 forks source link

Echo Seeds uncraftable #29

Open TorchTheDragon opened 1 year ago

TorchTheDragon commented 1 year ago

The echo seeds just don't have a crafting recipe for me

Mod version: 1.8.5 for 1.19.2

TorchTheDragon commented 1 year ago

Screenshot 2023-04-04 141035

I forgot to add the image lol

TorchTheDragon commented 1 year ago

As a temp fix, I used KubeJS to create a recipe. If anyone else has this issue, here is the server script I made for it, and I even made a easy function in it to add more recipes if they are missing.

You do still need to make a .js file in KubeJS's server_script folder, but below is the code:

ServerEvents.recipes(event => {
    let mysticalSeedsRecipe = (output, ing1, ing2, ing3, ing4, seeds, ing5, ing6, ing7, ing8) => {
        event.custom({
            type: "mysticalcrops:transform",
            ingredients: [
                {"ingredient": {"tag": "c:crystals"}},
                {"ingredient": {"item": ing1}},
                {"ingredient": {"item": ing2}},
                {"ingredient": {"item": ing3}},
                {"ingredient": {"item": ing4}},
                {"ingredient": {"item": seeds}},
                {"ingredient": {"item": ing5}},
                {"ingredient": {"item": ing6}},
                {"ingredient": {"item": ing7}},
                {"ingredient": {"item": ing8}}
            ],
            output: {"count": 1, "item": output}
        })
    }

    // Echo Seeds
    event.remove({output:'mysticalcrops:echo_seeds'})
    mysticalSeedsRecipe('mysticalcrops:echo_seeds',
        'minecraft:echo_shard',
        'mysticalcrops:excellent_essence',
        'minecraft:echo_shard',
        'mysticalcrops:excellent_essence',
        'mysticalcrops:excellent_craft_seeds',
        'mysticalcrops:excellent_essence',
        'minecraft:echo_shard',
        'mysticalcrops:excellent_essence',
        'minecraft:echo_shard'
    )
    /*
    event.custom({
        type: "mysticalcrops:transform",
        ingredients: [
            {"ingredient": {"tag": "c:crystals"}},
            {"ingredient": {"item": 'minecraft:echo_shard'}},
            {"ingredient": {"item": 'mysticalcrops:excellent_essence'}},
            {"ingredient": {"item": 'minecraft:echo_shard'}},
            {"ingredient": {"item": 'mysticalcrops:excellent_essence'}},
            {"ingredient": {"item": 'mysticalcrops:excellent_craft_seeds'}},
            {"ingredient": {"item": 'mysticalcrops:excellent_essence'}},
            {"ingredient": {"item": 'minecraft:echo_shard'}},
            {"ingredient": {"item": 'mysticalcrops:excellent_essence'}},
            {"ingredient": {"item": 'minecraft:echo_shard'}}
        ],
        output: {"count": 1, "item": "mysticalcrops:echo_seeds"}
    })
    */
})

The area that is commented out is just to show what the above function is doing.

Marwinkas commented 1 year ago

As a temp fix, I used KubeJS to create a recipe. If anyone else has this issue, here is the server script I made for it, and I even made a easy function in it to add more recipes if they are missing.

You do still need to make a .js file in KubeJS's server_script folder, but below is the code:

ServerEvents.recipes(event => {
  let mysticalSeedsRecipe = (output, ing1, ing2, ing3, ing4, seeds, ing5, ing6, ing7, ing8) => {
      event.custom({
          type: "mysticalcrops:transform",
          ingredients: [
              {"ingredient": {"tag": "c:crystals"}},
              {"ingredient": {"item": ing1}},
              {"ingredient": {"item": ing2}},
              {"ingredient": {"item": ing3}},
              {"ingredient": {"item": ing4}},
              {"ingredient": {"item": seeds}},
              {"ingredient": {"item": ing5}},
              {"ingredient": {"item": ing6}},
              {"ingredient": {"item": ing7}},
              {"ingredient": {"item": ing8}}
          ],
          output: {"count": 1, "item": output}
      })
  }

  // Echo Seeds
  event.remove({output:'mysticalcrops:echo_seeds'})
  mysticalSeedsRecipe('mysticalcrops:echo_seeds',
      'minecraft:echo_shard',
      'mysticalcrops:excellent_essence',
      'minecraft:echo_shard',
      'mysticalcrops:excellent_essence',
      'mysticalcrops:excellent_craft_seeds',
      'mysticalcrops:excellent_essence',
      'minecraft:echo_shard',
      'mysticalcrops:excellent_essence',
      'minecraft:echo_shard'
  )
  /*
  event.custom({
      type: "mysticalcrops:transform",
      ingredients: [
          {"ingredient": {"tag": "c:crystals"}},
          {"ingredient": {"item": 'minecraft:echo_shard'}},
          {"ingredient": {"item": 'mysticalcrops:excellent_essence'}},
          {"ingredient": {"item": 'minecraft:echo_shard'}},
          {"ingredient": {"item": 'mysticalcrops:excellent_essence'}},
          {"ingredient": {"item": 'mysticalcrops:excellent_craft_seeds'}},
          {"ingredient": {"item": 'mysticalcrops:excellent_essence'}},
          {"ingredient": {"item": 'minecraft:echo_shard'}},
          {"ingredient": {"item": 'mysticalcrops:excellent_essence'}},
          {"ingredient": {"item": 'minecraft:echo_shard'}}
      ],
      output: {"count": 1, "item": "mysticalcrops:echo_seeds"}
  })
  */
})

The area that is commented out is just to show what the above function is doing.

Thanks for temp fix. I don't know when i update mod, because i change gameplay ritual table and add new block. Recipe don't work because i changed name ritual table, in echo seed i forgot change name