SwitchCraftCC/sc-peripherals

Additional RepairCost NBT Data on anvil renamed prints causes them to not stack after you place and break them

Closed this issue · 0 comments

While renaming prints manually with an anvil to not reprint them after deciding to change the .3dj print name I noticed that they did not stack with my manually renamed ones.

The reason seems to be that after getting renamed on an anvil prints get additional NBT Data RepairCost, though if I place and break these anvil renamed prints they lose this additional NBT Data and are able to be stacked again with my new prints that have the new print name.

Ideally this additional (and probably not necessary) NBT data should not get added when renaming prints in anvils.

Example:
old green.3dj with print name green

{
    "label": "green",
    "isButton": false,
    "collideWhenOn": true,
    "collideWhenOff": true,
    "lightLevel": 0,
    "redstoneLevel": 0,
    "shapesOff": [
        { "bounds": [0,0,0,16,16,16], "texture": "sc-peripherals:block/white", "tint": "006400"}
    ],
    "shapesOn": []
}

new green.3dj with print name Green

{
    "label": "Green",
    "isButton": false,
    "collideWhenOn": true,
    "collideWhenOff": true,
    "lightLevel": 0,
    "redstoneLevel": 0,
    "shapesOff": [
        { "bounds": [0,0,0,16,16,16], "texture": "sc-peripherals:block/white", "tint": "006400"}
    ],
    "shapesOn": []
}

old green.3dj print named green:
image

old green.3dj print that I renamed in an anvil to Green:
image

old green.3dj print that I renamed in an anvil to Green placed and broke:
image

new green.3dj print named Green:
image