Skip to content

Data section deleted on restart/reload #3

@Stampede2011

Description

@Stampede2011

I have added a Byte Item that is linked to an item from the CommandItems plugin into the config via "/bi save testitem". If I give the item to myself the item via "bi give testitem", it will work as a CommandItems because it has the "Data" section in the config (first config paste below). Once the server is restarted or reloaded, the entire "Data" section is removed from the config (second config paste below) and the item no longer works with CommandItems.

Config pre-restart/reload
items {
    testitem {
        ContentVersion=2
        Count=1
        Data=[
            {
                ContentVersion=2
                ManipulatorData {
                    ContentVersion=2
                    commanditem=default
                }
                ManipulatorId="commanditems:commanditem_data"
            }
        ]
        ItemType="minecraft:stone"
        UnsafeDamage=0
        UnsafeData {
            display {
                Lore=[
                    "§aThis is a magic item! Right click",
                    "§awith it to see what happens!"
                ]
                Name="§eSpetacular Stone"
            }
        }
    }
}
  
Config post-restart/reload
items {
    testitem {
        ContentVersion=2
        Count=1
        ItemType="minecraft:stone"
        UnsafeDamage=0
        UnsafeData {
            display {
                Lore=[
                    "§aThis is a magic item! Right click",
                    "§awith it to see what happens!"
                ]
                Name="§eSpetacular Stone"
            }
        }
    }
}
  

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions