How increase amount of harvestable Items?

Hey there,
i was trying to increase the number of Ressouces that you receive harvesting a Item. Is †his possible?

I used this code in my model to produce a Brightbell Flower all 22h in game. But i want to increase the number of Ressources you get from harvesting it. Like 2 or 3

"stonehearth:renewable_resource_node": {
    "category": "harvest",
    "harvest_overlay_effect": "stonehearth:effects:harvest_plant_overlay_effect",
    "unripe_description": "i18n(stonehearth:entities.plants.brightbell_plant.unripe_description)",
    "resource": "stonehearth:resources:herb:brightbell",
    "renewal_time": "22h"
 },

Use loot_tables.
Example:

"stonehearth:renewable_resource_node": {
	...
	"resource_loot_table": {
		"entries": {
			"multi_herbs": {
				"items": {
					"brightbell": {
						"uri": "stonehearth:resources:herb:brightbell",
						"num_rolls": {
							"min": 2,
							"max": 3
						}
					}
				}
			}
		}
	},
	...
},
2 Likes

Merci!! :slight_smile:
Will try this

ok, maybe i have used it in the wrong way but i only get 1 ressource when i’m harvesting it. It’s something wrong?

 "stonehearth:renewable_resource_node": {
        "category": "harvest",
        "harvest_overlay_effect": "stonehearth:effects:harvest_plant_overlay_effect",
        "unripe_description": "i18n(stonehearth:entities.plants.brightbell_plant.unripe_description)",
        "resource_loot_table": {
      		"entries": {
      			"multi_herbs": {
      				"items": {
      					"brightbell": {
      						"uri": "stonehearth:resources:herb:brightbell",
      						"num_rolls": {
      							"min": 2,
      							"max": 3
      						}
      					}
      				}
      			}
      		}
      	 },
        "renewal_time": "22h"
     },`

Uhm, I tested and it worked.

What I did was replace the
“resource”: “stonehearth:resources:herb:brightbell”,
in the brightbell plant, with the
“resource_loot_table”: {…}

this is strange. i used it for this model but isn’t working… yes, replaced the other code line with the loot code. this is the model

planter-box_small.zip (13.5 KB)

Sorry, but it is working for me. I straight pasted your item into my mod, this:

ok ^^
never mind now it’s also working for me. but i change nothing. really mysterious. But thx for your help. This will be very useful in future.

Last question. I wonder if it’s possible to add more items that you receive by harvesting a item. like in this chase. brightbell and forstnap flowers by harvesting the same object.

Yes. Adapt it to this:


"multi_herbs": {
	"roll_type": "each_of",
	"items": {
		"brightbell": {
			"uri": "stonehearth:resources:herb:brightbell",
			"num_rolls": {
				"min": 2,
				"max": 3
			}
		},
		"frostsnap": {
			"uri": "stonehearth:resources:herb:frostsnap",
			"num_rolls": {
				"min": 2,
				"max": 3
			}
		}
	}
}

superb. merci!!! xD

thx for all your help BrunoSupremo