ZergMazter Posted September 30 Report Share Posted September 30 Im currently working on a mod about "light" progression, giving candles more survival utility and delaying unlimited light sources such as lamps. I'm having an issue with my candle blocks. I made an unlit-candle as part of an immersive candle progression and I need this block to place on right+click and also do groundStorage with shift+click. The problem is that when trying to use the groundStorage ability the placeBlock interaction takes precedence and ignores the groundStorage ability. The only way to trigger the groundStorage so far is for me to step on the tile to block the placeBlock interaction. This is a mock up code I made while trying to understand how to make it work: { code: "candle-unlit", creativeinventory: { "general": ["*"], "items": ["*"] }, blockmaterial: "Ceramic", drawtype: "json", shape: { base: "block/candles/candle" }, texture: { base: "block/candle-unlit" }, lightAbsorption: 0, sidesolid: { all: "false" }, sideopaque: { all: "false" }, resistance: 1.25, sounds: { "place": "block/planks", "break": "block/planks", "hit": "block/planks" }, transitionableProps: [{ type: "Cure", freshHours: { avg: 0 }, transitionHours: { avg: 1 }, transitionedStack: { type: "block", code: "game:candle" }, transitionRatio: 1 }], behaviors: [{ name: "GroundStorable", properties: { layout: 'Quadrants', collisionBox: { x1: 0, y1: 0, z1: 0, x2: 1, y2: 0.125, z2: 1 }, scale: 0.3 } }], attributes: { displaycaseable: true, shelvable: true, onDisplayTransform: { origin: { x: 0.5, y: 0, z: 0.5 }, scale: 0.75 }, groundStorageTransform: { rotation: { x: 0, y: 0, z: 0 } } }, lightHsv: [7, 7, 7], maxstacksize: 32, materialDensity: 200, combustibleProps: { burnTemperature: 700, burnDuration: 8, }, guiTransform: { translation: { x: 1, y: 4, z: 0 }, rotation: { x: 0, y: 36, z: -29 }, origin: { x: 0.5, y: 0.11, z: 0.5 }, scale: 4 }, fpHandTransform: { translation: { x: 0, y: 0.16, z: 0 }, rotation: { x: 1, y: 88, z: -5 }, origin: { x: 0.5, y: 0.1, z: 0.5 }, scale: 2.63 }, tpHandTransform: { translation: { x: -1.25, y: -0.7, z: -0.8 }, rotation: { x: 0, y: -12, z: -83 }, scale: 0.66 }, groundTransform: { translation: { x: 0, y: 0, z: 0 }, rotation: { x: 3, y: 1, z: 0 }, origin: { x: 0.5, y: 0, z: 0.5 }, scale: 4 }, collisionSelectionBox: { x1: 0.42, y1: 0, z1: 0.42, x2: 0.58, y2: 0.32, z2: 0.58 } } If I add this line of code to my block behaviors it loses it's placeBlock ability essentially turning it into an item: behaviors: [ { name: "GroundStorable", properties: { layout: 'Quadrants', collisionBox: { x1: 0, y1: 0, z1: 0, x2: 1, y2: 0.125, z2: 1 }, scale: 0.3 } }, { name: "Unplaceable" } //THIS LINE RIGHT HERE!!!!!!!!!!! ], I need a block that I can both placeBlock and GroundStorage without any shenanigans such as blocking the tile to prevent placeBlock. I'd appreciate any help. Link to comment Share on other sites More sharing options...
Recommended Posts