Jump to content

Recommended Posts

Posted

Trying to make a drying box that speeds up cure times for hides. Tried doing this multi ways with the same result every time. The goal is to only allow small hides inside the rack system for drying. Anyone know what attribute I need to add to speed up drying processing or do I need to add spoilage? 

 

Spoiler
{
	code: "craftsmanship:drying",
	class: "BlockGenericTypedContainer",
	entityclass: "GenericTypedContainer",
	attributes: {
		inventoryClassName: "basket",
		defaultType: "box",
		openSound: "game:sounds/block/basketopen",
		closeSound: "game:sounds/block/basketclose",
		types: ["box" ],
		drop: {
			box: true
		},
		quantitySlots: {
			box: 14
		},
		dialogTitleLangCode: { box: "basketcontents" },
		storageType: { box: 189 },
		retrieveOnly: { box: false },
		attachableCategoryCode: { box: "basket" },
		shape: { box: "equipment/drying-box" },
    validCodes: { box: ["game:hide-oiled-small", "craftsmanship:fur-oiled-small"] },
		variantByGroup: "side",
		variantByGroupInventory: null
	},
	behaviors: [
		{name: "BoatableGenericTypedContainer" },
		{name: "Lockable" }, 
		{name: "CreatureContainer" }, 
		{name: "Container", properties: { climateModifierType: "rack", transitionRateMul: 4.0 } },
		{name: "HorizontalOrientable", properties: {  dropBlockFace: "east" }}
	],
	entityBehaviors: [{ name: "Animatable" }],
	variantgroups: [
		{ code: "side", loadFromProperties: "abstract/horizontalorientation" }
	],
	creativeinventory: {  },
	creativeinventoryStacksByType: {
		"*-east": [
			{
				tabs: [ "general", "decorative" ],
				stacks: [
					{ type: "block", code: "craftsmanship:drying-east", attributes: { type: "box" } }
				]
			}
		]
	},
	heldTpIdleAnimation: "holdunderarm",
	shapeInventory: { base: "block/wicker/chest", rotateY: 270 },
	shapeByType: {
		"*-north": { base: "equipment/drying-box", rotateY: 0 },
		"*-east": { base: "equipment/drying-box", rotateY: 270 },
		"*-west": { base: "equipment/drying-box", rotateY: 90 },
		"*-south": { base: "equipment/drying-box", rotateY: 180 }
	},

	// Must declare textures so they get added to the block texture atlas
	textures: {
		"box-woodshelf": { base: "stain/birch-2" },
		"box-woodbox": { base: "stain/larch-4" }
	},
	blockmaterial: "Wood",
	replaceable: 900,
	resistance: 2,
	lightAbsorption: 0,
	sideAo: { all: false },
	sidesolid: {
		all: false
	},
	sideopaque: {
		all: false
	},
	collisionbox: {
		x1: 0.125, y1: 0, z1: 0.125, x2: 0.8125, y2: 0.5, z2: 0.875,
		rotateYByType: {
			"*-north": 270,
			"*-east": 180,
			"*-south": 90,
			"*-west": 0
		}
	},
	selectionbox: {
		x1: 0.125, y1: 0, z1: 0.125, x2: 0.8125, y2: 0.5, z2: 0.875,
		rotateYByType: {
			"*-north": 270,
			"*-east": 180,
			"*-south": 90,
			"*-west": 0
		}
	},
	sounds: {
		"place": "game:block/planks",
		"walk": "game:walk/wood"
	},
	materialDensity: 600,
	tpHandTransform: {
		translation: { x: -0.9, y: -0.5, z: -0.3 },
		rotation: { x: 0, y: 90, z: -102 },
		scale: 0.56
	},
	guiTransform: {
		origin: { x: 0.5, y: 0.3, z: 0.5 },
		scale: 1.3
	}
}

 

 

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