Jump to content

Recommended Posts

Posted

So I modified coke.json to add the ability to draw cave art, but the UI option isn't appearing in-game. It just shows the controls for placing the coal on the ground twice instead. Code change posted below, any advice?

 

{
	code: "coke",
	shape: { base: "item/ore/ungraded/coke" },
	creativeinventory: { "general": ["*"], "items": ["*"] },
	class: "ItemCoal",
	maxstacksize: 64,
	attributes: {
		displayInsideCrate: true,
		placeSound: "block/charcoal",
		pigment: {
			name: "Coke black",
			color: { red: 38, green: 37, blue: 34 },
		},
		displaycaseable: true,
		shelvable: true
	},
    behaviors: [{
	name: "ArtPigment",
	properties: {
		decorBlockCodes: ["caveart-charcoal-1-*"],
		paintableOnBlockMaterials: ["Stone", "Wood", "Brick", "Ceramic", "Metal", "Meta" ],
		consumeChance: 0.066
		}
	}],
	materialDensity: 300,
	combustibleProps: {
		burnTemperature: 1340,
		burnDuration: 40,
	},
	fpHandTransform: {
		translation: { x: 0, y: 0, z: 0 },
		rotation: { x: 1, y: 90, z: 0 },
		scale: 1.67
	},
	guiTransform: {
		translation: { x: 0, y: 0, z: 0 },
		rotation: { x: 150, y: -38, z: 0 },
		origin: { x: 0.5, y: 0.1, z: 0.5 },
		scale: 3.8
	},
	tpHandTransform: {
		translation: { x: -0.93, y: -0.19, z: -0.77 },
		rotation: { x: -48, y: -180, z: 23 },
		origin: { x: 0.5, y: 0.12, z: 0.5 },
		scale: 0.6
	},
	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: 4.5
	}
}

 

×
×
  • 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.