Micah Holmes Posted January 2 Report Posted January 2 trying to make a barrel recipe for growing mushrooms. No issues with growing most of the mushrooms but this one in particular. I cant seem to get the name correct: "block-mushroom-whiteoyster-normal-*": "White oyster", Sample Recipe: [ { code: "mushroom-paddystraw-normal", sealHours: 252, ingredients: [ { type: "item", code: "game:limewaterportion", litres: 1, consumeLitres: 1 }, { type: "item", code: "craftsmanship:straw", quantity: 2 } ], output: { type: "block", code: "game:mushroom-paddystraw-normal", quantity: 3 } } ] This recipe works just fine but when I try to use: mushroom-whiteoyster-normal mushroom-whiteoyster-harvested mushroom-whiteoyster-normal-harvested I dont get any errors but it does not work. Based on Mushroom code: drops: [ { type: "block", code: "mushroom-{mushroom}-normal", quantity: { avg: 1, var: 0 } } ], The name should be: "mushroom-whiteoyster-normal" but that does not work. The whiteoyster mushroom is the most commonly grown via barrel so I really want to include it in the recipes. Base game Mushroom code: { code: "mushroom", class: "BlockMushroom", variantgroups: [ { loadFromProperties: "block/mushroom" }, { code: "state", states: ["normal", "harvested"] } ], skipVariants: [ "mushroom-beardedtooth-*", "mushroom-whiteoyster-*", "mushroom-pinkoyster-*", "mushroom-dryadsaddle-*", "mushroom-tinderhoof-*", "mushroom-chickenofthewoods-*", "mushroom-reishi-*", "mushroom-funeralbell-*", "mushroom-livermushroom-*", "mushroom-pinkbonnet-*", "mushroom-shiitake-*", "mushroom-deerear-*" ], attributes: { mushroomProps: { dieWhenTempBelow: 0, dieAfterFruiting: true }, forageStatAffected: true, nutritionPropsWhenInMeal: { satiety: 120, foodcategory: "Vegetable", healthByType: { "*-flyagaric-*": -6.5, "*-earthball-*": -8, "*-deathcap-*": -50, "*-elfinsaddle-*": -7, "*-jackolantern-*": -6, "*-devilbolete-*": -10, "*-bitterbolete-*": -1, "*-devilstooth-*": -2, "*-golddropmilkcap-*": -2.5, "*": 0 } }, eatHealthEffectDurationSec: 10, eatHealthEffectTicks: 10, plantContainable: { smallContainer: { randomRotate: false, shape: { base: "block/plant/mushroom/{mushroom}/flowerpot/normal*" } }, largeContainer: { randomRotate: false, shape: { base: "block/plant/mushroom/{mushroom}/planter/normal*" } } }, displayedShape: { base: "item/food/mushroom/{mushroom}"}, inTrapTransform: { "small": { translation: { x: -0.05, y: -0.2, z: 0.26 }, rotation: { x: 70, y: 0, z: 0 } }, "large": { translation: { x: -0.25, y: 0.2, z: 0.36 }, rotation: { x: 101, y: 0, z: 0 } } } }, nutritionPropsByType: { "*-flyagaric-*": { saturation: 80, health: -6.5, foodcategory: "Vegetable" }, "*-earthball-*": { saturation: 80, health: -8, foodcategory: "Vegetable" }, "*-deathcap-*": { saturation: 80, health: -50, foodcategory: "Vegetable" }, "*-elfinsaddle-*": { saturation: 80, health: -7, foodcategory: "Vegetable" }, "*-jackolantern-*": { saturation: 80, health: -6, foodcategory: "Vegetable" }, "*-devilbolete-*": { saturation: 80, health: -10, foodcategory: "Vegetable" }, "*-bitterbolete-*": { saturation: 80, health: -1, foodcategory: "Vegetable" }, "*-devilstooth-*": { saturation: 80, health: -2, foodcategory: "Vegetable" }, "*-golddropmilkcap-*": { saturation: 80, health: -2.5, foodcategory: "Vegetable" }, "*": { saturation: 80, health: 0, foodcategory: "Vegetable" }, }, creativeinventory: { "general": ["*-normal"], "flora": ["*-normal"] }, drawtype: "JSON", shape: { base: "block/plant/mushroom/{mushroom}/{state}*" }, shapeInventory: { base: "item/food/mushroom/{mushroom}" }, doNotRenderAtLod2: true, randomDrawOffset: false, blockmaterial: "Plant", randomizeRotations: true, sideopaqueByType: { "*-snow": { all: false, down: true }, "*": { all: false } }, sidesolid: { all: false }, replaceable: 3000, lightAbsorption: 0, resistance: 1.5, collisionbox: null, selectionBox: { x1: 0.125, y1: 0, z1: 0.125, x2: 0.875, y2: 0.25, z2: 0.875 }, guiTransformByType: { "*": { rotation: { x: -22, y: 107, z: 0 }, origin: { x: 0.5, y: 0.2, z: 0.5 }, scale: 3 } }, groundTransform: { origin: { x: 0.5, y: 0, z: 0.5 }, scale: 5 }, tpHandTransform: { translation: { x: -0.93, y: -0.17, z: -0.8 }, rotation: { x: 15, y: -10, z: -114 }, origin: { x: 0.5, y: 0.1, z: 0.5 }, scale: 0.58 }, sounds: { place: "block/plant", break: "block/plant", hit: "block/plant", }, rainPermeable: true, transitionableProps: [{ type: "Perish", freshHours: { avg: 432 }, transitionHours: { avg: 72 }, transitionedStack: { type: "item", code: "rot" }, transitionRatio: 1 }], materialDensity: 200, drops: [ { type: "block", code: "mushroom-{mushroom}-normal", quantity: { avg: 1, var: 0 } } ], }
Brady_The Posted January 2 Report Posted January 2 (edited) 14 minutes ago, Micah Holmes said: The name should be: "mushroom-whiteoyster-normal" but that does not work. The whiteoyster mushroom is the most commonly grown via barrel so I really want to include it in the recipes. That's not the correct code. See skipVariants. You want to look at mushroom-side.json. Edited January 2 by Brady_The
Solution Micah Holmes Posted January 2 Author Solution Report Posted January 2 I found it in another recipe. In case anyone else needs it: "mushroom-fieldmushroom-normal": ["vegetable", "group7"], "mushroom-flyagaric-normal": ["vegetable", "group2"], "mushroom-almondmushroom-normal": ["vegetable", "group3"], "mushroom-beardedtooth-normal-north": ["vegetable", "group7"], "mushroom-bitterbolete-normal": ["vegetable", "group3"], "mushroom-blacktrumpet-normal": ["vegetable", "group3"], "mushroom-chanterelle-normal": ["vegetable", "group3"], "mushroom-chickenofthewoods-normal-north": ["vegetable", "group3"], "mushroom-commonmorel-normal": ["vegetable", "group3"], "mushroom-deathcap-normal": ["vegetable", "group7"], "mushroom-devilstooth-normal": ["vegetable", "group3"], "mushroom-devilbolete-normal": ["vegetable", "group3"], "mushroom-dryadsaddle-normal-north": ["vegetable", "group3"], "mushroom-earthball-normal": ["vegetable", "group7"], "mushroom-elfinsaddle-normal": ["vegetable", "group3"], "mushroom-golddropmilkcap-normal": ["vegetable", "group3"], "mushroom-greencrackedrussula-normal": ["vegetable", "group3"], "mushroom-indigomilkcap-normal": ["vegetable", "group3"], "mushroom-jackolantern-normal": ["vegetable", "group3"], "mushroom-kingbolete-normal": ["vegetable", "group3"], "mushroom-lobster-normal": ["vegetable", "group3"], "mushroom-orangeoakbolete-normal": ["vegetable", "group3"], "mushroom-paddystraw-normal": ["vegetable", "group7"], "mushroom-pinkoyster-normal-north": ["vegetable", "group7"], "mushroom-puffball-normal": ["vegetable", "group7"], "mushroom-redwinecap-normal": ["vegetable", "group3"], "mushroom-saffronmilkcap-normal": ["vegetable", "group3"], "mushroom-tinderhoof-normal-north": ["vegetable", "group7"], "mushroom-violetwebcap-normal": ["vegetable", "group3"], "mushroom-whiteoyster-normal-north": ["vegetable", "group7"], "mushroom-reishi-normal-north": ["vegetable", "group7"], "mushroom-funeralbell-normal-north": ["vegetable", "group7"], "mushroom-deerear-normal-north": ["vegetable", "group7"], "mushroom-livermushroom-normal-north": ["vegetable", "group7"], "mushroom-pinkbonnet-normal-north": ["vegetable", "group7"], "mushroom-shiitake-normal-north": ["vegetable", "group7"], "mushroom-witchhat-normal": ["vegetable", "group7"] }
Recommended Posts