Skip to content

NBT in the heads #422

@Neon4301

Description

@Neon4301

What happened?

I transfer all nbt from the crafting string to the original crafting item, but the skin of the head is not transferred, I do not understand what is wrong with my script. I tried different options

Image Image Image

How can the bug be reproduced?

"@type" : "customcrafting:crafting_shaped",
group : "",
hidden : false,
vanillaBook : true,
priority : NORMAL,
checkNBT : false,
conditions {
  values : [ ]
},
symmetry {
  horizontal : false,
  vertical : false,
  rotate : false
},
keepShapeAsIs : false,
shape : [ "A C", " E ", "G I" ],
ingredients {
  C {
    items : [ {
      amount : 1,
      weight : 1.0,
      identifier {
        key : "wolfyutilities:bukkit",
        stack {
          "==" : "org.bukkit.inventory.ItemStack",
          DataVersion : 4325,
          id : "minecraft:diamond",
          count : 1,
          "schema_version" : 1
        }
      }
    } ],
    tags : [ ],
    replaceWithRemains : true,
    allowEmpty : false
  },
  E {
    items : [ {
      amount : 1,
      weight : 1.0,
      identifier {
        key : "wolfyutilities:bukkit",
        stack {
          "==" : "org.bukkit.inventory.ItemStack",
          DataVersion : 4325,
          id : "minecraft:player_head",
          count : 1,
          components {
          },
          "schema_version" : 1
        }
      }
    } ],
    tags : [ ],
    replaceWithRemains : true,
    allowEmpty : false
  },
  G {
    items : [ {
      amount : 1,
      weight : 1.0,
      identifier {
        key : "wolfyutilities:bukkit",
        stack {
          "==" : "org.bukkit.inventory.ItemStack",
          DataVersion : 4325,
          id : "minecraft:diamond",
          count : 1,
          "schema_version" : 1
        }
      }
    } ],
    tags : [ ],
    replaceWithRemains : true,
    allowEmpty : false
  },
  I {
    items : [ {
      amount : 1,
      weight : 1.0,
      identifier {
        key : "wolfyutilities:bukkit",
        stack {
          "==" : "org.bukkit.inventory.ItemStack",
          DataVersion : 4325,
          id : "minecraft:diamond",
          count : 1,
          "schema_version" : 1
        }
      }
    } ],
    tags : [ ],
    replaceWithRemains : true,
    allowEmpty : false
  },
  A {
    items : [ {
      amount : 1,
      weight : 1.0,
      identifier {
        key : "wolfyutilities:bukkit",
        stack {
          "==" : "org.bukkit.inventory.ItemStack",
          DataVersion : 4325,
          id : "minecraft:diamond",
          count : 1,
          "schema_version" : 1
        }
      }
    } ],
    tags : [ ],
    replaceWithRemains : true,
    allowEmpty : false
  }
},
settings { },
result {
  items : [ {
    amount : 2,
    weight : 1.0,
    identifier {
      key : "wolfyutilities:bukkit",
      stack {
        "==" : "org.bukkit.inventory.ItemStack",
        DataVersion : 4325,
        id : "minecraft:player_head",
        count : 1,
        "schema_version" : 1
      }
    }
  } ],
  tags : [ ],
  extensions : [ ],
  target : {
      mergeOptions : [ 
          {
              slots : [ 4 ], //The slots to target
              adapters : [ 
                {
                  key: "customcrafting:nbt/merge"
                  query {
                    includeAll: true
                  }
                }
              ]
          }
      ]
  }
}

Expected Behaviour?

Crafting must transfer the skin of the head and the heads can be any

Plugin version

CustomCrafting 4.19.0

Server software

This server is running Purpur version 1.21.5-2450-HEAD@61d7f55 (2025-06-17T05:07:48Z) (Implementing API version 1.21.5-R0.1-SNAPSHOT)

Relevant log output

Submit issue

  • read the Wiki and especially the FaQ, and made sure there is no fix to your issue,
  • searched for and ensured there isn't already an open issue regarding this,
  • are running the latest version of your server software (Spigot, Paper, etc.), and plugins (WolfyUtilities, CustomCrafting).

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions