Thanks for the explanation sdee.
I tried to make a separate call handler that just changed priority of resource node above renewable resource node, didnt work
.
I have this now:
A json file for the entity:
{
"type": "entity",
"components": {
"stonehearth:commands" : {
"commands" : [
"file(../../../commands/harvest_pumpkins)",
"file(../../../commands/chop_farming_plot)"
]
},
"model_variants": {
"default": {
"models": [
"file(pumpkins_plot.qb)"
]
},
"depleted": {
"models": [
"file(pumpkins_plot_empty.qb)"
]
}
},
"region_collision_shape" : {
"region": [
{
"min" : { "x" : -1, "y" : 0, "z" : -1 },
"max" : { "x" : 1, "y" : 1, "z" : 1 }
}
]
},
"destination" : {
"region" : [
{
"min" : { "x" : -1, "y" : 0, "z" : -1 },
"max" : { "x" : 1, "y" : 1, "z" : 1 }
}
]
},
"unit_info": {
"name": "Pumpkin Farming Plot",
"description": "Cultivars of Squash!"
},
"stonehearth:resource_node": {
"resource": "stonehearth:oak_log",
"durability": 1
},
"stonehearth:renewable_resource_node": {
"resource" : "mod_egypt:pumpkins_basket",
"harvest_profession" : "worker",
"renewal_time" : "12h",
"harvest_command" : "harvest_pumpkins",
"wait_text" : "Not yet ripe for harvest.",
"harvest_overlay_effect" : "/stonehearth/data/effects/harvest_berries_overlay_effect"
}
}
}
A chop_farming_plot command:
{
"type" : "command",
"name": "remove plot",
"tooltip": "I dont need this mud here!",
"description": "Harvest for lumber, or just to get it out of the way.",
"icon": "file(chop_harvest_plot.png)",
"action": "call",
"function": "stonehearth:harvest_entity",
"args": [
"{{self}}"
]
}
A harvest pumpkins command (renewable)
{
"type" : "command",
"name": "harvest_pumpkins",
"tooltip" : "Gather Pumpkins",
"description" : "This farmplot produces pumpkins that can be harvested to feed your settlers.",
"disabled_description" : "The pumpkins on this farmplot aren't ripe yet!",
"default_enabled": true,
"icon": "file(gather_pumpkins.png)",
"action": "call",
"function": "stonehearth:harvest_entity",
"args": [
"{{self}}"
]
}
I know the problem is the harvest_entity in the chop command. But not sure what to write there instead. 