#Get Enchants and Damage from Input Item of Recipe and apply them to Output

5 messages · Page 1 of 1 (latest)

dapper jay
#

How can I get the NBT from Input Item of Recipe and apply them to output?

I'm using Create for the recipe.

Small snipet of current code (literally does nothing to NBT atm)

[
    {
      input_item: "easypaxellite:diamond_paxel",
      output_item: "easypaxellite:netherite_paxel",
      upgrade_item: "minecraft:diamond",
      upgrade_cost: 7,
    },
    {
      input_item: "easypaxellite:netherite_paxel",
      output_item: "easypaxellite:tempered_netherite_paxel",
      upgrade_item: "minecraft:netherite_ingot",
      upgrade_cost: 3,
    },
  ].forEach((recipe) => {
    event.recipes
      .createSequencedAssembly([recipe.output_item], recipe.input_item, [
        event.recipes.createDeploying(recipe.input_item, [
          recipe.input_item,
          recipe.upgrade_item,
        ]),
      ])
      .transitionalItem(recipe.input_item)
      .loops(recipe.upgrade_cost);
  });
sour boughBOT
#

Once your ticket has been resolved, please close it with </ticket close:1054771505520717835> command!

bold wolf
#

likely not possible for the sequenced assembly recipe type

dapper jay
bold wolf
#

there is not if the original recipe type json doesn't support it, which doesn't seem to be the case here, as create didn't make a recipe with this behaviour. To make sure you can check create sequenced assembly recipe source code.
Though what you could do is make an upgrade item and combine it with input in crafting table or smithing table