PluginBugs / Issues-ItemsAdder

Repository used to keep track of issues of my plugin ItemsAdder
https://itemsadder.devs.beer
55 stars 21 forks source link

Error in the console when using items with components in nbt #4173

Open Slarof opened 2 hours ago

Slarof commented 2 hours ago

Terms

Discord Username (optional)

vova_erofeev

What happened?

When using items with components in nbt, an error pops up in the console

If anything, the item with the components is worked on the server

Steps to reproduce the issue

  1. Opening the configuration of the item
  2. Adding the nbt line with the components and save
  3. Start the server and see an error related to nbt, although the element is functioning

Server version

Current Purpur Version: 1.21.3-2342-959c29d (MC: 1.21.3)*

ItemsAdder Version

ItemsAdder version 4.0.4 Customized Minecraft without client mods! Website: devs.beer Author: LoneDev

ProtocolLib Version

ProtocolLib version 5.4.0-SNAPSHOT-736 Provides read/write access to the Minecraft protocol. Authors: dmulloy2 and comphenix

LoneLibs Version

LoneLibs version 1.0.61 Collection of libs used by my plugins Authors: LoneDev and others

Full Server Log

https://mclo.gs/WeLMekf

Error (optional)

[14:36:47 ERROR]: [ItemsAdder] [Items] 'test:something'. Error injecting 'nbt' property. File: /contents/test/configs/something.yml
[14:36:47 ERROR]: [ItemsAdder] Error: com.mojang.brigadier.exceptions.CommandSyntaxException: Unknown item 'minecraft:' at position 0: <--[HERE]

Problematic items yml configuration file (optional)

info:
  namespace: test

items:
  something:
    display_name: TEXT
    nbt: "{components:{\"minecraft:item_name\":'\"TEXT\"',\"minecraft:max_stack_size\":99,\"minecraft:rarity\":\"epic\"}}"
    permission: nothing
    resource:
      material: PAPER
      generate: true
      textures:
        - minecraft:items/wheat

Other files, you can drag and drop them here to upload. (optional)

No response

Screenshots/Videos (you can drag and drop files or paste links)

No response

PSYCHEER commented 2 hours ago

Verified by me