Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
MythicMobs MythicMobs
  • Project overview
    • Project overview
    • Details
    • Activity
  • Issues 145
    • Issues 145
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
  • Operations
    • Operations
    • Incidents
  • Analytics
    • Analytics
    • Repository
    • Value Stream
  • Wiki
    • Wiki
  • Members
    • Members
  • Activity
  • Create a new issue
  • Issue Boards
Collapse sidebar
  • MythicCraft
  • MythicMobsMythicMobs
  • Issues
  • #1682

Closed
Open
Created Jul 29, 2024 by snakehugo@snakehugo

Issue with lists in items NBTs

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.

It happens in several versions, I tried Catserver 1.16.5 with the 5.2.0 and last version of paper 1.21 and dev build 5152

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"}]}

Question

There are 2 possible explainations, either I wrote the syntax wrong and then the documentation could be improved with the correct syntax to use when coming to [ ] or there is an issue with lists management when coming to NBTs in items

Edited Jul 29, 2024 by snakehugo
Assignee
Assign to
None
Milestone
None
Assign milestone
Time tracking