Jump to content

How can one display the Cure Percentage of a Ground Storage with JSON?


Recommended Posts

 

Screenshotfrom2023-06-0214-58-54.thumb.png.59f2fc11c0985a1e7b84883b20898bbc.png

 

Screenshotfrom2023-06-0215-02-51.png.439131e57f8003a593f6f377837edf8a.png

 

dryablepeatbrick.json

{
	transitionablePropsByType: {
		"*":
			[{
				type: "Cure",
				freshHours: { avg: 0 },
				transitionHours: { avg: 120 },
				transitionedStack: { type: "item", code: "driedpeat:driedpeat" },
				transitionRatio: 1
			}]
	},
  
	...
    
	code: "dryablepeatbrick",
	creativeinventory: { "general": ["*"], "items": ["*"] },
	blockmaterial: "Soil",
	shape: { base: "game:item/brick" },
	replaceable: 700,
	resistance: 2,
	textures: {
		"material": { base: "item/peat" },
		"top": { base: "item/peat" }
	},
	behaviors: [{ 
		name: "GroundStorable",
		properties: {
			layout: 'Stacking',
			placeRemoveSound: 'game:sounds/block/dirt1',
			stackingModel: 'game:shapes/block/peatpile',
			tessQuantityElements: 1,
			stackingCapacity: 32,
			transferQuantity: 1,
			bulkTransferQuantity: 4,
			collisionBox: { x1: 0, y1: 0, z1: 0, x2: 1, y2: 0.25, z2: 1 },
			cbScaleYByLayer: 0.125
		}
	}],
	maxStackSize: 32,
	groundTransform: {
		translation: { x: 0, y: 0, z: 0 },
		rotation: { x: 0, y: 0, z: 0 },
		origin: { x: 0.5, y: 0, z: 0.5 },
		scale: 3
	}
  
	...
}

 

 

Link to comment
Share on other sites

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.