Skip to content

Custom Item NBT data not correctly reproduced #360

@Veyjinn

Description

@Veyjinn

What happened?

When creating an custom item with the help of Itemsadder or the Give Command Item Generator (https://www.gamergeeks.net/apps/minecraft/give-command-generator/armor) the custom item is not being detected in the custom crafting recipe after reloading the plugin.

I've been trying to identify the issue for weeks now but with little to no success. The one thing I noticed is that sometimes when adding various types of nbt the recipe breaks. For example I've been trying to add knockback resistance. After modifying the recipe and reloading the plugin the recipe stops working.

I would really appreciate Your assistance in this matter.

How can the bug be reproduced?

An example command that has been used on a command block to create the custom item:

give @a iron_helmet{Trim:{pattern:host,material:iron},display:{Name:'["",{"text":"Iron Greathelm","italic":false,"color":"#6633ff"}]',Lore:['["",{"text":"It\'s a solid and","italic":false,"color":"gray"}]','["",{"text":"heavy piece of armor","italic":false,"color":"gray"}]','["",{"text":"(Upgrade 1/2)","italic":false,"color":"gray"}]','[""]','["",{"text":"〔","italic":false,"bold":true,"color":"#6633ff"},{"text":"TIER III","italic":false,"color":"#6633ff"},{"text":"〕","italic":false,"bold":true,"color":"#6633ff"}]']},Enchantments:[{lvl:2,id:protection}],Unbreakable:1,RepairCost:999999,AttributeModifiers:[{AttributeName:"generic.armor",Amount:1.3,Slot:head,Name:"generic.armor",UUID:[I;-12435,12450,92014,-24900]},{AttributeName:"generic.knockback_resistance",Amount:0.03,Slot:head,Name:"generic.knockback_resistance",UUID:[I;-12435,12750,92014,-25500]},{AttributeName:"generic.max_health",Amount:2,Slot:head,Name:"generic.max_health",UUID:[I;-12435,13050,92014,-26100]},{AttributeName:"generic.armor_toughness",Amount:1,Slot:head,Name:"generic.armor_toughness",UUID:[I;-12435,13350,92014,-26700]}],HideFlags:132}

Just try to create the armor and add it the customcrafting recipe

Expected Behaviour?

Custom armor should naturally be a part of Custom Crafting. The expected result is that custom armor should be recognized by the plugin.

Plugin version

customcrafting-spigot-4.16.9.1 & wolfyutils-spigot-4.16.15.1

Server software

paper-1.20.4-466 (newest 05.04.2024)

Relevant log output

No errors show on console

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