Bug Closed · Resolved

NBT Lists don't work

#6372 opened by Unknown 1 year ago

Unknownreported this bug

Summary

https://git.mythiccraft.io/mythiccraft/MythicMobs/-/wikis/Items/Items Following this documentation on how to create items with NBTs in mythicmob, lists of items are not working properly.

Same issue that was closed: mythiccraft/MythicMobs#1682

Steps to reproduce

Add an mythicmob item like this:

testItem:
  Id: stick
  Display: '&6Test'
  Lore:
  - '&6Test'
  NBT:
    list:
    - integer: int/427
    - value: string

/mm reload /mm items get testItem /data get entity @e[distance=..5,limit=1,type=item,sort=nearest]

You should get:

Current behavior

When performing /data get entity @e[distance=..5,limit=1,type=item,sort=nearest] We get tag: {list: [ ]}

Intended correct behavior

Instead of tag: {list: [{integer: 427, value: "string"}]}

Proposed fixes

I don't know the exact source or fix. Best guess, there is an error in the code that makes any list blank.

Unknowncommented

I copy pasted the same issue from the last report. I am having the same issue. Here is a screenshot: [Legacy attachment omitted]

Here is my item config file:

  NBT:
    PublicBukkitValues:
      auraskills:armor_multipliers:
        auraskills:auraskills/farming: double/20.0
      auraskills:armor_modifiers:
      - auraskills:auraskills/speed:
          auraskills:operation: add
          auraskills:value: double/10.0
Unknowncommented

As stated in the closed issue, a modern-version complete server log is expected to begin debug assessment. Please include a server log replicating this behavior, or the issue will be closed.

Unknowncommented

Let me work on getting that

Unknowncommented

FYI: here is my complete Item Config:

PotatoCrown:
  Id: gold_helmet
  Display: '§l§6Potato Crown'
  Lore:
  - '§l§6Legendary'
  - '&7Long live the king!'
  - '§7When worn: &b+10% Farming XP'
  Enchantments: 
  - PROTECTION_ENVIRONMENTAL:4
  - PROTECTION_PROJECTILE:4
  - PROTECTION_FIRE:4
  - PROTECTION_EXPLOSIONS:4
  - THORNS:5
  - OXYGEN:3
  - WATER_WORKER:1
  Options:
    Unbreakable: True
  NBT:
    PublicBukkitValues:
      auraskills:armor_multipliers:
        auraskills:auraskills/farming: double/20.0
      auraskills:armor_modifiers:
      - auraskills:auraskills/speed:
          auraskills:operation: add
          auraskills:value: double/10.0
  Attributes: 
    Head:
      Armor: 10
      ArmorToughness: 4
      KnockbackResistance: .1
  ItemUpdater:
    Version: 1
  Recipes:
    SHAPED:
      Type: SHAPED
      Amount: 1
      Ingredients:
      - S2EnPotato | S2EnPotato | S2EnPotato
      - S2EnPotato | EnEmerald | S2EnPotato
      - air | air | air

Not sure if you need this.

Unknowncommented

Any updates? Do you have what you need?

Sign in to join the discussion.