Jump to content

Recommended Posts

Posted

I have no issues with my cut sugar cane other than placing on ground its not rendering. 

 

Item:

{
	code: "cutcane",
	maxstacksize: 32,
	behaviors: [{
		name: "GroundStorable",
		properties: {
			layout: 'Stacking',
			placeRemoveSound: "game:block/planks",
			stackingModel: 'block/wood/bamboopile',
			modelItemsToStackSizeRatio: 0.5,
			upSolid: true,
			stackingCapacity: 50,
			transferQuantity: 2,
			bulkTransferQuantity: 10,
			collisionBox: { x1: 0, y1: 0, z1: 0, x2: 1, y2: 0.2, z2: 1 },
			cbScaleYByLayer: 0.1,
			burnHoursPerItem: 0.1
		}
	}],
	attributes: {
		firepitConstructable: true
	},
	shape: { base: "resource/cane" },
    textures: { "stem": { base: "block/sugarcane/stem-green" } },
	creativeinventory: { "general": ["*"], "items": ["*"] },
	guiTransform: {
		translation: { x: 3, y: -8, z: 0 },
		rotation: { x: 149, y: 59, z: 0 },
		origin: { x: 0.5, y: 0.43, z: 0.5 },
		scale: 1.77
	},
	combustibleProps: {
		burnTemperature: 700,
		burnDuration: 10,
	},
	materialDensity: 200,
	tpHandTransform: {
		translation: { x: -1.7, y: -1.4, z: -1.5 }
	},
	groundTransform: {
		translation: { x: 0, y: 0.3, z: 0 },
		rotation: { x: 0, y: 0, z: 0 },
		origin: { x: 0.5, y: 0.5, z: 0.53 },
		scale: 4
	}
}

 

model:

{
	"editor": {
		"collapsedPaths": "Root/bandN/toothR1,Root/bandN/toothL1",
		"allAngles": false,
		"entityTextureMode": false
	},
	"textureWidth": 16,
	"textureHeight": 16,
	"textureSizes": {
	},
	"textures": {
		"stem": "block/sugarcane/stem-green"
	},
	"elements": [
		{
			"name": "StalkMidNW",
			"from": [ 4.5, -19.5, 4.5 ],
			"to": [ 7.5, -5.5, 7.5 ],
			"rotationOrigin": [ 0.0, -4.5, -2.0 ],
			"rotationZ": 90.0,
			"faces": {
				"north": { "texture": "#stem", "uv": [ 3.0, 0.0, 6.0, 14.0 ] },
				"east": { "texture": "#stem", "uv": [ 1.0, 0.0, 4.0, 14.0 ] },
				"south": { "texture": "#stem", "uv": [ 5.0, 0.0, 8.0, 14.0 ] },
				"west": { "texture": "#stem", "uv": [ 1.0, 0.0, 4.0, 14.0 ] },
				"up": { "texture": "#stem", "uv": [ 8.0, 11.0, 11.0, 14.0 ] },
				"down": { "texture": "#stem", "uv": [ 8.0, 11.0, 11.0, 14.0 ] }
			}
		},
		{
			"name": "StalkMidNE",
			"from": [ 7.5, -17.5, 6.5 ],
			"to": [ 10.5, -4.5, 9.5 ],
			"rotationOrigin": [ 0.0, -4.5, 1.0 ],
			"rotationZ": 90.0,
			"faces": {
				"north": { "texture": "#stem", "uv": [ 0.0, 0.0, 3.0, 13.0 ] },
				"east": { "texture": "#stem", "uv": [ 1.0, 0.0, 4.0, 13.0 ] },
				"south": { "texture": "#stem", "uv": [ 2.0, 0.0, 5.0, 13.0 ] },
				"west": { "texture": "#stem", "uv": [ 2.0, 0.0, 5.0, 13.0 ] },
				"up": { "texture": "#stem", "uv": [ 8.0, 11.0, 11.0, 14.0 ] },
				"down": { "texture": "#stem", "uv": [ 8.0, 11.0, 11.0, 14.0 ] }
			}
		},
		{
			"name": "StalkMidSE",
			"from": [ 6.5, -22.5, 7.9 ],
			"to": [ 9.5, -7.5, 10.9 ],
			"rotationOrigin": [ 0.0, -6.5, -0.6 ],
			"rotationZ": 90.0,
			"faces": {
				"north": { "texture": "#stem", "uv": [ 4.0, 0.0, 7.0, 15.0 ] },
				"east": { "texture": "#stem", "uv": [ 4.0, 0.0, 7.0, 15.0 ] },
				"south": { "texture": "#stem", "uv": [ 5.0, 0.0, 8.0, 15.0 ] },
				"west": { "texture": "#stem", "uv": [ 1.0, 0.0, 4.0, 15.0 ] },
				"up": { "texture": "#stem", "uv": [ 8.0, 11.0, 11.0, 14.0 ] },
				"down": { "texture": "#stem", "uv": [ 8.0, 11.0, 11.0, 14.0 ] }
			}
		}
	]}

 

 

I copied the bamboo model basically with minor adjustments. I've tried adjusting in tfedit but it never shows up. Not sure what I need to adjust here? 

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