Jump to content

Recommended Posts

Posted (edited)

I'd like to make some new quern recipes but I cant find where add recipes for the tool? Likely a newb question but where or what file do I edit? Need it to make cornstarch. Thanks in advance  

Edited by Micah Holmes
  • Solution
Posted (edited)

update:

I think I need to add this to the item/items correct?

grindingPropsByType: {
		"*-sylvite": {
			groundStack: { type: "item", code: "powder-sylvite", stacksize: 2 }
		},
		"*-borax": {
			groundStack: { type: "item", code: "powder-borax", stacksize: 2 }
		},
		"*-sulfur": {
			groundStack: { type: "item", code: "powder-sulfur", stacksize: 2 }
		}
	},

Update:

Ok I figured it out bu in case anyone else needs the info. Two step process:

1. you need the base ingredient/item

2. You need to create the "powder" version 

In your Base ingredient add the grinding props code to convert base item to grinding version   

 

Sample code:

{
	code: "craftsmanship:corn",
	maxstacksize: 64,
	variantgroups: [
		{ code: "type", states: ["soaked", "dried" ] }
	],
	attributes: {		
                onDisplayTransform: {
			        origin: { x: 0.5, y: 0, z: 0.5 },
			        scale: 0.58
		},
		displaycaseable: true,
		shelvable: true,
	    nutritionPropsWhenInMeal: { satiety: 380, health: 0, foodcategory: "Vegetable" },
        eatHealthEffectDurationSec: 0,
		eatHealthEffectTicks: 0
	},
	shapeByType: {
		"*-soaked": { "base": "game:item/resource/crushed/normal" },
		"*-dried": { "base": "game:item/resource/crushed/normal" }
	},
	texturesByType: {
		"*-soaked": {
			"quartz": { base: "block/grain/corn-{type}-pile" }
		},
        "*-dried": {
			"quartz": { base: "block/grain/corn-{type}-pile" }
		}
	},
    grindingPropsByType: {
		"*-dried": {"groundStack": { type: "item", code: "craftsmanship:powder-cornstarch" }}
	},
	creativeinventory: { "general": ["*"], "items": ["*"] },
	nutritionPropsByType: {
	 	"*-soaked": { saturation: 300, health: 0, foodcategory: "Vegetable" },
		"*-dried": { saturation: 280, health: 0, foodcategory: "Vegetable" }
	},
	transitionablePropsByType: {
		"*-soaked": [{
			type: "Perish",
			freshHours: { avg: 66 },
			transitionHours: { avg: 18 },
			transitionedStack: { type: "item", code: "game:rot" },
			transitionRatio: 4
		},	{
				type: "Dry",
				freshHours: { avg: 0 },
				transitionHours: { avg: 8 },
				transitionedStack: { type: "item", code: "corn-dried" },
				transitionRatio: 1
			}
		]
	},
	guiTransform: {
		translation: { x: 4, y: 7, z: 0 },
		rotation: { x: 154, y: -143, z: -11 },
		origin: { x: 0.5, y: 0.11, z: 0.47 },
		scale: 3.16
	},
	fpHandTransform: {
		translation: { x: 0, y: 0, z: 0 },
		rotation: { x: 40, y: 91, z: 15 },
		origin: { x: 0.8, y: 0.4, z: 0 },
		scale: 1.47
	},
	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: 2.5
	},
	tpHandTransform: {
		translation: { x: 0, y: 0, z: 0 },
		rotation: { x: 5, y: 41, z: -31 },
		origin: { x: 0.16, y: 0.05, z: 0.08 },
		scale: 0.44
	}
}

Powder Code:

{
	code: "craftsmanship:powder",
	variantgroups: [
		{ code: "type", states: ["cornstarch"] }
	],
	behaviors: [
		{ name: "GroundStorable", properties: { layout: 'Messy12', collisionBox: { x1: 0, y1: 0, z1: 0, x2: 1, y2: 0.125, z2: 1 } } }
	],
	heldTpIdleAnimation: "holdbothhands",
	heldRightReadyAnimation: "holdbothhands",
	shape: { base: "game:item/food/flour" },
	"textureByType": {
		"*-cornstarch": { "base": "block/grain/cornstarch" },
		"*": { "base": "game:item/resource/crushed/{type}" }
	},
	creativeinventory: { "general": ["*"], "items": ["*"] },
    nutritionPropsByType: {
	 	"*-cornstarch": { saturation: 120, health: 0, foodcategory: "Vegetable" }
	},
	attributes: {
		inContainerTextureByType: {
			"powder-cornstarch": { base: "block/grain/cornstarch-cotainer" },
			"*": { base: "game:item/resource/ungraded/{type}" }
		},
		dissolveInWater: true,
		displaycaseable: true, 
		shelvable: true,
		onDisplayTransform: {
			translation: { x: 0.05, y: 0, z: 0 },
			origin: { x: 0.5, y: 0, z: 0.5 },
			scale: 0.65
		},
		groundStorageTransform: {
			translation: { x: 0, y: -0.06, z: 0 },
			scale: 0.89
		},
		handbook: {
			groupBy: ["powder-*"]
		},
        nutritionPropsWhenInMeal: { satiety: 120, health: 0, foodcategory: "Vegetable" }
	},
	maxstacksize: 64,
	materialDensity: 500,
	guiTransform: {
		translation: { x: 0, y: 0, z: 0 },
		rotation: { x: 149, y: 12, z: 0 },
		origin: { x: 0.41, y: -0.1, z: 0.8 },
		scale: 2.54
	},
	fpHandTransform: {
		rotation: { x: 54, y: 95, z: -31 },
		scale: 1.34
	},
	tpHandTransform: {
		translation: { x: -1.87, y: -1.25, z: -0.8 },
		rotation: { x: 70, y: 11, z: -65 },
		scale: 0.41
	},
	groundTransform: {
		translation: { x: 0, y: 0.2, z: 0 },
		rotation: { x: -4, y: 8, z: 0 },
		origin: { x: 0.5, y: 0.5, z: 0.5299 },
		scale: 1.92
	}
}

 

Edited by Micah Holmes
×
×
  • 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.