ParallaxError Posted January 31, 2025 Report Posted January 31, 2025 (edited) Trying to rewrite some code so that i can easily create new backpacks using the variant system however all show up with no slots? Maybe I'm missing something? { "code": "metalbackpack", "variantGroups": [ { "code": "metal", "states": ["copper", "gold", "silver", "tinbronze", "bismuthbronze", "blackbronze", "iron", "meteoriciron", "steel"]} ], "maxstacksize": 1, "attributes": { "wearableAttachment": true, "attachableToEntity": { "categoryCode": "backpack", "attachedShape": { "base": "item/backpackbronzeback" } }, "groundStorageTransform": { "translation": { "x": -0.18, "y": 0.0, "z": 1.165 }, "rotation": { "x": 0, "y": 90, "z": 0 }, "origin": { "x": 0.0, "y": 0.0, "z": 0.0 }, "scale": 1.34 }, "backpack": { "quantitySlotsByType": { "*": { "*-copper": 6, "*-gold": 6, "*-silver": 6, "*-tinbronze": 8, "*-bismuthbronze": 8, "*-blackbronze": 8, "*-iron": 10, "*-meteoriciron": 10, "*-steel": 12 } } } }, "behaviors": [ { "name": "GroundStorable", "properties": { "layout": "SingleCenter", "collisionBox": { "x1": 0.25, "y1": 0, "z1": 0.25, "x2": 0.75, "y2": 0.375, "z2": 0.75 } } }, { "name": "HeldBag" } ], "shape": { "base": "item/backpackbronze" }, "texturesByType": { "*": { "metal": {"base": "game:block/metal/ingot/{metal}" } } }, "storageFlags": 2, "creativeinventory": { "general": ["*"], "items": ["*"] }, "guiTransform": { "translation": { "x": 0, "y": 0, "z": 0 }, "rotation": { "x": -20, "y": 21, "z": 180 }, "origin": { "x": 0.53, "y": 0.35, "z": 0.5 }, "scale": 2.3, "rotate": true }, "heldRightTpIdleAnimation": "holdinglanternrighthand", "heldLeftTpIdleAnimation": "holdinglanternlefthand", "fpHandTransform": { "translation": { "x": 0, "y": 0, "z": 0.2 }, "rotation": { "x": 20, "y": -73, "z": 10 }, "scale": 2.5 }, "tpHandTransform": { "translation": { "x": -0.66, "y": -0.5, "z": -0.45 }, "rotation": { "x": -89, "y": 67, "z": -91 }, "scale": 0.86 }, "groundTransform": { "translation": { "x": 0, "y": 0, "z": 0 }, "rotation": { "x": 180, "y": 33, "z": -180 }, "origin": { "x": 0.5, "y": 0, "z": 0.5 }, "scale": 4.5 } } Edited January 31, 2025 by J05HY06
ParallaxError Posted January 31, 2025 Author Report Posted January 31, 2025 fixed, must be backpack by type not quantity by type
Recommended Posts