Jump to content

Recommended Posts

Posted

Working/experimenting with creating a bug farm. Trying to use crop as a test. i"m getting this error currently in my log:

6.1.2026 21:13:35 [Warning] Failed resolving a blocks blockdrop or smeltedstack with code game:termitemound-large in Dry Transition stack of Block craftsmanship:crop-termite-2

 

code:

{
	code: "craftsmanship:crop",
	class: "BlockCrop",
	behaviors: [{name: "Unstable"}],
	variantgroups: [
		{ code: "type", states: ["termite" ] },
		{ code: "stage", states: ["1", "2" ] }
	],
	creativeinventory: { "general": ["*"], "items": ["*"] },
	renderpass: "OpaqueNoCull",
    shapeByType: { "*termite*": { base: "block/crop/bug-farm/termite/stage{stage}" } },
    texturesByType: 
    {
		"*termite-1": {
			"material": { "base": "block/weakclay" }
		},
        "*termite-2": {
			"material": { "base": "block/weakclay" }
		}
	},
	blockmaterial: "Plant",
	faceCullMode: "NeverCull",
	randomizeRotations: true,
	attributes: {
		foodTagsByType: {
			"*-1": ["nibbleCrop"],
			"*-2": ["nibbleCrop"]
		},
		butterflyFeedByType: {
			"*-1": false,
			"*-2": false
		},
		beeFeedByType: {
			"*-1": false,
			"*-2": false
		},
		sitHeight: 0.9,
		tickGrowthProbability: 0.05,
		handbook: {
			include: true
		}
	},
	sideopaque: {
		all: false
	},
	sidesolid: {
		all: false
	},
	replaceable: 3000,
	lightAbsorption: 0,
	resistance: 0.5,
	sounds: {
		place: "game:block/plant",
		break: "game:block/plant",
		hit: "game:block/plant"
	},
	rainPermeable: false,
	/*dropsByType: {
		"*corn-10": [
			{ type: "item", code: "seeds-corn", quantity: { avg: 4,var: 6 }  },
			{ type: "item", code: "grain-corn", quantity: { avg: 25, var: 8 }  }
		],
		"*": [
			{ type: "item", code: "seeds-corn", quantity: { avg: 4 }  }
		]
	},*/
	transitionablePropsByType: {
		"crop-termite-2":
			[{
				type: "Dry",
				freshHours: { avg: 0 },
				transitionHours: { avg: 1 },
				transitionedStack: { type: "block", code: "game:termitemound-large" },
				transitionRatio: 1
			}]
	},
	cropProps: {
		// Common rates of nutrients to be applied are 50 to 60 lb/acre N, 25 lb/acre P2O5 and 30 lb/acre K2O. - http://www.heirloom-organics.com/guide/va/guidetogrowingspelt.html
		requiredNutrient: "N",
		nutrientConsumption: 40,
		growthStages: 2,
		totalGrowthMonths: 0.01
	},
	collisionbox: null,
	selectionbox: { x1: 0.0625, y1: 0, z1: 0.0625, x2: 0.9375, y2: 0.25, z2: 0.9375 },
	materialDensity: 200,
	combustibleProps: {
		burnTemperature: 600,
		burnDuration: 10,
	},
	frostable: true
}

FYI I know the idea is a little weird lol Romans use to grow grubs and eat them. So i'm working on building a system similar. Anyway, current issue is its not transitioning from crop to block. 

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