ExtendedCrafting icon indicating copy to clipboard operation
ExtendedCrafting copied to clipboard

[Suggestion] KubeJS support

Open sciguyryan opened this issue 4 years ago • 8 comments

IMPORTANT: Feature requests will only be added to the latest supported Minecraft version.

I would like to request a native way of interacting with Extended Crafting via KubeJS, similar to what is supported by CraftTweaker.

I am currently building a modpack which uses KubeJS to customize recipes and so on. It would be fantastic to be able to do this natively, without having to add CT to the pack just to facilitate this.

Thank you in advance for considering this request!

sciguyryan avatar Mar 21 '21 12:03 sciguyryan

You can do stuff like this fine:

    recipe.custom({
        "type": "botania:runic_altar",
        "output": {
          "item": "botania:mana_tablet",
          "nbt": {
              "mana":500000,
              "creative":1
        }},
        "mana": 1000000,
        "ingredients": [
          {
            "item": "botania:creative_pool"
          },
          {
            "item": "botania:creative_pool"
          },
          {
            "item": "botania:creative_pool"
          }
        ]
      })

Literally just event.custom() and you put the entire recipe inside, using json datapack format

aaronhowser1 avatar Jun 22 '21 07:06 aaronhowser1

@aaronhowser1's suggestion works well for most things.. Except for singularities. Because of their dynamic nature, KubeJS can't override them. You could delete all singularities and make custom items for each one and make another recipe for the ultimate singularity, but it's a pain. Having official integration would be fantastic.

Riku5543 avatar Sep 29 '21 09:09 Riku5543

@Develon5543 you can edit each singularity ingredient/remove them from the ultimate singularity recipe in each singularity json, see https://blakesmods.com/docs/extendedcrafting/singularities

BlakeBr0 avatar Oct 01 '21 06:10 BlakeBr0

Yeah, it's pretty good. However it's missing the energy cost and you're unable to change the catalyst, compared to being able to make arbitrary compressor recipes with said features.

Riku5543 avatar Oct 01 '21 10:10 Riku5543

onEvent("recipes", (e) => { e.custom({ type: "extendedcrafting:compressor", powerCost: 500000, inputCount: 2500, ingredient: { item: "infinity_nexus_mod:infinity_ingot", }, catalyst: { item: "extendedcrafting:the_ultimate_catalyst", }, result: { item: "infinity_nexus_mod:infinity_singularity", } }); you can use this as exemple, because it works, at least on minecraft 1.18.2

mGodinho87 avatar Oct 01 '23 01:10 mGodinho87

Would that work with 1.19.2 and up?

Eletoast avatar Oct 03 '23 18:10 Eletoast

probably yes

mGodinho87 avatar Oct 04 '23 08:10 mGodinho87